There are many times there is a need to install the application programmatically in our testcase. The first thing that we should do before installing the application is to check that whether the desired application is installed in the device or not. If the application is not installed then we give the path of the desired apk in the system and install the application in the device.
Appium provides the set of methods to first check that whether the application is installed or not and then the method to install the application.
isAppInstalled(String bundleId)
bundleId: This is the package name of the application.
This method will return a boolean value. If it returns false then only the next method should be called in the program
installApp(String appPath)
appPath: This is the path of the apk that we want to install.
0 Comment(s)