Method, device and system for interface testing
A technology for interface testing and test configuration, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of debugging cost and time and energy spent on testing data or modification of interface specifications, so as to improve testing efficiency and improve Quality, cost reduction effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0064] In order to achieve the above purpose, specifically, taking the test terminal built by the Python+unitest open source framework as an example, the above solution can be realized through the following steps:
[0065] Step 1. Read the test configuration file corresponding to the interface to be tested, and obtain the target parameter, the parameter value of the target parameter, and the interface file;
[0066] Among them, there are two ways to obtain the parameter value of the target parameter in the present application, namely obtaining a fixed value and obtaining by reading a data file. The way to obtain the parameter value is specified in the test configuration file. When reading the test configuration file corresponding to the interface to be tested, you can get the target parameter and the way to get the parameter value, and then get the parameter value according to the way:
[0067] The method of fixed value means that for some parameters, the value remains basical...
Embodiment 2
[0100] Corresponding to the above examples, such as Figure 5 As shown, the present application provides a method for interface testing, the method comprising:
[0101] 510. Read the test configuration file corresponding to the interface to be tested, and obtain the target parameter and the parameter value of the target parameter;
[0102] Preferably, the target parameters include fixed value parameters and parameters obtained by reading parameter value files.
[0103] Wherein, obtaining the parameter value of the target parameter includes at least:
[0104] 520. Obtain a parameter value file corresponding to the target parameter according to the test configuration file and obtain a parameter value of the target parameter from the parameter value file, where the parameter value file is used to save the parameter value of the target parameter;
[0105] Preferably, the method further includes reading the interface file to obtain the parameter attribute of the target parameter....
Embodiment 3
[0115] Embodiment 3. Corresponding to the above embodiment 2, the present application provides a method for interface testing, and the method includes:
[0116] Step 1, the test terminal reads the test configuration file corresponding to the interface to be tested, and obtains the target parameter and the parameter value of the target parameter;
[0117] Wherein, obtaining the parameter value of the target parameter includes at least:
[0118] Step 2, the test terminal obtains the parameter value file corresponding to the target parameter according to the test configuration file and obtains the parameter value of the target parameter from the parameter value file, and the parameter value file is used to save the target the parameter value of the parameter;
[0119] Step 3, the test terminal generates an interface test case according to the target parameter and the parameter value of the target parameter;
[0120] Step 4, the test terminal generates an interface call request ...
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