Automatic test system based on scene description and implementation method thereof
An automatic test system and scene description technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve the problems of not reflecting the priority of the test path, not guaranteeing the validity of the model, and limiting the generality of the use of the model , to achieve the effect of improving test efficiency, reducing the time for generating test data, and reducing test cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] Embodiment 1: Extracting the object attributes of the software to be tested
[0057] Object Property Extractor 2 uses automated testing tools to automatically extract object properties, including various types of objects such as components, users, and forms. After the information is extracted, the object extractor needs to clean the object attributes and store the cleaned data for the construction of the scene model. Software to be tested is a web site in the present embodiment, and current test object is registration interface, uses the test case of automation test tool selenium recording registration interface, can be preserved as the test script of C#, Java, Python or Ruby language. By parsing the test script, the attributes of the form in the login interface are extracted according to the rules in rule base 1, including user name, email address, mobile phone number and password. Object attribute extractor 2 also needs to clean the extracted data, delete duplicate d...
Embodiment 2
[0058] Example 2: Building a scene model
[0059] The scenario model builder 3 builds a scenario model based on the basic information of the software to be tested and the object attribute information extracted by the object attribute extractor 2. The basic information includes information such as the specification of the software to be tested, tester experience, customer needs, and historical test cases. The available scene models include: UML model, finite state machine, Petri net, flowchart, state diagram, etc. In this embodiment, the scene model is based on a finite state machine, and variable information is added. Based on the specifications of the software to be tested, tester experience, customer requirements, historical test cases and other information, a basic scenario model is generated, including state elements and transition elements, where transition elements include events and conditions. The scene model builder 3 uses the object attribute information extracted b...
Embodiment 3
[0060] Example 3: Analyzing the scene model
[0061] The analysis engine 4 analyzes the scene model constructed by the scene model builder 3. By reading the source file (such as an xml file) of the scene model, the element information in the model is obtained by using the analysis technology, including the specific attributes of each element. , arrays, stacks or other data structures for storage. After the parsing is completed, the parsing engine 4 can select a path search strategy or combine multiple path search strategies to traverse the scene model to obtain the test path. Combined with the heuristic information fed back by the optimization engine 11, the test path in the scene model is searched for. In this embodiment, the analysis object is based on the scene model of the finite state machine, and the specific steps are as follows image 3 Shown: 1) Use dom and sax to analyze the xml file of the scene model based on the finite state machine, and extract state elements a...
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