Automatic testing method and device and server

A technology of automated testing and regression testing, applied in software testing/debugging, instrumentation, error detection/correction, etc., to achieve the effects of avoiding code intrusion, ensuring diversity, and reducing testing costs

Active Publication Date: 2018-06-15
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF10 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide an automated testing method, device, and server to solve or alleviate one or more of the above technical problems in the background technology, and at least provide a beneficial option

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
  • Automatic testing method and device and server
  • Automatic testing method and device and server
  • Automatic testing method and device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] An embodiment of the present invention provides an automated testing method. Such as figure 1 Shown is a flow chart of the automated testing method of the embodiment of the present invention. The automated testing method of the embodiment of the present invention comprises the following steps:

[0056] S101. Collect operating data of the online environment.

[0057] In the embodiments of the present invention, in order to obtain more accurate regression test results, real operating data in an online environment is used for testing during testing.

[0058] "Online and offline" is a very popular vocabulary at present. The real meaning of online refers to the promotion of your brand through various forms of media such as: TV, radio, newspapers, the Internet, light boxes, billboards, etc. Information and promotional information are transmitted in the form of soft and hard advertisements; the real meaning of offline refers to publicity and promotion through other non-medi...

Embodiment 2

[0069] On the basis of Embodiment 1, this embodiment of the present invention provides an automated testing method. Such as figure 2 Shown is a flow chart of the automated testing method of the embodiment of the present invention. The automated testing method of the embodiment of the present invention comprises the following steps:

[0070] S201, on the premise that the topology of the online module does not need any change, call the hook function provided by the netfilter framework of the linux system to collect the running data of the online environment from the tcp layer.

[0071] The running data collected in the embodiment of the present invention comes from the services in the cluster, and most of the services are deployed on the server based on the linux system, based on the netfilter framework provided by the linux kernel, the direct copy request and return from the IP layer can be achieved. Shielding the difference of the upper layer protocol not only realizes the ...

Embodiment 3

[0087] An embodiment of the present invention provides an automatic testing device. Such as Figure 4 Shown is a schematic diagram of the automated testing device of the embodiment of the present invention. The automatic testing device of the embodiment of the present invention comprises:

[0088] The collection module 41 is configured to collect the operating data of the online environment;

[0089] The mock simulation module 42 is configured to perform a mock simulation operation according to the first request information of the first preset type in the operating data, so as to obtain the first return information corresponding to the first request information in the online environment ;

[0090] The regression testing module 43 is configured to perform regression testing on the offline testing module corresponding to the online environment by using the first request information and the first return information.

[0091] Further, the collection module 41 includes:

[009...

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 an automatic testing method and device and a server. The method comprises the steps that operating data of an online environment is collected; Mock simulation operation is performed according to first request information of a first preset type in the operating data to obtain first return information, corresponding to the first request information, in the online environment;and the first request information and the first return information are utilized to perform regression testing on an offline testing module corresponding to the online environment. Through the technical scheme, first, the operating data of the online environment is collected and used for regression testing, Mock simulation operation is performed on the first request information of the first presettype of return data which cannot be normally collected, so that the first return information, corresponding to the first request information, in the online environment is obtained, and then the operating data is utilized to perform regression testing on the offline testing module corresponding to the online environment. In this way, testing cost can be reduced, and meanwhile code invasion to online data is avoided.

Description

technical field [0001] The invention relates to the technical field of system automation testing, in particular to an automation testing method, device and server. Background technique [0002] In the current functional regression testing method, on the one hand, the test is conducted by manually constructing use cases (cases). This method requires in-depth familiarity with the business code architecture and sufficient time to sort out the business interface. However, in many current system upgrade iterations, the traditional model is not allowed in terms of architecture complexity and time cost. [0003] Based on such problems, some methods are to synchronize online data traffic to offline for testing, but because the data traffic is too large, the offline storage cost is too high. Another method is to directly read online data, and then replay the data offline for functional regression, but this method still has problems. This method is not suitable for submitting reques...

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/3684G06F11/3688
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