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

Application program test method and system

An application and testing method technology, applied in transmission systems, digital transmission systems, electrical components, etc., to solve problems affecting application test coverage and test efficiency

Inactive Publication Date: 2018-01-05
GUANGZHOU AIYOU INFORMATION TECH
View PDF4 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the purpose of the present invention is to provide an application program testing method and system, to alleviate the traditional MOCK test method is mostly for a specific single interface, and used for interface debugging in the developer development stage, thus affecting the application program The problem of test coverage and test efficiency

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
  • Application program test method and system
  • Application program test method and system
  • Application program test method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0048] The application program testing method provided by the embodiment of the present invention is an improvement to the MOCK message testing based on http (Hyper Text Transfer Protocol, hypertext transfer protocol) or https (Hyper Text Transfer Protocol over SecureSocket Layer) protocol. figure 1 It is a schematic flowchart of the first application program testing method provided by the embodiment of the present invention. like figure 1 As shown, the application test methods include:

[0049] In step S101, the proxy server uses Fiddler tool to receive the test request message, parses and judges the source of the test request message.

[0050] Specifically, the Fiddler tool is installed on the proxy server, and there are two sources of the test request message, one is from the client to be tested, and the other is from the intermediate server.

[0051] Step S102, if the above-mentioned source is the client to be tested, redirect and forward the test request message to the ...

Embodiment 2

[0096] image 3 A schematic diagram of the first data flow of the application program testing system provided by the embodiment of the present invention is shown. see image 3 , the application program testing system includes a proxy server 200, an intermediate server 300 and a test client 100 respectively connected to the proxy server.

[0097] The proxy server is used to receive the test request message by using the Fiddler tool, parse and determine the source of the test request message; if the source is the client to be tested, redirect the test request message to the intermediate server.

[0098] The intermediate server is used for parsing the test request message to obtain the interface path; traversing the configuration database, and when a simulated message matching the interface path is found, the simulated message is sent to the proxy server as a response message.

[0099] The proxy server is also used to return the response message to the client under test through...

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 application program test method and system. The method comprises steps that a Fiddler tool is utilized by a proxy server to receive a test request message, and the source ofthe test request message is analyzed and determined; if the source is a to-be-tested client, the test request message is forwarded to an intermediate server in a redirection mode; the test request message is analyzed by the intermediate server to acquire an interface path; traversal of a configuration database is carried out, when a simulation message matched with the interface path is searched, the simulation message is taken as a response message and is sent to the proxy server; the response message is returned by the proxy server through the Fiddler tool to the to-be-tested client. The method is advantaged in that the intermediate server is taken as the intermediate interface for transmitting the test request message, the return information can be flexibly configured for multiple typesof interfaces, simulation response is inserted in a seamless mode on the condition that normal operation of the system is not influenced, and the test coverage rate and test efficiency of an application program are improved.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to an application program testing method and system. Background technique [0002] In a large-scale software system, a large number of subsystems rely on http (Hyper Text Transfer Protocol, hypertext transfer protocol) or https (Hyper Text Transfer Protocol over SecureSocket Layer) protocol for information exchange, and API (Application Programming Interface) in software development , application programming interface) writing and testing is an essential link. [0003] At present, during the test process, for some objects that are not easy to construct or obtain, a virtual object can be constructed through the MOCK test method so that the test can be completed smoothly. However, most of the traditional MOCK testing methods are for a specific single interface, and are used for interface debugging during the developer development stage, which affects the test coverage and te...

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): H04L12/26H04L29/08
Inventor 观富昌
Owner GUANGZHOU AIYOU INFORMATION TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products