{"id":20618149,"url":"https://github.com/applitools/applitools-genymotion-sample","last_synced_at":"2026-03-09T00:31:48.976Z","repository":{"id":66339976,"uuid":"190554512","full_name":"applitools/applitools-genymotion-sample","owner":"applitools","description":"Sample project to demonstrate integration of Applitools \u0026 Genymotion Cloud using Java / TestNG","archived":false,"fork":false,"pushed_at":"2023-04-14T17:32:10.000Z","size":13,"stargazers_count":2,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T11:47:31.582Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/applitools.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,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-06-06T09:29:41.000Z","updated_at":"2019-12-17T05:04:32.000Z","dependencies_parsed_at":"2025-04-15T11:49:00.181Z","dependency_job_id":null,"html_url":"https://github.com/applitools/applitools-genymotion-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/applitools/applitools-genymotion-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2Fapplitools-genymotion-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2Fapplitools-genymotion-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2Fapplitools-genymotion-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2Fapplitools-genymotion-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/applitools","download_url":"https://codeload.github.com/applitools/applitools-genymotion-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/applitools%2Fapplitools-genymotion-sample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261110613,"owners_count":23111064,"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-11-16T12:07:16.465Z","updated_at":"2026-03-09T00:31:48.969Z","avatar_url":"https://github.com/applitools.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\n\nThis repo showcases how to integrate Java / TestNG test for Native apps, using Appium with Applitools and execute on Genymotion Cloud\n\n# About the tests\n* The Test (GenyParallel.java) assumes the following:\n    * There are 2 instances of the test running in parallel\n    * The port numbers, udid are hard-coded in the test to make the demo easier. But this can / should be externalized for better flexibility / scaling\n    * The below instructions (for Genymotion devices) assumes this hard-coded setup. The test infrastructure code should be able to make this dynamic at runtime\n\n# Applitools Setup\n* Create a free Applitools account: https://applitools.com/free\n* Get your Applitools API key: https://help.applitools.com/hc/en-us/articles/360006914732-The-runner-key-API-Key-\n* Set the **APPLITOOLS_API_KEY** environment variable: \n    - Mac: ```export APPLITOOLS_API_KEY='YOUR_API_KEY' ```\n    - Windows: ```set APPLITOOLS_API_KEY='YOUR_API_KEY'```\n\n# Genymotion Devices Setup\n\n* Sign up on [Genymotion Cloud](http://cloud.geny.io/?\u0026utm_source=github\u0026utm_medium=integration\u0026utm_campaign=applitools) to create an account\n* Setup Genymotion command line tool - **gmsaas** using the instructions here - https://www.genymotion.com/blog/gmsaas-new-cli-automate-lifecycle-genymotion-cloud, or https://pypi.org/project/gmsaas/\n* To check if you are connected to Genymotion Cloud, run\n\n    ```    $ gmsaas auth whoami ``` \n    \n    The above should show the username / email of your Genymotion Cloud account\n* See list of devices available devices in Genymotion Cloud:\n\n    ```    $ gmsaas recipes list | grep \"Pixel 3\" ```\n    \n    For this demo, I am going to use Google Pixel 3 devices, so I can narrow the search using the below command:\n    \n    ```    $ gmsaas recipes list | grep \"Pixel 3\" ```\n\n    ```\n    143eb44a-1d3a-4f27-bcac-3c40124e2836  Google Pixel 3         9.0        1080 x 2160 dpi 420  genymotion\n    e5008049-8394-40fc-b7f8-87fa9f1c305f  Google Pixel 3 XL      9.0        1440 x 2960 dpi 560  genymotion\n    ```\n    \n* Start 2 devices\n    ```\n    gmsaas instances start 143eb44a-1d3a-4f27-bcac-3c40124e2836 pixel3\n    gmsaas instances start e5008049-8394-40fc-b7f8-87fa9f1c305f pixel3xl\n    ```\n    \n    **_NOTE: The above commands will start a new instance of the devices in Genymotion Cloud. When you see the started devices, make note of the devices' udid._**\n    Example:\n    \n    ```\n    $ gmsaas instances list\n    UUID                                  NAME      ADB SERIAL      STATE\n    ------------------------------------  --------  --------------  -------\n    8e70fac5-0dc5-449c-8458-6af6bd09e201  pixel3    0.0.0.0         ONLINE\n    3553cc0c-c6cd-48be-99f6-b56fe86a7cb1  pixel3xl  0.0.0.0         ONLINE\n    ``` \n    \n    **_NOTE: The UDIDs listed above will keep changing. So do not copy / paste directly._**\n    \n* You can also see the started instances in Genymotion Cloud Ui - https://cloud.geny.io/app/default-devices\n* Establish adb connection with the started instances\n    ```\n    $ gmsaas instances adbconnect --adb-serial-port 5554 \u003cudid1\u003e\n    $ gmsaas instances adbconnect --adb-serial-port 5556 \u003cudid2\u003e\n    ```\n* You will now see the ADB serial port updated for the device instances.  \n    ```\n    $ gmsaas instances list\n    UUID                                  NAME      ADB SERIAL      STATE\n    ------------------------------------  --------  --------------  -------\n    \u003cudid1\u003e                               pixel3    localhost:5554  ONLINE\n    \u003cudid2\u003e                               pixel3xl  localhost:5556  ONLINE\n    ```\n* You will now be able to see these Genymotion Cloud virtual devices as a local device\n    ```\n    $ adb devices\n    List of devices attached\n    localhost:5554\tdevice\n    localhost:5556\tdevice \n    ```\n\n# Run the Tests\n* From command line, start Appium server using the command shown below:\n    ``` \n    $ appium -p 4723 \u0026\n    ```\n    \n* You can now run the test in parallel and see the test execute in Genymotion Cloud, and see the Visual Testing results in the Applitools Test Manager Dashboard\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplitools%2Fapplitools-genymotion-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapplitools%2Fapplitools-genymotion-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapplitools%2Fapplitools-genymotion-sample/lists"}