Android Automation Issues Summary

Source: Internet
Author: User

Android Automation Case Summary:

1.jenkins Job running Android Automation case
Appears Com.meilishuo.testcase.profile.albumshare:instrumentation_result:shortmsg=keydispatchingtimedout
Instrumentation_result:longmsg=timed out while dispatching key event
instrumentation_code:0
Analysis Reason: detection equipment due to the mobile phone related security software when uninstalling the app caused by an exception
Solution: Adjust phone, uninstall disable about mobile phone butler, Baidu Mobile assistant and other security software

2.jenkins Job running Android Automation case
The text string appears: ' ^xx$ ' is not found!
Analysis reasons: Writing Android Automation case using the Android framework Clickontext method to find text elements in the page to reach the Click Text page jump function, now the page has been adjusted to apply the Clickontext method to the text elements in the page to find The ability to click the text to jump the page
Solution: Mainactivity page Only through the Clickonview method for the image of the page to find the ID of the click Effect, to jump between pages

3.jenkins job run time is too long
Analysis Reason: There are many reasons due to case errors, mobile phone equipment cause, re-run more cycles
Solution: Specific problems to see the specific problem equipment problems watch the first recommendation to re-run the problem can be modified in the BaseClass class Runtest () method, modify the Retrytimes, modify its number of times can


Android Write Case Summary:

1. Update the case on your computer to the latest version of case before you write a case or modify it (to avoid a conflict with another person that has been modified)

2. When writing the corresponding page elements in the case, try to use the most concise way, as far as possible to highlight the corresponding page elements of the gaze, to facilitate the subsequent addition of new features or changes in the page when other people to modify

3. When you set up a case branch, try to have a sufficient amount of detail to be kept in a class, as far as possible, to facilitate subsequent modifications and maintenance

4.Android installation of the environment when the problem occurs, it is generally necessary to use log tracking, to see what is the problem, watch is missing what package, side to configure his jar package file.

5. Before writing a case, it is better to first comprehensive understanding of what we want to write, as well as communication with the development of a good, a lot of changes in the back, more cumbersome

Summary of Android Automation issues

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.