3. How to build appium automated test environment

Source: Internet
Author: User
Tags appium

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

    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.