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
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
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
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
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
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
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
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
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
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
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
One bug-raised issuesIf there is a bug in the development process: "Constantly switching the language of the phone to display the phenomenon of flower screen." How do we verify this problem? I think the best way should be automated testing.So what are the tasks that automated testing can accomplish?Simply put, those repetitive testing work can be done by automating:1, set the language of the phone2. Add, delete, and bookmark contacts3, dial-up, hang-off4, even send text messages, collect text me
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
I have previously written a description of how the Appium and Uiautomator frameworks locate controls on the Android interface.
Uiautomator ways to locate Android controls practice and advice
Appium practice and suggestion on the control location method of various findelement based on Android
Today we change a source more long, today's more popular framework robotium, in practice, see how i
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://github.com/xiaocong/
In the previous series, I introduced Java for Android Automation test (1) How to install and uninstall an application (Java),Android Automation Test (2) Find objects by ID (Java),and then introduce the Python language for Android Automated Testing (3) Finds object touchtype (python) by ID. Also said that follow-up to write about unit tests and code coverage test articles. The unit test is to be introduced today. 1. OverviewAs a classmate of Java unit testing, using Android unit tests is simple,
The premise is that the jdk,android and ant environments are configured on their own computers.1, under the command line into the \android-sdk\tools\ folder, execute the command:Android ListView the ID value of the SDK for the corresponding Android version number find your phoneor the corresponding version number of the simulator2, still under the \android-sdk\tools\ folder, execute the command:Android Create Uitest-project-n Example:Android Create Uitest-project-n autorunner-t 60-p f:\uiautomat
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.