Whole Installation of APP Automation environment can be installed by reference to the pest engineer blog
The following links are attached:
Http://www.cnblogs.com/fnng/category/695788.html
Here are some of the problems that apply to your work
1. How to install the external APP in the simulator
Locate the directory address for Adb.exe
I was going to
D:\360Downloads\android-sdk-windows\platform-tools
2. Install with adb command
ADB install D:\360Downloads\android-sdk-windows\platform-tools\newapk\ package name
You can go to the simulator to see
That means it can be installed successfully
Reference Link:https://jingyan.baidu.com/article/48a42057eb21bea924250433.html
- How to find APP 's package name (apppackage)
(excerpt from the Zerg blog) I used the second way to install it. Because the first one doesn't know which activity value to take
Method One
first, you have to have a the APP's installation package xxx.apk,
Then, unzip the. APK using the Unzip tool . as follows:
Open androidmanifest.xml file by notepad++ , search inside:manifest corresponds to apppackage.
Search:activity corresponds to appactivity. (Activity keyword is many, you should pay attention to distinguish.) )
Method Two
This method is also relatively simple, mainly for you do not have . apk package, such as Android native APP(Calculator, contacts, SMS ...) ), you can use the adb command.
1.Open the APP.
2, Executive > ADB logcat>d:/log.txt
3, do some random operation of the APP .
4, Ctrl + C ends the adb command.
5, open log.txt file, search:Displayed
AppPackage:com.android.messaging
Appactivity:. ui.conversationlist.ConversationListActivity
in this way, I can run first to open a APP !
Attached
3. How to build appium automated test environment