Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Code-free unit or interface testing method and device and computer equipment

A technology of interface testing and testing methods, which is applied in the field of Internet software testing, can solve problems such as high threshold and low efficiency of writing test codes, and achieve the effects of lowering threshold, easy operation, and improving efficiency

Inactive Publication Date: 2019-08-16
极智(上海)企业管理咨询有限公司
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] For above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a kind of unit or interface testing method, device and computer equipment without code, solve the threshold that the test personnel that exists in the existing way does interface test and unit test is high, write test The problem of low code efficiency

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
  • Code-free unit or interface testing method and device and computer equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] Example 1, such as figure 1 Shown, a kind of unit or interface test method without code, this test method is applied in the test device, and this test device includes automatic generation test code unit, configuration unit and analysis unit, and this test method comprises the following steps:

[0038] Step 1, automatically generate the test code unit to use the generation tool to automatically generate the test code;

[0039] Specifically, it includes using tools to automatically generate test code; reading and parsing the source code files that need to be tested, and automatically generating the test code of the required standard template; using string analysis to obtain the keywords of the class, and then generating the test code in Specify the location and generate the corresponding excel file; make sure that the test data configuration excel path is consistent with the test code path; the test code is used to test the test case;

[0040] Step 2. The configuration u...

Embodiment 2

[0048] Embodiment 2, the present invention also provides a kind of unit or interface test device without code, and this device is used for realizing described test method, and this test device comprises:

[0049] Automatically generate test code units, which are used to automatically generate test codes using generation tools;

[0050] The configuration unit is used to fill in the test cases in the excel sheet and generate the excel template;

[0051] The analysis unit is used to use the framework to analyze the configuration of the test case, and use the generated test code to perform automatic testing and assertion.

[0052] In this way, the automatically generated test code unit generates test code to automatically test and assert the test case, and the framework parses the test case. It can be done automatically without code to improve efficiency.

[0053] Further, the generating tool for automatically generating the test code is used to read and parse the source code fi...

Embodiment 3

[0056] Embodiment 3, the embodiment of the present disclosure provides a non-volatile computer storage medium, the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the method in any of the above method embodiments.

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 code-free unit or interface test method. The code-free unit or interface test method comprises the following steps: S1, automatically generating a test code by using a tool;S2, filling in a test case configuration in an excel table; and S3, analyzing the test case configuration in the step S2 by using a framework component, and performing automatic test and assertion onthe test case in the step S2 by using the test code generated in the step S1. The invention also discloses a code-free unit or interface test device, which comprises an automatic test code generationunit, a configuration unit and an analysis unit. According to the technology disclosed by the invention, the test code writing efficiency can be better improved, and the threshold of interface testingand unit testing by testers is lowered.

Description

technical field [0001] The invention relates to the technical field of Internet software testing, in particular to a code-free unit or interface testing method, device and computer equipment. Background technique [0002] With the rapid development of the software industry, Web applications have been widely used. In the development process of developers, interface testing is an essential step. [0003] Existing interface tests are generally implemented through the following steps: input the interface test address, select the request method according to the functional characteristics of the test, assemble the parameters by inputting specific parameters, and then start the test to finally obtain the test result. Therefore, each time an interface is tested , first of all, you need to input its detailed test address, select the request method of the interface test from a large number of request methods, then input all the request parameters involved in the interface, and finally...

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/3664G06F11/3688
Inventor 叶新
Owner 极智(上海)企业管理咨询有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products