dryark / stf_ios_support

Central repo to connect and document components/repos needed for IOS stf support
Other
154 stars 65 forks source link

Could anyone manage to integrate and run tests using Appium ? #89

Open mbilbiesi opened 3 years ago

mbilbiesi commented 3 years ago

Hi again !

I am trying to run tests on appium server on the mobiles which are already used by stf_ios_support , I am facing issue when Appium is trying to create a driver; it complains about the ports which are already reserved by stf_ios_support

currently i am having two devices connected to stf and reserving ports 8100 and 8101, I tried to change maintain the ports from test side by giving another ports using the capability wdaLocalPort to something which is not used by ios_stf (i.e 8102, 8103) ; then I ran the tests and it worked; but the devices are not controllable anymore after this run; somehow the wda is killed !

Is there any guidance in how to use ios_stf_support beside Appium ?

nanoscopic commented 3 years ago

Works fine for me / I and my team used it regularly together with stf_ios_support at TMobile.

The key is you have to pass a special option to re-use an existing local port / already running WDA since otherwise Appium tries to start its own copy of WDA.

mbilbiesi commented 3 years ago

Unfortunately, all my tries are not working; i tried to apply all possible capabilities related to re-use the existing WDA session under https://github.com/appium/appium-xcuitest-driver, but i am still struggling to avoid closing the session which is created by stf-ios-support !

Do you still remember what was this key we need to pass to re-use local port ? :)

koltevinod1 commented 2 years ago

Works fine for me / I and my team used it regularly together with stf_ios_support at TMobile.

The key is you have to pass a special option to re-use an existing local port / already running WDA since otherwise Appium tries to start its own copy of WDA.

which key do you mean??

koltevinod1 commented 2 years ago

Unfortunately, all my tries are not working; i tried to apply all possible capabilities related to re-use the existing WDA session under https://github.com/appium/appium-xcuitest-driver, but i am still struggling to avoid closing the session which is created by stf-ios-support !

Do you still remember what was this key we need to pass to re-use local port ? :)

use "webDriverAgentUrl"

Immanuel-Codoid commented 2 years ago

Hi @mbilbiesi have you sort out how to integrate appium automation on ios device using stf_ios_support, if so, kindly help me out and share your experience on it. Will be very much helpful if you share any repo that has that implementation. Thanks