Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Calculator automatic test method and test system based on uiautomator test framework

A technology of automated testing and testing frameworks, applied in software testing/debugging, etc., can solve the problems of difficulty in large quantities and low efficiency, and achieve the effect of convenient operation and wide testing range

Inactive Publication Date: 2015-11-25
XIAMEN MEITU MOBILE TECH CO LTD
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Taking a mobile phone calculator as an example, the current mainstream automated testing method is based on the automated testing under the Robotium framework. First, the application interface is layered, and the solo method in Robotium is called according to the corresponding functions to encode and compile into an executable. Script, import it into the test machine, start the automated test; then set the judgment point according to the test of each function, call the screenshot function to take a screenshot of the test result; finally compare and verify the obtained screenshot with the expected result, and output the test report ; However, this method distinguishes the test results by calling the screenshot function to take screenshots of the calculation results and then compares them artificially in the later stage.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Calculator automatic test method and test system based on uiautomator test framework
  • Calculator automatic test method and test system based on uiautomator test framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer and clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0036] Such as figure 1 Shown, a kind of calculator automation test method based on uiautomator test framework of the present invention, it comprises the following steps:

[0037] 10. Obtain the control properties of the calculator interface corresponding to the item to be tested;

[0038] 20. Locate the control element to be tested by using the control property;

[0039] 30. Under the uiautomator test framework, encapsulate the control element as a uniquely identifiable component object;

[0040] 40. Coding the component object and compiling it into...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a calculator automatic test method and test system based on a uiautomator test framework. The test method comprises the following steps of acquiring a control attribute of a calculator interface corresponding to an item to be tested; using the control attribute to locate a control element to be tested; under the uiautomator test framework, encapsulating the control element into a component object that can be uniquely identified; encoding the component object, and compiling the component object into an executable script according to the item to be tested; finally, starting the executable script and then an automatic test can be performed. By adopting the calculator automatic test method and test system based on the uiautomator test framework, automatic calculation and automatic result judgment can be performed on the calculator, test can be performed repeatedly, the test efficiency and accuracy are higher, and the stability of software and the system can be enhanced.

Description

technical field [0001] The invention relates to the technical field of automated testing, in particular to a computer automated testing method based on a uiautomator testing framework and a system for applying the method. Background technique [0002] Automated testing has the advantages of saving manpower, time, hardware resources, and improving work efficiency and judgment accuracy. Therefore, on the basis of traditional manual testing, automated testing is gradually being introduced into the testing of mobile terminal APPs. Taking a mobile phone calculator as an example, the current mainstream automated testing method is based on the automated testing under the Robotium framework. First, the application interface is layered, and the solo method in Robotium is called according to the corresponding functions to encode and compile into an executable. Script, import it into the test machine, start the automated test; then set the judgment point according to the test of each f...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
Inventor 陈自强
Owner XIAMEN MEITU MOBILE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products