appium-device-farm icon indicating copy to clipboard operation
appium-device-farm copied to clipboard

Support for Robot Framework and Parallel Execution of Same Tests on All Devices

Open keyur2maru opened this issue 3 years ago • 8 comments

keyur2maru avatar Sep 08 '22 17:09 keyur2maru

https://github.com/AppiumTestDistribution/appium-device-farm/issues/191#issuecomment-1240350072

saikrishna321 avatar Sep 09 '22 05:09 saikrishna321

How to run same tests on all connected devices? I am using device farm with robot framework and the issue I am facing is that I am unable to run the same tests on all connected devices simultaneously. Even after providing the UDID while creating an Appium session, it still randomly gives ECONRESET error after first few commands or the tests starts on device 1 and then that session fails but same device is picking up another test from the device farm, which was supposed to run on some other device.

saikrishna321 avatar Sep 09 '22 05:09 saikrishna321

@saikrishna321 @sudharsan-selvaraj To get this done, we should expose API's that can get free devices and block on plugin side. So that client code can use that device information as part of the createSessions. Thoughts?

saikrishna321 avatar Sep 09 '22 05:09 saikrishna321

@saikrishna321 @sudharsan-selvaraj Yes. If we are able to get a free device and block it in plugin end, it would help us in scaling same devices for other automation tools. Basically I run all Espresso and Appium tests on same system. So if there is a way we can send free devices info to espresso tests we will be able to make maximum use of it.

Also another use case, whenever a device is having issues (Like Internet disconnected, app level inconsistent on particular device) or user needs the device manually. User can hit the route and make the device busy and once his requirement is fulfilled he could make them available.

rajvinodh avatar Oct 25 '22 18:10 rajvinodh

@rajvinodh >> user needs the device manually

In this the user will unplug the device right? If so, then the device list will be refreshed and device wont be shown

saikrishna321 avatar Oct 26 '22 03:10 saikrishna321

@rajvinodh Acknowledged, point that I wanted to convey is. When ever user wants to block execution on particular device, he can use these API's. Basically devices would be connected to some other machines, removing them and connecting would be an over head.

rajvinodh avatar Oct 26 '22 05:10 rajvinodh

@rajvinodh with latest version we have option from dashboard to block the device.

When ever user wants to block execution on particular device, he can use these API's

saikrishna321 avatar Mar 04 '23 03:03 saikrishna321

Great, Thanks for updating here.

rajvinodh avatar Mar 05 '23 11:03 rajvinodh