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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


