How to run the Appium Mobile automation script from one main/coding machine to another machine where other machine have connected device & Appium/Android Studio

How to run the Appium Mobile automation script from one main/coding machine to another machine where other machine have connected device & Appium/Android Studio.

I want to know the software/prerequisites required for running the code on other machine and also the process for setting up the same.

Currently I have designed and running Appium Mobile automation code on my local machine (source code machine) for testing with real device. So my requirement is, that when I run the code from my local machine, it should get executed on another machine which is connected with device.

PFB things used for Mobile Automation: 1.Appium Desktop system 2.Android SDK 3.Appium client 4. Seleenium client 5.Real devices connected to machine

Can you please help in same.

  1. Connect all your machines(emulator/simultor/real device) to selenium grid.
  2. Give the IP address of your 2nd machine and also the port number port number at which Appium instance is running. This unique combo of IP+Port number will help create a unique driver instance.

Thank you James for the response, But can you please share any link which I can refer for setting up the grid.

Or can you brief about the steps for setting up the grid for all remote and local machines.

With Selenium grid you still need run your code on your machine (or some machine).

If you want run code on remote machine first you need put your code into repository e.g. github. On remote machine you need somehow download code and run. Normally this is called CI ( continues integration). The way how it is implemented is manually (yes you can login remotedly into machine. Download code from github and run it) or automatically. Automatically is Jenkins or TeamCity or Gitlab or Bamboo as CI server and your remote machine as Agent. You need to choose any way.

2 Likes

Hi Thank you for the reply!!

Would like to share that I was able to implement the same by following the below links, which use below things on node and hub machine.

Hub Machine:
1.Selenium grid,appium,java.SDK, Jenkins,Eclipse-Source Code.

Node Machine:’
1.Selenium grid, appium,android studio, mobile connectivity,java.

Parellel run for appium:

https://interworks.com.mk/selenium-grid-for-mobile-automated-testing-with-appium-part-i/

https://medium.com/@setpace/parallel-execution-in-appium-1-7-dc60c4802082

*nicest link

https://www.zymr.com/configuring-appium-node-servers-with-selenium-grid/

https://www.seleniumeasy.com/appium-tutorials/connecting-appium-to-selenium-grid-example

http://appium.io/docs/en/advanced-concepts/grid/

https://www.swtestacademy.com/appium-parallel-tests/

Nice link for git hub code repo:

1 Like