Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2018-03-09
SHANGHAI DEV CENT OF COMP SOFTWARE TECH
View PDF3 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Neither of these two patents involves the construction of the model, which cannot guarantee the effectiveness of the model, and limits the versatility of the model; only the information of the existing model is used in the path search, and the path may have certain redundancy, and Does not reflect the priority level of the test path; for test data generation, both patents use a search-based test data generation method, which takes a lot of time and affects the efficiency of the test

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
  • Automatic test system based on scene description and implementation method thereof
  • Automatic test system based on scene description and implementation method thereof
  • Automatic test system based on scene description and implementation method thereof

Examples

Experimental program
Comparison scheme
Effect test

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...

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 discloses an automatic test system based on scene description. The automatic test system includes a rule base, an object attribute extractor, a scene model builder, a parsing engine, a path constraint extractor, a core controller, a constraint solver, a solver adapter, a test case generator, a test case library and an optimization engine. According to the automatic test system, attributes of a test object are extracted according to the specific rule base and added to a scene model, the information of the model itself and a heuristic information analysis model extracted from the test case library are combined to automatically generate a test path, a corresponding test input is generated by using the constraint solver, the test path and the test input are integrated to generatea test case and the test case is optimized. While ensuring test adequacy, the test cost of a manual test is reduced, and the test efficiency is improved. The invention also discloses an implementation method of the automatic test system based on scene description.

Description

technical field [0001] The invention belongs to an automatic test system and its realization method, in particular to a scene description-based automatic test system and its realization method. Background technique [0002] Software testing is an important part of computer software life cycle. Statistics show that in the software development process, the cost of software testing accounts for 30% to 50% of the total cost. This shows that software testing has a great influence on the cost of software development. With the development of the modern software industry, the software has become more complex and larger in scale, resulting in an increase in the number of defects in the software and aggravating the pressure of software testing. With this series of changes, the overhead of manual testing has become an important issue in software development, and automated testing technology has begun to receive attention. Automated testing is applied in many fields, such as test aut...

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
CPCG06F11/3688
Inventor 蔡立志陆佳文张扬刘振宇胡芸龚家瑜陈文捷
Owner SHANGHAI DEV CENT OF COMP SOFTWARE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products