What changes require in desired capabilities to use multiple appium serves on single machine?

I have started two appium servers as below on my machine:

node . -p 4491 -bp 2252 -U 4100
node . -p 4492 -bp 2251 -U 4df1

What configuration changes i need to make in desired capabilities to run my tests parallel on single machine? Below is my desired capabilities file right now

desired_caps = {
caps: {
name: test_name,
deviceName: ‘Android Emulator’ ,
platformName: ‘Android’,
app_wait_activity: ‘.authenticator.ui.AuthenticatorActivity’,
udid: ‘410011133ebf9f00’,
Appium.promote_appium_methods Object
return driver

Hey Guys,

This can be solved by mentioning the the port, bootstrapPort and device id in desired capabilities. Below is my appium.txt file for the same.

platformName = “Android”
bootstrapPort = 2251
deviceName = “Android”
app = “/Users/…”
udid = “4df1…”

port = 4491

I can run different tests now on my machine.

1 Like

Hello All,

I was able to run multiple tests on android in ruby. Uploaded the project to github: https://github.com/shankybnl/android_app. Follow the instructions in Read Me file. Hope this helps!