Method and device for creating interface case automatic test script

A technology of automated testing and interface testing, applied in software testing/debugging, error detection/correction, biological neural network models, etc., can solve the problems of high manual communication costs, large number of interfaces, incomplete testing functions, etc., to reduce repetition The effect of labor, liberating human resources, and reducing the cost of automated testing

Active Publication Date: 2019-09-10
XIAMEN MEET YOU INFORMATION TECH
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the following problems will arise during the testing process. For example, the number of interfaces is huge, and writing automated test cases for interfaces will consume a lot of human resources, and the writing of similar interface use cases is basically copy-pasted and then adaptively modified. The work is relatively boring. In addition, when When the writing of interface documents is relatively simple and the code logic description is incomplete, the manual communication cost of writing automated test cases will be very high. Finally, due to the deviation of the script style and test focus written by different testers, it will cause difficulty in maintaining use cases and test functions. Therefore, it is necessary to propose a method for automatically analyzing interface description documents and interface codes to create automated test scripts for interface use cases to solve these problems

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 creating interface case automatic test script
  • Method and device for creating interface case automatic test script
  • Method and device for creating interface case automatic test script

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] An embodiment of the present invention creates an interface use case automation test script by automatically analyzing the interface description document and interface code, and the interface test flow is consistent with the general function test flow, including: writing the test interface description document, writing the test case according to the interface description document, executing Test, and check whether different parameter requests and the data returned by the interface meet expectations. Embodiment 1 provides a method for creating an automated test script for interface testing.

[0038] During the project development process, the front-end and back-end engineers jointly define the interface and write the interface description document, and then develop according to the interface description document, and maintain it until the end of the project. It is convenient for front-end and back-end engineers to have a unified file to communicate development details dur...

Embodiment 2

[0062] Such as Image 6 As shown, a structural block diagram of a device for creating an interface use case automation test script provided by this embodiment, as shown in the figure, includes:

[0063] Obtain interface characteristic data and request parameter module 10, be used for analyzing interface description document and interface code, obtain interface characteristic data and request parameter;

[0064] Design interface test request parameter module 20, for designing interface test request parameter according to request parameter;

[0065] The neural network model training module 30 is used to use the interface feature data and the automated test script template as a training sample set to perform neural network training to obtain a trained neural network model;

[0066] The test template generation module 40 is used to input the interface feature data of the interface to be tested in the neural network model to generate a test template;

[0067] Create an automated ...

Embodiment 3

[0069] Embodiments of the present invention also provide a device for creating an automated test script for an interface use case, including:

[0070] at least one processor, and a memory communicatively coupled to the at least one processor;

[0071] Wherein, the processor is used to execute the method described in Embodiment 1 by invoking the computer program stored in the memory.

[0072] In addition, the present invention also provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, where the computer-executable instructions are used to make a computer execute the method as described in Embodiment 1.

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 method for creating an automatic test script for an interface test. Describing the document and the interface code by analyzing the interface; obtaining interface feature data, interface test request parameters are designed according to the interface characteristic data; taking the interface feature data and the automatic test script template as a training sample set; performing neural network training to obtain a trained neural network model; inputting interface characteristic data of the to-be-tested interface into the neural network model; generating test templates, filling the interface test request parameters and the corresponding assertion parameters into a generated test template; the automatic test script for the to-be-tested interface is created, manpowerresources are liberated, the automatic test cost is reduced, repeated labor is reduced, test cases generated through a unified method are unified in style, later use case maintenance is facilitated,and the automatic interface test efficiency is improved.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to a method, device, device and storage medium for creating an interface use case automated testing script. Background technique [0002] Software testing is an essential part of the APP software development cycle. Through software testing, the management of software correctness, integrity, security and quality is realized, and interface testing is a test for testing the interface between software system components. Interface testing It is mainly used to detect the interaction points between external systems and internal sub-modules. The focus of this test is to check the data exchange, transfer and control management process, as well as the mutual logical dependencies between systems, etc., which belongs to functional testing. One of them, interface testing is a crucial link in the process of ensuring product quality, and the benefits it brings are also very considerable. Interface...

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/36G06N3/04
CPCG06F11/3684G06F11/3688G06N3/04
Inventor 陈方毅谢婷婷周泽润
Owner XIAMEN MEET YOU INFORMATION TECH
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