Sorry for newbie question. I found that we can run tests in parallel for each platform. http://appium.io/docs/en/advanced-concepts/parallel-tests/
But I have a question. Can we run one test.xml file with tests for both platforms simultaneously? or we should have test.xml for each platform?
Can somebody explain and give some examples?
Thank you
<test name="Samsung Galaxy S7"> <parameter name="deviceName_" value="Samsung Galaxy S" /> <parameter name="platformName" value="android" /> <parameter name="udid" value="ce0117110d5a2f1105" /> <parameter name="platformVersion_" value="7.0" /> <parameter name="URL_" value="0.0.0.0:4725/wd/hub" /> <parameter name="apppackage" value="com.mbrdi.travelbook.android" /> <parameter name="appactivity" value="com.mbrdi.travelbook.android.view.activity.BaseActivity" /> <classes> <class name="com.mbrdi.cc.testscripts.LandingScreenTest" /> </classes> </test>
You can have 2 tests running parallely for iOS n android
n keep this as header…
Hi, thanks for your answer. But i don’t clearly understand. we have
test name=“Samsung Galaxy S7”> <parameters <classes what to run. Then we need to add test name=“iPhone”> <parameters <the same classes to run
test name=“Samsung Galaxy S7”> <parameters <classes what to run.
Then we need to add test name=“iPhone”> <parameters <the same classes to run
Am I right?
I have shared fr android only… Parameters are Capabilities which I am passing to my script where I have kept variables to assign value of the parameters… example is if I want to run 3 classes at the same time then I ll pass those class names in classes tag i.e this… com.mbrdi.cc.testscripts.LandingScreenTest