I want to install apk every time I run my test suites even when it is already installed. The newer build should overwrite the already installed build. And for the rest of the tests, the app should not re-install and should keep the app data.
For example, If I am running the test suites, then for the first test, app should install freshly and handle the splash screen and do login stuff. And for the rest of the tests, the same app should re-launch and it should open the home screen only (login data should be saved).
I tried with the following capabilities:
It’s meeting all my requirements. But its not installing fresh app everytime I run the test suites. If the app is already installed in the device, then it will simply re-launch it and then proceed from the home screen.
Kindly let me know what changes I need to make in the desired capabilities in order to meet this requirement.