# 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

**URL:** <https://discuss.appium.io/t/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/27343>\
**Category:** Support\
**Created:** [July 31, 2019, 2:50pm UTC](https://discuss.appium.io/t/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/27343 "2019-07-31T14:50:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![swati\_dave](https://discuss.appium.io/user_avatar/discuss.appium.io/swati_dave/32/6147_2.png) [@swati\_dave](https://discuss.appium.io/u/swati_dave)\
**Post date:** [July 31, 2019, 2:50pm UTC](https://discuss.appium.io/t/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/27343/1 "2019-07-31T14:50:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![James\_Cathode](https://discuss.appium.io/user_avatar/discuss.appium.io/james_cathode/32/5954_2.png) [@James\_Cathode](https://discuss.appium.io/u/James_Cathode)\
**Post date:** [July 31, 2019, 11:58pm UTC](https://discuss.appium.io/t/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/27343/2 "2019-07-31T23:58:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![swati\_dave](https://discuss.appium.io/user_avatar/discuss.appium.io/swati_dave/32/6147_2.png) [@swati\_dave](https://discuss.appium.io/u/swati_dave)\
**Post date:** [August 1, 2019, 3:29pm UTC](https://discuss.appium.io/t/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/27343/3 "2019-08-01T15:29:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [August 1, 2019, 7:53pm UTC](https://discuss.appium.io/t/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/27343/4 "2019-08-01T19:53:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![swati\_dave](https://discuss.appium.io/user_avatar/discuss.appium.io/swati_dave/32/6147_2.png) [@swati\_dave](https://discuss.appium.io/u/swati_dave)\
**Post date:** [August 23, 2019, 5:47am UTC](https://discuss.appium.io/t/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/27343/5 "2019-08-23T05:47:40Z")

</div>

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://interworks.com.mk/selenium-grid-for-mobile-automated-testing-with-appium-part-i/)

> **[Appium: Remote Execution (Grid Execution)](http://qaautomationworld.blogspot.com/2014/11/appium-remote-execution-grid-execution.html)**
>
> Appium Remote machine execution , Appium: Remote Device Execution

[https://medium.com/@setpace/parallel-execution-in-appium-1-7-dc60c4802082](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.zymr.com/configuring-appium-node-servers-with-selenium-grid/)

> **[\[Android\] How to perform parallel testing in Appium using Selenium Grid.](http://siddharthqaappium.blogspot.com/2018/03/android-how-to-perform-parallel-testing.html)**
>
> Introduction: We all known that to perform parallel execution of same script in multiple clients we use Selenium Grid.(There is another w...

[https://www.seleniumeasy.com/appium-tutorials/connecting-appium-to-selenium-grid-example](https://www.seleniumeasy.com/appium-tutorials/connecting-appium-to-selenium-grid-example)

> **[Appium: Remote Execution (Grid Execution)](http://qaautomationworld.blogspot.com/2014/11/appium-remote-execution-grid-execution.html)**
>
> Appium Remote machine execution , Appium: Remote Device Execution

[http://appium.io/docs/en/advanced-concepts/grid/](http://appium.io/docs/en/advanced-concepts/grid/)

> [@Appium - Parallel Execution (Grid)](https://discuss.appium.io/t/appium-parallel-execution-grid/4375/9):
>
> Hi Bhaskar, Can you be more specific on how to create node? I could not locate nodeconfig path. Thanks

[![](https://img.youtube.com/vi/vXpskMkytD8/hqdefault.jpg "Grid : How to run parallel Mobile test scripts using Appium grid : Tutorial 4") ](https://www.youtube.com/watch?v=vXpskMkytD8)

https://www.youtube.com/embed/C5OLO6gbX8k?feature=oembed&wmode=opaque&list=PLXbcghgSZDroz9nez1IrbL2hnMVJ0ba1W

> **[Configuring Appium Node Server with Selenium Grid](https://thalayasingamchristina.wordpress.com/2016/05/27/configuring-appium-node-server-with-selenium-grid/)**
>
> Introduction Mobile devices are widely used in the world today. Therefore mobile application require vigorous testing. As android is the common mobile operating system we should be able to test it …

> **[Appium Automation: Parallel Execution in Multiple Real Devices](https://gopekannan.wordpress.com/2016/08/05/appium-automation-parallel-execution-in-multiple-real-devices/)**
>
> Automation Test Script will be running in multiple devices simultaneously using the following jars; I have tried the below implementation in Windows x86 machine. Selenium Grid from Selenium Standal…

[https://www.swtestacademy.com/appium-parallel-tests/](https://www.swtestacademy.com/appium-parallel-tests/)

> [@Selenium Grid and parallel execution for android](https://discuss.appium.io/t/selenium-grid-and-parallel-execution-for-android/24835):
>
> Tried to setup parallel execution with selenium grid for two android emulators. But My tests firstly run on 1 device, after finishing, they starts on the 2 device. Please help, how to run test simultaneously on two devices. How I run it. Creating Hub. java -jar selenium-server-standalone-3.14.0.jar -role hub -port 4445 Launching two emulators. with command adb devices i found their udid. Run 2 appium servers. appium --nodeconfig ~/pathtonode/node\_1 -p 4724 --suppress-adb-kill-server …

> **[Mobile Test Automation for Native APP: IOS+Android+ Parallel Execution in...](https://automationcalling.com/2018/11/11/mobile-test-automation-for-native-app-iosandroid-parallel-execution-in-physical-cloud-emulator-real-device-genymotion-appium-java-selenium-allure/)**
>
> Reading Time: \<10 minutes What’s up guys! Welcome to automationcalling.com Alright! I have been waiting for this moment because I was stuck with some personal issues, so couldn’t pos…

Nice link for git hub code repo:

> **[GitHub - eliasnogueira/appium-parallel-execution: A lean, up-to-date, and...](https://github.com/eliasnogueira/appium-parallel-execution)**
>
> A lean, up-to-date, and cross-platform solution to run your mobile tests into a Selenium Grid using Appium. - eliasnogueira/appium-parallel-execution
