Start Appium mobile test without reinstalling the app
Hello,
New to Appium mobile testing (try to migrate from legacy mobile testing:-).
How do we run a mobile test without re-installing the mobile app each time.
Current situation: our app has different behavior on first opening, then need to authorize device acces (photo, position...).
I want to run tests using an already running app (appium session).
I have tried with capabilities, but did not get it working yet.
Here are my Android capabilities (Physical Android device connected USB to local Laptop, running Appium server locally also).
var capabilities = {
"app": "c:\\TC\\Android\\MyApp\\myCie-5.2.40118.2_Emulator.apk",
"appPackage": "com.myCie.pjc",
"appActivity" : "myCie.views.pages.root.RootPage",
"noReset" : "true",
"fullReset" : "false",
"automationName": "UiAutomator2",
"deviceName": "Huawei P20",
"newCommandTimeout": "600",
"platformName": "Android",
"udid": "xpnxxnppxnx"
};
this is pure guesing, but :
with the caps you have here:
"appPackage": "com.myCie.pjc",
"appActivity" : "myCie.views.pages.root.RootPage",
"noReset" : "true",
"fullReset" : "false"i feel like you can get rid of the "app" capability to the the path of your apk, and given the app is already on your android device, appium should be able to start the app given the 4 caps above without reinstalling from scratch.