Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to install application programmatically in Appium ?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 794
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: