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

A test code processing method and device

A technology for testing codes and processing methods, which is applied in the field of testing code processing methods and devices, which can solve the problems of inconvenient experience and not good enough for developers, and achieve the effect of improving testing efficiency and reducing workload

Active Publication Date: 2021-11-05
无线生活(杭州)信息科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the above solutions still make developers not convenient and the experience is not good enough:
[0004] Because the fields (or verification points) that templates can test are fixed, there is still a lot of work when modifying code templates according to different interface characteristics

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
  • A test code processing method and device
  • A test code processing method and device
  • A test code processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0063] The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention.

[0064] In order to solve the above technical problems, an embodiment of the present disclosure provides a test code processing method, which is applicable to a test code processing program, system or device, and its execution subject may be a terminal such as a mobile phone or a computer, or a server, such as figure 1 As shown, the method includes step S101 to step S103, wherein:

[0065] In step S101, obtain the first correct result returned by the interface to be tested under the first test condition;

[0066] In step S102, the public test code for testing the interface is read;

[0067] In step S103, according to the first correct result, the read public test co...

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 code processing method and device. The method includes: obtaining the first correct result returned by the interface to be tested under the first test condition; reading the public test code used for testing the interface; processing the read public test code according to the first correct result, to Generate target test code corresponding to the interface to be tested. Through the technical scheme of the present invention, by obtaining the first correct result returned by the interface to be tested under the first test condition, and then automatically reading the public test code of the interface to be tested, the user can use the first correct result according to the first correct result The public test code of the test interface is processed by addition, deletion, modification, etc., so as to automatically generate personalized target test code suitable for effective testing of the test interface. In this way, the workload of manually modifying the test code can be reduced, and the test efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of testing, in particular to a method and device for processing test codes. Background technique [0002] At present, when a developer tests a software interface, he usually writes a test code corresponding to the interface to verify the input and output of the interface. However, there are a large number of similar verification logics between different interfaces, resulting in a lot of duplication of test codes for different interfaces. Currently, it is better to set up an interface code template, and manually modify the code corresponding to the template according to the characteristics of different interfaces until the interface requirements are met. [0003] However, the above solutions still make developers not convenient and the experience is not good enough: [0004] Because the fields (or verification points) that templates can test are fixed, there is still a lot of work when modifying code templa...

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
CPCG06F11/3672
Inventor 金斌
Owner 无线生活(杭州)信息科技有限公司