Automatic testing method and device

An automated test and test request technology, applied in the computer field, can solve problems such as inability to focus on test case creation, heavy test tool maintenance workload, poor scalability, etc., to achieve hot plug-in features, reduce maintenance workload, and improve scalability sexual effect

Active Publication Date: 2019-05-28
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF8 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 1. When a tester needs to test a newly added interface or an upgraded interface (that is, an upgraded untested interface), the definition source data of the interface needs to be converted first, and then the interface calling logic needs to be hardened in the test tool. At the same time, the test tool needs to be recompiled before the tes

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0041] The technical solution of the embodiment of the present invention obtains the interface analysis logic applicable to all interfaces under the protocol through the protocol to which the tested interface belongs, and uses the interface analysis logic to realize the automatic analysis of the interface definition source data to the data template, and then realizes it bas...

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 automatic testing method and device, and relates to the field of computers. One specific embodiment of the method comprises the following steps: 1, determining a data template of a to-be-tested interface belonging to the target protocol by utilizing the interface analysis logic; wherein the interface analysis logic is independently determined according to the target protocol; adding test input data into the data template, generating a test request conforming to the target protocol based on the data template including the test input data, sending the test request to aserver where the to-be-tested interface is located, and receiving a response to the test request to test the to-be-tested interface. According to the embodiment, the maintenance workload of the testtool can be reduced and the test efficiency is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for automatic testing. Background technique [0002] In the field of software testing, because back-end services often use non-standard communication protocols, it is difficult to automate testing for back-end services. In the prior art, automated testing based on non-standard communication protocols is generally implemented through the following steps: [0003] 1. The tester converts the definition source data of the tested interface into description data and adds it to the test tool. [0004] 2. The tester adds the protocol call logic to the test tool, and hard-codes the call logic of the interface under test in the test tool. [0005] 3. Testers make test cases for testing. [0006] In the process of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0007] 1. When a tester needs to t...

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): G06F11/36
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