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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com