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

Method and device for restoring testing environment

A technology for restoring test and environment, applied in the field of communication, can solve the problems of failure to restore the test environment, unable to automatically clear services, unable to apply to the field of automated test, etc., to achieve the effect of intelligently restoring the test environment, ensuring reliability, and being easy to implement

Inactive Publication Date: 2013-12-25
ZTE CORP
View PDF8 Cites 9 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 testing environment
  • Method and device for restoring testing environment
  • Method and device for restoring testing 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 testing environment. The testing environment can be intelligently restored according to an association relationship between service commands without external human intervention. The method comprises the following steps of writing a clearing operation interface object identifier of each tested service module into a script file according to the configuration operation sequence of the tested service modules in a process of automatically testing the service modules; after the service modules are automatically tested, calling the script file, and executing clearing operation interface objects in the script file according to a last-in first-out sequence. The device comprises a script file generation unit and a testing environment restoration unit. According to the method and the device, the test data of a current case can be automatically cleared, and an 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 Applications(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