Software testing method and system
A software testing method and software testing technology, applied in the software field, can solve problems such as complex expected results, low efficiency, and single assertion function
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0063] Further, refer to figure 2 , based on the first embodiment of the software testing method of the present invention, in the second embodiment of the software testing method of the present invention, the acquisition of the data from the specified data source to run the test case, and obtaining the running result includes:
[0064] Step S11, obtaining form data of a preset form;
[0065] Step S12, using the table data to run the test case, and obtain the running result.
[0066] In the prior art, the incoming data of the test case is hard-coded or an external data source that cannot be edited and has poor reading effect is used to drive the test. By using tables with good visualization effects to set parameters, the efficiency of creating and modifying test data is improved.
[0067] Specifically: in the test project, create an xls (Excel standard file) file through Excel, use certain rules to save after adding data in the xls file, write the address of the xls file har...
no. 2 example
[0068] refer to image 3 , based on the second embodiment of the software testing method of the present invention, in the third embodiment of the software testing method of the present invention, said obtaining the table data of the preset table includes:
[0069] Step S111 , using annotations in the code of the test method to specify the location of the preset table.
[0070] Step S112, loading the preset table according to the location, and parsing the preset table to obtain the table data.
[0071] In this embodiment, by using the annotation method, it is only necessary to insert data annotations that can be automatically injected into the preset table before the test method, so that when the tester is using it, a simple line of code is needed to complete the data loading and injection operations, improving the efficiency of testing.
[0072] Specifically: write a custom annotation, the execution location "Target" is "METHOD", that is, it is only executed in the method, t...
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