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

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

Inactive Publication Date: 2017-12-19
深圳市慧择时代科技有限公司
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Both of these methods rely on manual modification. If you forget to modify it, the program will be abnormal, and it will take a lot of time to troubleshoot the problem.

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 replacing testing environment configuration information
  • Method and device for replacing testing environment configuration information
  • Method and device for replacing testing environment configuration information

Examples

Experimental program
Comparison scheme
Effect test

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

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 replacing testing environment configuration information. The method comprises the steps of when a sound code is compiled, identifying a current testing environment; after the sound code is compiled successfully, generating a corresponding program directory and a corresponding script file; acquiring configuration file information of the current testing environment from a configuration file information set of the preconfigured testing environment; and replacing a corresponding content in the script file according to the configuration file information and the program directory. According to the method and the device for replacing the testing environment configuration information, the configuration information in the script file is automatically replaced and the complicated manual amendment of configuration is avoided.

Description

technical field [0001] Embodiments of the present invention relate to agile development technology, and in particular to a method and device for replacing test environment configuration information. Background technique [0002] With the rise and rapid development of agile development, in order to quickly respond to user needs, enterprises need to develop and test multiple versions of programs at the same time. In this way, multiple sets of independent test environments are required to meet the parallel operation of multiple versions. A set of test environments involves a lot of middleware such as: database, cache, MQ (Message Queue, message queue), etc., so that the program is released to the test environment. Modify the configuration information such as the corresponding IP address and user name. [0003] In the existing technology, when modifying the configuration information with differences in different test environments, the general practice is to modify the configura...

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/36
CPCG06F11/3664G06F11/3684G06F11/3688
Inventor 蒋小虎
Owner 深圳市慧择时代科技有限公司
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