
It needs to remain this way when you run your script. Keep your mobile device connected to the USB cable. Note down the device ID that you get for your phone, because you would need to provide that in your Appium test script.ĥ. From the above screenshot the Device ID is – ENUL6303030010. daemon started successfully”, then run the command again)Ĥ. Once you run this command, you would see the details of the device as shown in the below image (if you see some other response such as “daemon not running. Now open command prompt and run this command: adb devicesģ. (If your mobile device shows some popup after connecting, then accept that popup)Ģ. Connect your mobile device to your computer using USB cable. Let us see how you can find the Device ID (or UDID) of your mobile phone –ġ. So it would need the Device ID, so that it can connect to the correct device and run the scripts on that device.

Now when you run your Appium test script, Appium would detect that you have multiple devices connected. For example, consider a scenario where you have multiple mobile phones connected to your machine using USB cables. Get your Mobile Phone’s Device IDĪppium identifies your mobile phone using its Device Id (also called as its UDID). Let us now move over to the next section. Appium server would start and you would see the screen as shown below Leave all other fields as it is, and then click on Start Server v1.7.2 buttonĦ. This would ensure that your scripts don’t fail due to session related issues.ĥ. This is because the previous session still exists and thus, Appium server is not able to create a new session.Īnd when you tick the checkbox, you provide Appium the capability to override the existing session when you re-run scripts. If this session doesn’t close properly, then your script would fail when you re-run it. Note: Why did you tick “Allow Session Override” checkbox? When you run an Appium test script, it creates a new session on the Appium server.


Follow the steps given below to do this –ġ. We are going to use Appium Desktop App to start the Appium server. Let us now work with each of these topics one by one.

START APPIUM SERVER INSTALL
I have personally experienced how challenging and daunting it is to download and install all the tools, set up all the environment variables and do all this reading just to get your Appium setup up and running. First of all – Congratulations!! that you have made it till here in our Appium Tutorial series.
