Application program testing method and system

A technology of application program and testing method, which is applied in the direction of software testing/debugging, etc., which can solve the problems of large operation randomness, inability to guarantee the coverage of test function points, inability to fix problems, etc., and achieve the effect of improving test efficiency

Active Publication Date: 2014-06-11
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in the Android platform, the Monkey tool is usually used to test the application. The Monkey tool is a powerful application testing tool. When testing the application, the Monkey tool randomly sends clicks to the view objects in the application page. events or key events to randomly test the objects of the application. Therefore, the biggest disadvantage of the Monkey tool is that the operation is relatively random. Therefore, when the application is tested, the coverage of the test function

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
  • Application program testing method and system
  • Application program testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The basic idea of ​​the present invention is: traverse the nodes of the preset operation tree, add descendant nodes for the nodes according to the trigger relationship between nodes, and perform depth-first traversal on the descendant nodes; the nodes of the operation tree are The executable operation of the view object of the current page of the application to be tested; when a crash occurs in the traversed node, record the occurrence path of the crash, and continue to traverse other untraversed nodes; generate test results based on the occurrence path of the crash.

[0050] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0051] The present invention also provides a testing method for an application program, figure 1 It is a schematic flow chart of a preferred embodiment of the testing method ...

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 provides an application program testing method and system. The application program testing method comprises performing traversal on nodes of a preset operating tree, adding child nodes for the nodes according to trigger relationships between the nodes; performing depth-first traversal on the child nodes; enabling the nodes of the operating tree to be executable operations of a view object of a current webpage of a to-be-tested application program; recording generation paths of crash when the nodes performed traversal generate crash and continue performing traversal on other nodes which do not perform traversal; generating into a testing result according to the generation paths of the crash. The application program testing method can improve the coverage rate of testing function points in the application program.

Description

【Technical field】 [0001] The invention relates to automated testing technology, in particular to a testing method and system for an application program. 【Background technique】 [0002] The cost of writing test cases in automated testing is relatively high, so in daily application testing, all operations of the application are used as test cases to test the application. [0003] At present, in the Android platform, the Monkey tool is usually used to test the application. The Monkey tool is a powerful application testing tool. When testing the application, the Monkey tool randomly sends clicks to the view objects in the application page. events or key events to randomly test the objects of the application. Therefore, the biggest disadvantage of the Monkey tool is that the operation is relatively random. Therefore, when the application is tested, the coverage of the test function points cannot be guaranteed, resulting in inconsistent testing of the application. Comprehensive; ...

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 BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products