Method and device for replacing testing environment configuration information
A technology for testing environment and configuration information, applied in software testing/debugging, error detection/correction, instruments, etc., can solve problems such as time-consuming and abnormal programs, and achieve the effect of avoiding configuration modification
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] figure 1 It is a flow chart of a method for replacing the configuration information of the test environment provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the configuration information of the test environment is corrected when the program is released. This method can be configured by replacing the test environment information, the device can be implemented by software and / or hardware, and generally can be integrated in a server, which can be a server configured in an automatic construction center. Such as figure 2 As shown, in agile development, multiple sets of test environments are generally configured, and the automatic construction center controls the compilation of source code on each set of test environments and automatically replaces configuration information. figure 2 Take three sets of test environments as examples. figure 2 It is an overall framework diagram of multiple test environments configured ...
Embodiment 2
[0040] Figure 4 It is a flowchart of a method for replacing test environment configuration information provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the above embodiments. The method specifically includes the following steps:
[0041] Step 210, when compiling the source code, identify the current test environment.
[0042] Step 220, after the source code is successfully compiled, a corresponding program directory and a corresponding script file are generated.
[0043] Step 230, acquire the configuration file information of the current test environment from the pre-configured configuration file information set of the test environment.
[0044] Step 240, replace the corresponding content in the script file according to the configuration file information and the program directory.
[0045] Step 250, copy the script file after replacing the corresponding content to the designated directory, obtain the target program and start it. ...
Embodiment 3
[0049] Figure 5 It is a flow chart of a method for replacing test environment configuration information provided by Embodiment 3 of the present invention. This embodiment is optimized on the basis of the above embodiments, and the "according to the configuration file information and the The above program directory, and replace the corresponding content in the script file" has been optimized. The method specifically includes the following steps:
[0050] Step 310, when compiling the source code, identify the current test environment.
[0051] Step 320, after the source code is successfully compiled, a corresponding program directory and a corresponding script file are generated.
[0052] Step 330: Acquire the configuration file information of the current test environment from the preconfigured configuration file information set of the test environment.
[0053] Step 340, traverse the program directory recursively, and judge whether the file name in the program directory matc...
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