Unlock instant, AI-driven research and patent intelligence for your innovation.

An automated testing method and system

A technology for automated testing and testing code, applied in the field of testing, can solve problems such as wasting time and manpower, and achieve the effect of improving test efficiency and reducing investment time and manpower

Active Publication Date: 2020-08-25
FUJIAN TQ DIGITAL
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Existing automated testing methods need to write corresponding functional test scripts, requiring testers to have a certain programming foundation
In addition, when updating the Android software version, the tester needs to manually test the UI function again or modify the test script written before, so that the tester needs to repeat the function regression test continuously, wasting a lot of time and manpower

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
  • An automated testing method and system
  • An automated testing method and system
  • An automated testing method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0074] Preset test cases corresponding to each function of the software to obtain a set of test cases;

[0075] Acquiring, according to the test case set, page nodes corresponding to the functions and hierarchical relationships between page nodes;

[0076] Generating a tree diagram corresponding to each function according to the page node and the hierarchical relationship between the page nodes to obtain a tree diagram set;

[0077] Combine the tree diagrams contained in the tree diagram set to obtain a tree diagram corresponding to the software;

[0078] Traverse the tree graph, obtain a path from a leaf node to a root node in sequence, and obtain the first path;

[0079] The method for generating a test script corresponding to the first path is:

[0080] When all the page nodes in the first path have not generated corresponding test codes, obtain the test code templates corresponding to the attributes of the control elements contained in each page node in the first path to form a first...

Embodiment 2

[0083] On the basis of Embodiment 1, this embodiment also includes:

[0084] Obtain the user's operation record of the software;

[0085] Analyze the operation record to obtain the hierarchical relationship of the page nodes involved in the operation record;

[0086] The tree diagram is updated according to the hierarchical relationship of the page nodes involved in the operation record.

Embodiment 3

[0088] Figure 4 Create a test case diagram of the grouping function for Weibo, Figure 5 In order to generate a new grouping function tree diagram based on the test case diagram, the new grouping function tree diagram is composed of page nodes involved in the realization of the new grouping function, and the page nodes are associated with the new grouping function. The control elements involved are specifically related to the dynamic button control element associated with the Weibo homepage page node, the friends follow the dynamic page and the follow button control element, select the group page to associate the new group button control element, and the new group page to associate the OK button control element. According to the new grouping function tree diagram, the preset test data set and test code template get the test script of the new grouping function tree diagram, specifically:

[0089] (1) Obtain the information of the control elements contained in the path correspondin...

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 relates to the field of a test and particularly relates to an automatic test method and system. A corresponding tree diagram is generated according to a hierarchical relationship among page nodes in software; the tree diagram is traversed and a path from a leaf node to a root node is obtained in sequence, thereby obtaining a first path; and a test script corresponding to the first path is generated. The test scripts corresponding to UI functions can be automatically generated without writing the test scripts by a tester, the test efficiency is improved, and the time and manpower input into the test process can be effectively reduced.

Description

Technical field [0001] The invention relates to the field of testing, in particular to an automated testing method and system. Background technique [0002] Currently, most of the UI function tests of Android software require manual operation by testers. Existing automated test methods need to write corresponding functional test scripts and require testers to have a certain programming foundation. In addition, when updating the Android software version, the tester needs to manually test the UI function again or modify the test script written before, so that the tester needs to repeat the functional regression test repeatedly, wasting a lot of time and manpower. Summary of the invention [0003] The technical problem to be solved by the present invention is to provide an automated testing method and system to realize the UI function of the automated testing software. [0004] In order to solve the above technical problems, the technical solutions adopted by the present invention ar...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 刘德建杨郑旋吴巧敏林燕燕黄坚王柟陈钦肖秀敏曾捷
Owner FUJIAN TQ DIGITAL