Thursday 17 December 2015

Appium - Run appium script on real android device remotely through Wi-Fi

1. Connect android device to your PC via USB.

2. Run the command 'adb devices' in command prompt.
       Verify adb is able to detect your android device.

3. Execute the command 'adb tcpip 5555'
        adb will be restarted to work over tcpip

4. Disconnect your android device from PC(i.e. remove USB connection).

5. Type below command in command prompt.
        adb connect <<IP Address of your mobile device>>

6. Type command 'adb devices', this will display the devices connected(i.e. remotely)

7. Execute the appium script now.

8. You can see the appium script is executed on real android device over Wi-Fi.

Note:
 Make sure your PC and android device is accessing same network.
 In the below video session, EriBank app is already installed in android device.

Watch Demo

4 comments:

  1. Hello Praveen Kumar,

    Thanks for the usefull information.
    Actually i have question for U . Did u tried Automating EricBank App in iOS Device ? Because i am trying ti automate it but it's EriBank IPA file is not getting installed in Iphone device

    ReplyDelete
    Replies
    1. For executing the appium script on iOS phone requires Mac OS X and i have not got opportunity to work on Mac OS X.

      Delete
  2. Hi Paven.. In APPIUM GUI, how we configure the server address and port?

    ReplyDelete
    Replies
    1. To Configure 'Server Address' and 'Port'.
      - Launch Appium server.
      - Click on 'Setting' menu (i.e. gear icon).
      - 'General Settings' icon is displayed, there you can view the settings.
      i.e. 'Server Address', 'Port', etc.

      View the below url for quick reference.
      http://www.thetestingworld.com/wp-content/uploads/2015/06/img_5586b21028e52.png

      Delete