Test method and test device of common gateway interface

A general gateway interface and test method technology, applied in the direction of data exchange network, digital transmission system, electrical components, etc., can solve the problems of difficult development, low accuracy, and huge test workload, so as to reduce workload and improve accuracy Accurate, improve the effectiveness of discovery and resolution

Active Publication Date: 2013-09-18
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF4 Cites 37 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] (1) The UI update of the client system is generally very quick, and the interface often changes, resulting in a large amount of maintenance for automated scripts. Even if the CGI itself does not change, once the interface changes, a large number of test codes and tests need to be modified. Use cases, the workload of testing is very huge, it is difficult to carry out in practice, it takes a lot of manpower to maintain, and once there is a new interface, you need to write new use cases to support it, and it has no direct relationship with CGI itself
[0007] (2) In addition, the client interface usually has some protection mechanisms, and

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
  • Test method and test device of common gateway interface
  • Test method and test device of common gateway interface
  • Test method and test device of common gateway interface

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0031] The present invention will be further described in detail below in conjunction with the drawings and specific embodiments.

[0032] figure 1 It is the main flow chart of the CGI test method of the present invention. See figure 1 , The method mainly includes:

[0033] Step 101: Collect the request packet sent by the client and the response packet of the server in response to the request, and analyze the request packet and the response packet to obtain corresponding request data and response data.

[0034] Since the data packets between the client and the server (including request packets and response packets) are binary hypertext transfer protocol (HTTP) packets, it is necessary to parse the collected request packets and response packets so that the tester can identify and understand data. In this step, a specific way of parsing the request packet and the response packet is:

[0035] The binary request packet and the response packet are parsed to obtain the corresponding field...

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 test method and a test device of a common gateway interface (CGI). The method comprises the steps of collecting a request package sent by a client and a response package responded by a server for the request, and parsing the request package and the response package to generate a case file which comprises request data and response data; revising the case file according to a CGI processing logic, wherein the step comprises the steps of revising the request data to constructed request data and revising the corresponding response data to expected response data; encapsulating the revised request data to a test request package and sending the test request package to the server; receiving the response package returned by the server; parsing the response package to acquire real response data; and carrying out comparison with the expected response data, and outputting a comparison result. By using the invention, the test workload is reduced and the test precision is improved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a common gateway interface (CGI, Common Gateway Interface) testing method and testing device. Background technique [0002] CGI is a program running on the server to provide an interface for interacting with the client. The CGI includes specific logical processing modules, including different logical branches, for processing the request data correspondingly and returning the processing results. The specific process of CGI processing the request packet includes: the client sends the user’s request packet to the server through the network; the server receives the client’s request packet and hands it to CGI for processing; The processing result is sent to the server; the server sends the processing result back to the client through the response packet. [0003] At present, for CGI functional testing, most of the testing methods are manually verifying whether the function ...

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
IPC IPC(8): H04L12/26H04L29/08H04L29/06
Inventor 夏凡陈振坤
Owner TENCENT TECH (SHENZHEN) 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