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

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 the requested data cannot be arbitrarily modified by using UI controls. Therefore, the existing method can only verify part of the normal functions, and cannot simulate various request situations. Logical processing and fault tolerance of abnormal requests, and it is difficult to accurately locate the location of CGI errors when problems are found
For example, a hacker can bypass the client to tamper with the request data. In this case, it is necessary to detect the fault tolerance of the CGI. the ability of this situation
Therefore, the existing test method has low ability to find and solve CGI logic errors, and the test accuracy is not high

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

Embodiment Construction

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

[0032] figure 1 It is the main flow chart of the CGI testing 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, analyze the request packet and the response packet, and obtain corresponding request data and response data.

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

[0035] The binary request packet and response packet are pa...

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More