Appium Android test Environment to build the resources involved, tools are many, from the Internet to find a variety of information, integration of resources, for the small white level.1, Appium Installation:Reprinted from: Http://www.cnblogs.com/oscarxie/p/3894559.html.2. Mac configuration Android environment variable
1. First connect your Android device with USB, then run the command at the terminal, it can start the device's 5555 port so that it can connect on the network.55552. Disconnect the USB connection now and make sure the device and your computer are connected to the same wireless network.Go to Device View IP address: Set-wifi-WIFI-IP address you are connected toand run the command at the terminalADB connect 3. Finally verify that connect is successful wi
using appium test app Automation to find elements is cumbersome, no selenium find Web page elements convenient,And the limitations are relatively high, use is not too flexible.So here are some of the methods we usually use to find elements (for example, a hammer phone).There are two tools you can use to find elements: Android SDK Bring your own Uiautomator Viewer ; Appi
UIAutomator practices and suggestions for locating Android controls (Appium companion), uiautomatorappium
In my previous article, 1. Background
In order to reach an agreement with the previous article, this practical object is also the NotePad application that comes with the SDK. It is also an attempt to obtain the Add note Menu option on the Menu Options in the NotesList Activity. The following is an inter
Problem:1. Connection to the server is unsuccessful (file:///www/asset/index.html) (Reason: Android system issue, need to update)2, Appium test mixed app, did not return WebView (reason: mainly due to Android version problem, need native system android4.4)3. The Android SDK cannot update the package4. Extra file update
Code with the Appium of the example, it is not affixed.The two problems encountered,Could not find a Android deviceBecause there is no Android real machine, so run with the simulator, at first, I thought it would automatically help me to start the Android emulator and then run.It's actually going to start the
1. Phone rootRoot is the only super user in the system, get root permission, can start or stop a process at will, delete or add users, add and disable hardware. For Android phone, some mobile phone manufacturers will be embedded in the mobile phone fixed application software, to promote the role of propaganda, but this to the mobile phone users caused inconvenience, ordinary users can not delete them, This requires root. In short, to get root permissi
Appium Android Automation FAQs1, SeesionnotcreatedexceptionMeet this first to determine that the JDK requires more than 1.7Then also make sure that Appium is in the boot state and can be cmd restarted under Appium2, WebdriverexceptionThis issue can be viewed Appium logIt can be seen that the package name is not found,
commonly used operating buttons )
Simulator keys
Keyboard keys
Back off
Esc
Menu
F1 or PAGE Up
Begin
F2 or PAGE Down
Call
F3
Hanging off
F4
power button
F7
Disable/Enable all networks
F8
Start tracking
F9
Stop tracking
F10
Rotate screen (Horizontal/vertical screen toggle)
Ctrl+f11
Maybe a lot of friends can not wait to use Robotframework+appiumlibrary to write the test script of Android app, then we also talk less, direct start.First open ride, this is to write robotframework test script integration environment, if not installed first, of course Robotframework also want to install, these people can find relevant information on the Internet to solve how to install the problem.Secondly Create a new Resource.txt file, this file is
Using Uiautomator to do UI testing: http://blog.csdn.net/chenbang110/article/details/23371731 Uiautomatorviewer: Analyzing Android App UI components: http://www.6san.com/1052/ Appium Inspector Real-machine positioning elements: http://blog.sina.com.cn/s/blog_68f262210102v536.html Use CMD to navigate to Android-sdk's tools and run Uiautomatorviewer.bat Then clic
deletekeycode_f Unction key Function Modifierkeycode_guide button Guidekeycode_headsethook button headset Hookkeycode_meta_left Press the left Meta Modifierkeycode_meta_right button right meta modifierkeycode_pictsymbols button picture Symbols Modifierke Ycode_prog_blue key BLUE "programmable" keycode_prog_green button GREEN "programmable" keycode_prog_red key RED "PR Ogrammable "Keycode_prog_YELLOW button YELLOW "programmable" keycode_settings button Settingskeycode_soft_left button SOFT
When it comes to app automation, you're often asked how to know the app's package name and launch page name. The question is simple:1. The most direct way to ask development ah, they tell you the app's package name and start page.2. If you are shy and can see/understand the code, get the code and get it out.1) If it is an in-house app, download the latest code, then go to the code to find the package name and start page.2) If it is not the company's app, decompile it, then go to the code to find
Background:Working with Appium to make Android's automation function use casesProblem:The QQ APK is encrypted, and is truncated in the XML file directly apktool the anti-compile. Unable to get startup activity name;Problem Solving methods:By observing the log method:Steps:
Turn on log output: adb logcat>d:/log.txt
Launch the APK to be tested, open the interface (ie open the QQ interface)
Turn off log output: Ctrl + C
To view the logs, f
1. Installing the JDK(1) JDK will be installed two times, once is the JDK, the second time is the JRE.(2) environment variable configuration:Add Java_home variable, value:JDK installation pathAdd Classpath variable, value: .; %java_home%\lib\tools.jar;%java_home%\lib\dt.jarModify the path variable, plus this sentence %java_home%\bin;(3) command line Input Java command to detect if installation is successful2. Installing ADT(1) Website: http://tools.android-studio.org/index.php(2) environment var
Continue to build the appium environment.
Section II installs the Android development environment
If your environment is a Mac then you can skip this section directly. Just as we were using selenium for Web automation testing, we needed a browser to execute the test script. So the mobile-end automated test, we also need an Android phone (mobile phone need to li
Appium + Robotframework for automated testing of Android applications-3: an essential tool introduction, appuim
Everything is ready. Now we are about to write a test script.
However, an important problem has not been solved. We know that the RobotFramework mainly relies on the element id, name, or xpath in web pages to locate the elements on the page. We rely on the browser plug-in firepath to achieve thi
Because you want to test the Web pages embedded in the Android app, you need to switch from native to WebView. I looked up a lot of posts on the Internet and used similar code as follows:Judging whether there is WEBVIEWsetfor (String contextname:contextnames) {System.out.println (Contextname);if (Contextname.contains ("WEBVIEW")) {Driver.context (Contextname);}else{System.out.println ("no WEBVIEW");}}Appium1.4.16 is not the way to use it .Later, using
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.