Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for generating a cloned environment

A technology of clone environment and reference traffic environment, applied in the field of clone environment generation, can solve the problems of affecting efficiency, extra time, affecting the response time of reference traffic environment data, etc., to avoid dump and reduce queuing time.

Active Publication Date: 2018-08-10
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Such a solution has obvious disadvantages: dumping data requires additional time, which affects efficiency; the amount of data to be dumped is large, requiring a large amount of disk space, system performance, and I / O resources; dumping data will affect the data in the benchmark traffic environment Response time

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
  • A method and device for generating a cloned environment
  • A method and device for generating a cloned environment
  • A method and device for generating a cloned environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] figure 1 The flow chart of the method for generating the cloning environment provided by Embodiment 1 of the present invention, such as figure 1 As shown, the method includes:

[0033] S101. Intercept the source data sent from the upstream module in the reference traffic environment to the module under test, and after sending the source data to the module under test in the reference traffic environment, when the preset delay time is reached, forward the source data to the clone environment The module under test in .

[0034] While the data is being transmitted normally in the benchmark traffic environment, the source data sent from the upstream module in the benchmark traffic environment to the module under test is forwarded to the module under test in the clone environment. This process can be realized by, but not limited to, the following methods:

[0035] Intercept the source data sent from the upstream module in the baseline traffic environment to the module under...

Embodiment 2

[0058] image 3 The device diagram for generating a cloning environment provided by Embodiment 2 of the present invention, as shown in the figure, the device may include: an upstream Transfer unit 10 , a downstream Transfer unit 20 , and a Mockserver unit 30 .

[0059] The upstream Transfer unit 10 is used to intercept the source data sent from the upstream module in the reference traffic environment to the module under test, and after the source data is sent to the module under test in the reference traffic environment, when the preset delay time is reached, the source data will be transferred Data is forwarded to the module under test in the clone environment.

[0060] The upstream Transfer unit 10 is set between the module under test and its upstream module in the reference flow environment. The upstream Transfer unit 10 forwards the source data to the tested module in the clone environment while ensuring that the source data sent by the upstream module in the reference tr...

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 method and a device for generating a clone environment. The method comprises the following steps: intercepting middle and upstream source data in a reference flow environment, transmitting the source data to a tested module in the reference flow environment, and when preset delay time length is achieved, further forwarding the source data to a tested module in the clone environment; further intercepting middle and downstream response data in the reference flow environment, feeding back the response data to the tested module in the reference flow environment and also forwarding the response data to the clone environment, and establishing indexes for the response data in the clone environment according to the request transmitted to a downstream module from the tested module in the reference flow environment; feeding back corresponding response data to the tested module according to the request transmitted to the downstream from the tested module in the clone environment. Through the adoption of the method and the device, a plurality of flow environments can be rapidly cloned at real time when a background module of a business system is tested, dump of a great amount of data is avoided, and the queuing time of testers is shortened.

Description

【Technical field】 [0001] The invention relates to system testing technology, in particular to a method and device for generating a clone environment. 【Background technique】 [0002] Large-scale Internet companies often need to test their internal system changes or upgraded modules. Usually, they will build a benchmark traffic environment offline. The benchmark traffic environment is equipped with upstream and downstream modules of the tested module, and the test data is input into the benchmark traffic environment. After that, a real traffic environment identical to that of online operation can be formed to complete the test of the module under test. In actual work, such a benchmark traffic environment is often a scarce resource. When there are multiple modules under test that need to use the benchmark traffic environment, they need to queue up and wait for the environment to be released, or dump (dump) the benchmark traffic environment The upstream and downstream data of t...

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 Patents(China)
IPC IPC(8): H04L12/26H04L12/24
Inventor 金敬亭刘扬
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD