Is there any one have idea about how to write test to run two application parallel on the device


#1

As We can’t access setting outside of application in iOS real device appium XCUI test,I want to lunch setting application and my current project application.

When I use my current project application, The setting application should goes into back-ground and when I want to use setting application, my application should goes into background.

Is there any one have idea how to do that?

Thanks in advance.


#2

You can launch one app, put it in background and launch other app using start Activity and bring the background app back

Something like this

Try to focus on the current activity you were in :

driver.runAppInBackground(10);

driver.currentActivity();

or

Try to start the activity you were in :

driver.runAppInBackground(10);

driver.startActivity(“appPackage”,“com.example.android.apis”, null, null);


#3

Thanks @Sumeet_Panjabi