Mobile (Appium) Automated testing-another means of crawler

Source: Internet
Author: User

Appium Automated test Environment setup:

1.Python Environment (recommended 2.7) and JDK.

Download 2.Adb tools: Download adb, night God simulator and Android SDK yourself separately

3.APK installation media: Real-computer, Android-powered simulator and third-party simulator, recommended here: third-party simulator (Night-god simulator). You need to set the night God Simulator to: Developer mode.

4. Install the Appium PC client.

(1) Install The Python development module Appium-python-client:pip install Appium-python-client.

(2) use apktool-new to analyze the Apppackage and appactivity of the apk you want to download.

Reference URL:

A.http://www.cnblogs.com/fnng/p/4540731.html
B.http://www.cnblogs.com/fnng/p/4552438.html
C.http://www.cnblogs.com/fnng/p/4560298.html
D.http://www.cnblogs.com/fnng/p/4579152.html Steps to use:

I. Use the Apktool tool to decompile the downloaded apk. The command is as follows:

Apktool D xxx.apk

II. Anti-compilation Get xxx folder, in Androidmanifest.xml find apppackage and appactivity, specific find can refer to http://blog.csdn.net/linux_ loajie/article/details/34148943 .

A. use the UI Automator viewer in the Android SDK in step 2 to locate the element location of the apk you want to analyze.

B.[start coding], make sure to start [adb connect 127.0.0.1:62001 | adb devices]

Simple test Case:

Instance Code

ADB operations

Appium PC Client Run condition

Night God simulator apk running situation

Mobile (Appium) Automated testing-another means of crawler

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.