This is the name of the popular online argument "UIAutomator cannot be used to search for controls in Chinese Text". The argument is uiautomator.1. Problem description and cause
I believe that you will read this article at the beginning of UIAutomator.
Overview of Android Automated Testing
This is because this article ranks first when you enter
MonkenRunner's methods and suggestions for locating controls through HierarchyViewer (Appium/UIAutomator/Robotium companion), uiautomator1. Background
When using MonkeyRunner, we often use the HierarchyViewer module under Chimchat to obtain information about the target control to help us test, but on MonkeyRunner's official website does not see the corresponding API description, above only the following three classes of API reference information (http
Yesterday one day in the online search to solve the exception in the previous article:Monkeyrunner built-in uiautomator cause of errorAlthough no solution was found. But I stumbled upon a good tool, a better tool than sl4a. Direct packaging Uiautomator. Call Uiautomator's API to script directly locally and then execute the test case, which is better than writing in Java. and then pack. Runcase to be much si
Description: The Uiautomator interface is rich and easy to use and supports all Android event operations, and event operations are not dependent on control coordinates, and can be well-suited for UI testing by asserting and validating correctness . Uiautomator does not require testers to understand the code implementation details, which are functional and black-box testing. The test code is simple in struct
Yesterday one day in the online search to solve the exception in the previous article:Monkeyrunner built-in uiautomator cause of errorAlthough I didn't find a solution, I stumbled upon a good tool, a better tool than sl4a, wrapping uiautomator directly, calling Uiautomator's API to write scripts locally, and then running the test case, which is better than writing in Java and then packaging, Runcase is much
One, Uiautomator settext cannot enter the reason of ChineseUiobject.settext (String) cannot enter non-ASCII characters, such as Chinese.Second, uiautomator Unicode input helper principlePrinciple: Converts the input original character into Unicode text, and then enters various text through the intermediate conversionJutf7 Input Method: Chinese->unicode->keycode-> convert to ChineseThird, the Operation proce
Transferred from: http://blog.chengyunfeng.com/?p=504When Android 4.1 was released, it included a new test tool, –uiautomator,uiautomator, for UI testing. This is the normal manual test, click on each control element to see if the output is as expected. For example, the login interface to enter the correct and incorrect user name password and then click the Login button to see if it can login and whether th
First, installationSource Address:Https://github.com/xiaocong/uiautomator#basic-api-usages① Download Zip package, unzip to local directory② into the corresponding directory, executeCommand-line prompt uiautomator installation is successful, you can now start writing uiautomator scripts in Python ~ ~Second, useHttps://g
How to understand uiautomator inside the child, Child_by_text, sibling, we use the Android native Uiautomatorviewer crawl control to understandWith a detailed explanation (the left and right sides are circled by different colors, indicating the attribution of these controls), such as the red circle part as a parent class, the green circle and the yellow circle are its subclasses (called Child), and the green and yellow circles belong to the same level
In the Android testing tool, Monkey Runner only needs a few simple commands, but its limitations are:Pixel-based operations are not portable.
The automated test tool compiled by uiautomator can be used to select and directly operate uiObject Based on UiSelector.Property-based operation portability Testing.
Note:
The official android version conditions are as follows. If you are earlier than these versions, downloa
Android Uiautomator Text LocationSomeone may not know why Android Uiautomator is the ultimate location, and what does Android Uiautomator have to do with Appium? If some of the previous scripts have been written and found that some of the elements are not well positioned, then the Android Uiautomator is needed to locat
eclipse after the download, build the Android project, generate the utf7ime.apk, install it into the test machine, and set the phone language as "UTF7 IME for UI testing";Copy the source code under helper-library/src/* to the/src/of your Uiautomator test project.That's what I'm doing here, just wrapping UTF7IMEHELPER.E () in the Commonhelper.java file, and then calling:Then you can type in Chinese.But here
1. Problem description and cause
I believe that you will read this article at the beginning of uiautomator.
Overview of Android Automated Testing
This is because this article ranks first when you enter uiautomator for search.
However, there is a saying in this article that uiautomator does not support searching controls in Chinese text. This statement is har
1. The default code on the phone is utf-8, so the project needs to be set to UTF-8 encoding;2. Open the mobile phone developer mode, the first time the phone connected with the computer, you need to download the driver, to pop up the allowed debug box, computer-side with the app Bao and other software connected to the mobile phone will automatically download the driver;3. Use ADB devices to see if the phone
There is a requirement in the recent project to test the application on at least 100 phones, the first thing to think about is the automation to operate, do not want to operate the same duplicate operation The basic requirement is this, install the tested application, start and exit, and then install the test sample to detect if there is a corresponding pop-up window blocker Considering the various testing frameworks on the market and the familiar programming language, finally chose Google's own
Remark :1, utf7ime official website download need to increase the modification part of the file, so attached address: http://download.csdn.net/detail/victoria_vicky/8799851, can be directly imported into eclipse use2, src:http://download.csdn.net/detail/victoria_vicky/87999733, the future may be usedFirst, install Input method1. Download Utf7ime.rar, unzip to local folder2. Import to eclipse:file->import->g
Why do I need quick commissioning?
Uiautomator cannot be debugged directly at Eclipse
Inefficient command-line debugging
For quick Commissioning Steps
Open Https://github.com/fan2597/UiAutomatorHelper
Download the project
Copy the Uiautomatorhelper.java to the test project
New Java Main method, fill in the following code Public Static void Main (string[] args) { Str
According to the plan mentioned at the beginning of the previous article "injection event of uiautomator source code analysis", we need to analyze the second point:
How to obtain control information
We initialize a uiobject in the test script as follows:
UiObject appsTab = new UiObject(new UiSelector().text("Apps"));appsTab.click()So what happened in this process? This is what we will talk about next.
1. obtains the control information sequence diag
In my previous article Appium based on Android's various findelement control positioning methods Practice and recommendations >> In the second chapter, Appium can use the Uiautomator method to locate the controls on the Android interface, just a few examples. As this article gives its own commitment, today special writing this article to describe uiautomator various control positioning methods, as the previ
Android uiautomator automated testing, androiduiautomatorThe premise is that JDK, android, and ant environments are configured on your computer.1. Go to the \ Android-sdk \ tools \ directory under the command line and run the following command:Android listView the android sdk id and find your mobile phone.Or the version of the simulator.2. Run the following command in the \ Android-sdk \ tools \ directory:Android create uitest-project-n For example:An
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.