Karuna Lingham
Karuna Lingham

Reputation: 1

How to execute multiple appium test scripts one after the other?

I was trying to execute an appium test suite i have created, which consists of multiple test files within the suite.

Can anyone please help, i'm unable to execute the second test script after the execution of first script. It restarts the app and starts afresh. I need to start from where it left off in the first script.

I've tried session-override flag, also tried launch_app().

Upvotes: 0

Views: 2562

Answers (2)

Padma
Padma

Reputation: 117

You need to add the above capability in the main method where you have mentioned the other capabilities such as device name, app path, .. so that the main method will install the app in your device first and start execute the first test method freshly followed by the other test methods in the suite without reset.I am using this in my automation both in iOS and Android. Uninstall the app if you have already before running the test in the test device.

Upvotes: 1

Padma
Padma

Reputation: 117

If you use the full reset option as false in desired capabilities, then the app won't be started fresh every time. I used the following in my desired capabilities.

capabilities.setCapability("fullReset", false);

If you are using appium 1.5.3 GUI, check the box against No reset in iOS/Android settings.

Upvotes: 1

Related Questions