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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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