Testing environment automatic processing method, and method and device for realizing testing automation

A test environment and automatic processing technology, applied in software testing/debugging, multi-programming devices, etc., can solve the problems of long operation cycle and increase labor cost, and achieve the effect of shortening operation cycle and saving labor cost.

Inactive Publication Date: 2014-01-29
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF6 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

On the one hand, this increases the labor cost, on the other hand, it leads to a long case running cycle

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
  • Testing environment automatic processing method, and method and device for realizing testing automation
  • Testing environment automatic processing method, and method and device for realizing testing automation
  • Testing environment automatic processing method, and method and device for realizing testing automation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] figure 1 The flow chart of the automatic implementation method for system testing provided by Embodiment 1 of the present invention, such as figure 1 As shown, the method includes the following steps:

[0065] Step 101: Determine the functional test case to be executed.

[0066] Step 102: call the remote call service to initialize the test environment.

[0067] Step 103: Execute the functional test cases to be executed sequentially or concurrently.

[0068] If the to-be-executed functional test cases are executed sequentially, before each execution of the to-be-executed functional test case, if the required test environment is the same as the current test environment, no initialization is required; if the required test environment is the same as the current test If the environment is partly the same, the test environment can be partially modified by calling the remote call service; if the required test environment is completely different from the current test environ...

Embodiment 2

[0082] The difference between this embodiment and Embodiment 1 is that when invoking the remote service to initialize the test environment, the environment inspection method can be used. In some cases, the test environment has reached the initialization state, so there is no need to initialize the test environment. Alternatively, some environments have already reached the initialization state, and only the test environment needs to be repaired. Such as image 3 As shown, the functional test case is also executed first, and then the stress test case is executed. After the functional test case to be executed is determined, the execution process of this embodiment includes:

[0083] Step 301: Run the environment check script of the functional test case to be executed, if the environment check passes, go to step 303; otherwise, go to step 302.

[0084]Step 302: Repair the test environment by invoking the remote invocation service, go to step 301.

[0085] An initialization confi...

Embodiment 3

[0097] Figure 4 The structure diagram of the automatic processing device for the test environment provided by the third embodiment of the present invention, in this embodiment, the remote call service is pre-deployed on the machines of the upstream module and the downstream module involved in the test environment, such as Figure 4 As shown, the device may include: a script generating unit 401 and a remote calling unit 402 .

[0098] The script generating unit 401 is configured to generate a corresponding operating environment script when the test case needs to operate the test environment during the system testing process.

[0099] The remote calling unit 402 is configured to control the machines in the test environment to run the scripts of the operating environment by calling the remote calling service, and capture the running results.

[0100] Wherein, the operation is to initialize the environment, and the corresponding operating environment script is the initializing e...

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 provides a testing environment automatic processing method, and a method and device for realizing system testing automation. Remote procedure call services are deployed on machines of upstream modules and downstream modules related in a testing environment in advance, in the system testing process, when a test case needs to operate the testing environment, a corresponding operation environment script is generated, the remote procedure call services are called to control the machine operation environment script in the testing environment, and operation results are captured. According to the condition that the system testing environment relies on a plurality of machines, automation of manual environment initialization and repairing and other environment operations is realized through the remote procedure call services, labor cost is effectively saved, and the case operation cycle is shortened.

Description

【Technical field】 [0001] The invention relates to the field of testing in computer application technology, in particular to an automatic processing method of a test environment, an automatic realization method of a system test and a corresponding device. 【Background technique】 [0002] For a system where upstream and downstream modules work together, during system integration testing, the upper module sometimes needs to rely on many machines of the downstream module to provide services at the same time in order to test the performance of the upstream module, and the downstream module needs to call the upstream module when using the service of the upstream module The corresponding interface of the module. At present, these interfaces are generally open application programming interfaces (APIs) provided by the front-end web system in the form of web services based on a certain language, and automated test cases (cases) are generally written in the corresponding language for ea...

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): G06F9/46G06F11/36
Inventor 燕振斌劳勇
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products