Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for automated testing

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: 2022-06-07
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF8 Cites 0 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 test, which makes the maintenance workload of the test tool larger, the scalability is poor, and the test efficiency is extremely low
[0008] 2. Testers need to understand the protocol call logic in order to perform hard coding in the test tool, which puts higher requirements on testers and prevents testers from focusing on the production of test cases

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
  • Method and device for automated testing
  • Method and device for automated testing
  • Method and device for automated testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040]The following illustrative embodiments of the present invention in conjunction with the accompanying drawings, including various details of embodiments of the present invention to facilitate understanding, should be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications may be made to the embodiments described herein, without departing from the scope and spirit of the present invention. Similarly, for the sake of clarity and brevity, the description of the well-known functions and structures is omitted from the following description.

[0041] The technical solution of the embodiment of the present invention obtains the interface parsing logic applicable to all interfaces under the protocol by the protocol under test, using the interface parsing logic to implement the automatic analysis of the interface definition source data to the data template, and then based on the data template to achieve automat...

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 test method and device, which relate to the field of computers. A specific implementation of the method includes: using interface parsing logic to determine the data template of the interface to be tested belonging to the target protocol; wherein, the interface parsing logic is determined independently according to the target protocol; adding test input to the data template data, generating a test request conforming to the target protocol based on a data template including test input data, sending the test request to the server where the interface to be tested is located; receiving a response to the test request to implement the test request Test the test interface. This embodiment can reduce the maintenance workload of the test tool and improve the test efficiency.

Description

Technical field [0001] The present invention relates to the field of computer technology, in particular to an automated testing method and apparatus. Background [0002] In the field of software testing, because back-end services often use non-standard communication protocols, this makes automated testing of back-end services more difficult. In the prior art, automated testing based on non-standard communication protocols is generally achieved by following steps: [0003] 1. The tester converts the defined source data of the test interface into the 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 interface call logic under test in the test tool. [0005] 3. The tester makes test cases for testing. [0006] In the process of implementing the present invention, the inventor finds that the prior art has at least the following problems: [0007] 1. When the tester needs to test the new interface or ...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 陈中兵林伟腾
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD