API automated testing method and system based on data driving
An automated testing and data-driven technology, which is applied in electrical digital data processing, software testing/debugging, error detection/correction, etc., can solve the problem that test cases cannot cover function points, developers have a large development workload, and cannot meet system security requirements and other issues to achieve the effect of shortening the test cycle, calling stable and robust, and configuring flexibly and conveniently
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Such as Figure 1-2 as shown, figure 1 is a flow chart of a data-driven API automated testing method provided by an embodiment of the present invention, figure 2 It is a flow chart for generating test case data provided by the embodiment of the present invention. Such as Figure 1-2 As shown, the embodiment of the present invention provides a data-driven API automated testing method, including:
[0031] S1: Execute the main entrance of the API test;
[0032] S2: Configure parameters for the API and fill in basic information;
[0033] S3: Generate test case data according to the test case constraint rules of the API;
[0034] S4: execute test case data;
[0035] S5: Generate a test report according to the template file;
[0036] S6: the process ends;
[0037] Among them, generating test case data according to the test case constraint rules of the API includes:
[0038] S3.1: Read the basic information in the configuration file;
[0039] S3.2: Initialization; ...
Embodiment 2
[0097] See figure 1 , figure 2 , image 3 , image 3 It is a flow chart of executing test case data provided by the embodiment of the present invention. The embodiment of the present invention provides a data-driven API automated testing method, including:
[0098] S1: Execute the main entrance of the API test;
[0099] S2: Configure parameters for the API and fill in the basic information; specifically, configure the parameters for the API and fill in the basic information, including: parameter configuration according to the human-computer interaction interface, or parameter configuration based on the configuration file; or according to the API's demand interface File parsing is performed after the document template is filled.
[0100] S3: Generate test case data according to the test case constraint rules of the API;
[0101] S4: execute test case data;
[0102] S5: Generate a test report according to the template file; where, before generating the test report accord...
Embodiment 3
[0142] See Figure 4 , Figure 4 It is a frame diagram of a data-driven API automated testing system provided by an embodiment of the present invention. Such as Figure 4 As shown, the present invention also provides a data-driven API automated testing system, including: entry module 1, configuration module 2, test case generation module 3, API test engine module 4, report generation module 5,
[0143] The entry module 1 is used to execute the API test main entry;
[0144] The configuration module 2 is used to configure parameters for the API and fill in basic information;
[0145] The test case generation module 3 is used to generate test case data according to the test case constraint rules of the API;
[0146] The API test engine module 4 is used to execute the test case data;
[0147] Described report generation module 5 is used for generating test report according to template file;
[0148] end of process;
[0149] Wherein, the test case generation module 3 generat...
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