HTTP interface test method and apparatus

An interface, to-be-tested technology, applied in the computer field, can solve problems such as poor modularity, increased test costs, and loading efficiency, and achieve the effects of speeding up, improving test efficiency, and reducing maintenance costs

Pending Publication Date: 2018-03-13
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, there are the following problems in simulating browser operations through testing tools: (1) No matter whether it is opened silently in memory or opened by calling the user interface, there will be loading efficiency problems due to waiting for a certain script code on the page to execute; (2) for some Page element changes require frequent maintenance of test scripts, which increases test costs; (3) the cost of developing scripts is high, and page elements need to be analyzed; (4) the modularization effect is poor, because the test tool is automated based on page elements, so calling modules must also Page elements must be loaded before they can be used, which is inefficient in use or maintenance
For HTTP interface verification, the previous page operations are meaningless

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
  • HTTP interface test method and apparatus
  • HTTP interface test method and apparatus
  • HTTP interface test method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0015] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0016] figure 1 An exemplary system architecture 100 is shown to which embodiments of the method for testing an HTTP interface or the apparatus for testing an HTTP interface of the present application can be applied.

[0017] Such as figure 1 As shown, the system architect...

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 an HTTP interface test method and apparatus. A specific embodiment of the method comprises the steps of obtaining a test case input by a user and aiming at a to-be-tested HTTPinterface; taking a first test step in the test case as a current test step, and executing the following HTTP interface test steps of packaging test operation and test data of the current test step into an HTTP test request package and sending the HTTP test request package to the to-be-tested HTTP interface; judging whether response data returned by the to-be-tested HTTP interface is the same as expected result data of the current test step or not, and if the response data is different from the expected result data, generating a test failure result; if the response data is the same as the expected result data, further judging whether the current test step is a final step of the test case or not, and if yes, generating a test success result; and if not, taking the next test step as the current test step, and continuing to execute the HTTP interface test steps. According to the method and the apparatus, the HTTP interface test efficiency is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to the field of Internet technology, and in particular to a method and device for testing an HTTP interface. Background technique [0002] At present, the commonly used solution for web page automation testing is to open the web page through a test tool (for example, Selenuim), wait for the page elements of the specified operation to be loaded, and then perform simulated user behavior operations (for example, access, input, click, file selection, etc.), Obtain page elements through the operation results and judge the operation results to finally determine whether the test case is successful. [0003] However, there are the following problems in simulating browser operations through testing tools: (1) No matter whether it is opened silently in memory or opened by calling the user interface, there will be loading efficiency problems due to waiting for a certain script code...

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/3688G06F11/3696
Inventor 陈显金
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH 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