Appium Studio - Single script for Android & iOS is possible?


#1

I am using Appium Studio with IntelliJ.
Is it possible to cover Android & iOS with same / single script?


#3

Yes it is, script should have capability to create driver based on connected device platform.

example

@BeforeTest
if(Platform is iOS)
createiOSDriver(iOScapabilities)
else
createAndroidDriver(androidCapabilities)

followed by your tests.