{"id":13552113,"url":"https://github.com/sbis04/flutter_screenshot_integration_test","last_synced_at":"2025-03-18T09:30:38.523Z","repository":{"id":121352476,"uuid":"389880617","full_name":"sbis04/flutter_screenshot_integration_test","owner":"sbis04","description":"Flutter screenshot integration testing (supported on Android \u0026 Web)","archived":false,"fork":false,"pushed_at":"2021-09-10T04:57:30.000Z","size":248,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T08:29:56.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbis04.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-07-27T07:01:21.000Z","updated_at":"2024-04-07T11:35:46.000Z","dependencies_parsed_at":"2024-01-19T06:57:21.174Z","dependency_job_id":"f1bd03db-74c0-4db4-815e-3173e79887d5","html_url":"https://github.com/sbis04/flutter_screenshot_integration_test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fflutter_screenshot_integration_test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fflutter_screenshot_integration_test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fflutter_screenshot_integration_test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbis04%2Fflutter_screenshot_integration_test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbis04","download_url":"https://codeload.github.com/sbis04/flutter_screenshot_integration_test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910666,"owners_count":20367546,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:01:59.088Z","updated_at":"2025-03-18T09:30:38.024Z","avatar_url":"https://github.com/sbis04.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# screenshot_integration_demo\n\nFlutter screenshot integration testing (supported on Android \u0026 Web).\n\n\u003e [27-July-2021] Tested on **master** branch of Flutter.\n\n## Usage\n\n\n1. Clone the repo and navigate to the directory:\n   \n    ```sh\n    git clone https://github.com/sbis04/flutter_screenshot_integration_test.git\n    cd flutter_screenshot_integration_test\n    ```\n\n2. Make sure you are on the latest **master** branch of Flutter.\n\n3. Get flutter packages:\n   \n   ```sh\n   flutter pub get\n   ```\n\n4. Download Chrome driver from [here](https://chromedriver.chromium.org/downloads).\n\n5. Run `chromedriver`:\n   \n   ```sh\n   ./chromedriver --port=4444\n   ```\n\n6. Run the test on web using:\n   \n   ```sh\n   flutter drive \\\n    --driver=test_driver/integration_test.dart \\\n    --target=integration_test/screenshot_test.dart \\\n    -d web-server\n   ```\n\n7. It should generate the screenshot in the root directory.\n\nSample screenshot running on web:\n\n![](./images/screenshot-test.png)\n\n## Test system\n\nFlutter doctor result:\n\n```sh\n[✓] Flutter (Channel master, 2.4.0-5.0.pre.203, on macOS 11.2.3 20D91\n    darwin-arm, locale en-IN)\n    • Flutter version 2.4.0-5.0.pre.203 at\n      /Users/souvikbiswas/fvm/versions/master\n    • Upstream repository https://github.com/flutter/flutter.git\n    • Framework revision 738ce43d97 (24 minutes ago), 2021-07-26 23:40:49 -0700\n    • Engine revision 717d55cdd4\n    • Dart version 2.14.0 (build 2.14.0-354.0.dev)\n\n[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)\n    • Android SDK at /Users/souvikbiswas/Library/Android/sdk\n    • Platform android-30, build-tools 30.0.3\n    • Java binary at: /Applications/Android\n      Studio.app/Contents/jre/jdk/Contents/Home/bin/java\n    • Java version OpenJDK Runtime Environment (build\n      1.8.0_242-release-1644-b3-6915495)\n    • All Android licenses accepted.\n\n[✓] Xcode - develop for iOS and macOS\n    • Xcode at /Applications/Xcode.app/Contents/Developer\n    • Xcode 12.5.1, Build version 12E507\n    • CocoaPods version 1.10.1\n\n[✓] Chrome - develop for the web\n    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome\n\n[✓] Android Studio (version 4.1)\n    • Android Studio at /Applications/Android Studio.app/Contents\n    • Flutter plugin can be installed from:\n      🔨 https://plugins.jetbrains.com/plugin/9212-flutter\n    • Dart plugin can be installed from:\n      🔨 https://plugins.jetbrains.com/plugin/6351-dart\n    • Java version OpenJDK Runtime Environment (build\n      1.8.0_242-release-1644-b3-6915495)\n\n[✓] VS Code (version 1.58.2)\n    • VS Code at /Applications/Visual Studio Code.app/Contents\n    • Flutter extension version 3.24.0\n\n[✓] Connected device (2 available)\n    • macOS (desktop) • macos  • darwin-arm64   • macOS 11.2.3 20D91 darwin-arm\n    • Chrome (web)    • chrome • web-javascript • Google Chrome 92.0.4515.107\n\n• No issues found!\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbis04%2Fflutter_screenshot_integration_test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbis04%2Fflutter_screenshot_integration_test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbis04%2Fflutter_screenshot_integration_test/lists"}