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

Method and device for restoring test environment

A technology for restoring test and environment, which is applied in the field of communication, can solve problems such as failure to restore the test environment, inapplicability to the field of automated testing, and inability to automatically clear services, etc., to achieve the effect of intelligently restoring the test environment, easy to implement, and guaranteed reliability

Inactive Publication Date: 2017-10-10
ZTE CORP
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. It is impossible to automatically and safely clear all related businesses;
[0006] 2. There may be a relationship between business commands. To clear business data, you need to pay attention to the order of test execution. Otherwise, it will directly lead to failure to restore the test environment, which usually requires human intervention.
[0007] Due to the existence of these risks, these methods cannot be applied to the field of automated testing

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
  • Method and device for restoring test environment
  • Method and device for restoring test environment
  • Method and device for restoring test environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Such as figure 1 shown, including the following steps 110-120:

[0052] Step 110, during the automated testing process of the business modules, write the clear operation interface object identifiers of the aforementioned business modules to be tested into the script file according to the sequence of configuration operations of the business modules to be tested;

[0053] This paper uses business modules as the granularity of automated testing to describe. Each business module generally includes configuring operation interface objects, modifying operation interface objects, querying operation interface objects, clearing operation interface objects, etc. During the automated testing process, it is possible to execute configuration operations, or configuration operations and modification operations, or configuration operations and query operations, or both configuration operations, modification operations, and query operations. Therefore, the clear operation interface obje...

Embodiment 2

[0059] This embodiment provides a specific method for writing the clear operation interface object identifier into the script file. First, define unique identifiers for each tested business module, and then create a mapping table, write the identifiers of all tested business modules and their corresponding clear operation interface object identifiers (such as names) in the mapping table. In this way, during the execution of the automated test, when performing business configuration, the identifier of the tested business module can be used to traverse the mapping table to find its corresponding clear operation interface object identifier, and the interface object identifier found can be configured according to the configuration Write them into the specified script file in the order of the test case, and finally when the test case is executed, the script file is called immediately, and the clearing operation interface objects in the script file are executed in the order of first ...

Embodiment 3

[0075] This embodiment provides another specific example of an intelligent recovery test environment, such as Figure 4 shown, including the following steps:

[0076] Step 310, define an ID number for each business module, in order to uniquely identify this business module;

[0077] Step 320, writing the ID numbers of all business modules and their clearing operation interface object identifiers into the mapping table to form a one-to-one correspondence;

[0078] Step 330, during the automated testing process, each time the configuration operation interface object of a business module is executed, the ID number of the business module is stored in the test log;

[0079] Step 340, read all business module ID numbers of this test case according to the sequential order of configuration operation from the test log, according to these business module ID numbers, look up its corresponding clearing operation interface object identification in the mapping table;

[0080] Step 350, wr...

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 a method and a device for restoring a test environment, which does not require external human intervention, and can intelligently restore the test environment according to the correlation between business commands. The method includes: in the process of automating the testing of the business modules, writing the clearing operation interface object identifiers of the business modules under test into a script file according to the order of configuration operations of the business modules under test; Then, the script file is called, and the clearing operation interface objects in the script file are executed in the order of last-in, first-out. The apparatus includes a script file generation unit and a test environment restoration unit. The invention can automatically clear the test data of the current use case, and the algorithm is simple and easy to implement.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method and device for restoring a test environment. Background technique [0002] A test environment is a description of the software and hardware environment on which the tests run, as well as any other software that interacts with the software under test. Any test depends on the test environment, so a stable and controllable test environment can enable testers to spend less time completing the execution of test cases, and does not need to spend extra time on the maintenance of test cases and test processes, and can Ensure that every reported defect can be accurately reproduced at any time. A well-planned and managed test environment can minimize the adverse impact of environmental changes on the test work, and can play a positive role in improving the efficiency and quality of the test work. [0003] In the process of executing the test, it is necessary to maintain a...

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/14
Inventor 郑重
Owner ZTE CORP
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