I am working on Mobile app automation. In my app Login, View contacts, My profile view… available.
I wrote TestNG classes.
Ex: Installation(@BeforeSuite), Login(@Test priority=1), ViewContacts(@Test priority=2), MyProfileView(@Test priority=3)
If i run the app
Each & Every time Installation, Login Methods/functionality going on.
If app not exists in the device need to do all functionality, else app already exist in the device no need to Installing & Login.
Directly execute the remaining methods, like ViewContacts, MyProfileView
In your Login() method you can place a condition to check if App is installed or not using AndroidDriver method “isAppInstalled(bundleID)”, if this method returns true then App is installed and you need not install it again.
Also, you can check Appium settings, if you have selected FullReset or NoReset. Selecting FullReset will install the App each time. You can keep NoReset selected in Appium settings.
Hi Jo, Which app do you currently wants to automate…?
If it is IOS app,BUNDLE ID must be in your Mac, go to XCode ->window->organizer->applications->click on …it
Otherwise , go to search -> iphone configuration utility->applications->identifier(as Bundle id), in that you may found it.
For real device Bundle id must be given, and for simulator App path should be given.
for app package name . You can connect your device to system via USB and execute “adb shell pm list packages -3” on cmd
or you can install following android app to get all package name which installed into device
“ÄppInfo”