Saturday 18 June 2016

Install .apk file into emulator for mobile automation testing in Appium




Please follow below steps for install .apk file into emulator


-> Download required .pdk file

-> Launch the Android Emulator and wait till starts properly.

-> Goto command prompt and goto E:\android-sdks\platform-tools and verify the device connected properly (not offline). by using below command

E:\android-sdks\platform-tools>adb devices

List of devices attached
emulator-5554   device

-> copy and paste required .apk file into below mentioned path
E:\android-sdks\platform-tools

-> Run below command for install required .apk file in command prompt.


E:\android-sdks\platform-tools>adb install Calender.apk

1910 KB/s (93651283 bytes in 431.338s)
        pkg: /data/local/tmp/Calender.apk
Success


-> We will get "Success" message if apk installed in emulator.

-> Goto emulator and verify the calender app is installed or not.

No comments:

Post a Comment