Automatic generation method for software graphic user man-machine interface test case
A test case, graphical user technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as increased training costs, knowledge loss, difficult maintenance, etc., to achieve strong ability to avoid risks and reduce personnel costs , the effect of saving maintenance costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] Such as figure 1 Shown, the automatic generation method of software graphical user interface test case of the present invention, comprises the steps:
[0032] Step 1: Specify the starting point of the calculated path as the system startup;
[0033] Step 2: The end point is the system exit;
[0034] Step 3: Collect the behavior specifications of the software to be tested and stipulate that all "conditions-actions-expected results" form a set;
[0035] Step 4: Select a "condition-action-expected result" in the set;
[0036] Step 5: Find out the path from the starting point to this "condition-action-expected result";
[0037] Step 6: Find out the path from this "condition-action-expected result" to the end;
[0038] Step 7: Connect the calculation results of Step 4 and Step 5 to get a test case covering this "condition-action-expected result";
[0039] Step 8: In the collection, remove the generated test cases and the used "condition-action-expected result";
[0040]...
Embodiment 2
[0043] The principle of the present invention will be explained below by taking the automatic generation of graphical user interface (GUI) test cases as an example.
[0044] The essence of the problem that the existing technicians are troubled by is: either focus on pure theoretical discussion, which is extremely complicated; or write the test case steps one by one in Microsoft Word or similar tools, and forget to examine the middle ground between the two.
[0045] In fact, it is possible to add an object-oriented structure to the software behavior specification while using ordinary language to describe the test steps. This structure is universal, and this structure can be used to realize the automatic generation of test cases with the help of the computing power of the software.
[0046] Graphical user interface (GUI) is composed of a series of controls, including edit boxes, windows, buttons and so on. In programming, many concepts need to be used according to object orient...
Embodiment 3
[0059] Such as figure 2 As shown, the "condition-action-expected result" state change diagram of the present invention, actual and Baidu Figure 1 In this way, each "condition-action-expected result" can be regarded as a city name, and the connection of the next action is like the road connecting the cities in the map, with one-way lines, two-way lines, and loops. You can use various path algorithms in graph theory (such as Dijkstra path algorithm), such as Baidu Figure 1 Calculate the path. And each path is a test case built on the basis of input value equivalence classes.
[0060] for example,
[0061] The first step is to specify that the starting point of the calculated path is the system startup;
[0062] The second step, the end point is the system exit;
[0063] The third step is to specify a "condition-action-expected result";
[0064] The fourth step is to find out the path from the starting point to this "condition-action-expected result";
[0065] The fifth...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com