AppiumTestDistribution / appium-device-farm

This is an Appium 2.0 plugin designed to manage and create driver sessions on available devices.
https://devicefarm.org
Other
311 stars 97 forks source link

To Handle multiple app installs as part of prerequisite steps #778

Open Vignesh4297 opened 1 year ago

Vignesh4297 commented 1 year ago

Handle multiple app install as part of prerequisite steps

In my use case We need to install and initalize 3-4 apps before script execution where we will be doing in @beforesuite prequesite using adb commands.

As a final steps we will be initializing the appium driver because prerequisite would take around 3-4 minutes and appium driver would timeout.

Currently we are planning to use device farm plugin for parallel execution. While POC we faced challenged on executing adb commands when we have multiple device connected to server machine ( we are having locally). Once we initialised appium driver will we be able to get udid, so that we will add the in adb command in below format. And also how to overcome the appium timeout?

adb -s command

saikrishna321 commented 1 year ago

Apart from installing multiple apks in a single device, do u also run any other adb commands on all connected devices?

Vignesh4297 commented 1 year ago

Yes sai, we will be using adb commands for app initialization and streaming data continuously

saikrishna321 commented 1 year ago

Post appium driver is initiased ?

saikrishna321 commented 1 year ago

@Vignesh4297 Check if this will be helpful in your case https://github.com/appium/appium-uiautomator2-driver#mobile-installmultipleapks

Vignesh4297 commented 1 year ago

Thanks a lot @saikrishna321 Will try and let you know