Automatic test method and system based on protocol interface
A technology of automated testing and protocol interface, applied in transmission systems, digital transmission systems, electrical components, etc., can solve problems such as inability to meet temporary changes, limited test integrity, and inflexibility, to meet the needs of rapid iterative upgrades and save manpower The effect of testing cost and improving test efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0036] Example 1: image 3 It is the demand classification diagram of the interface test provided by the embodiment of the present invention. It can be seen from the figure that the flow of the interface test includes routine test, boundary test, abnormal test and fault test, etc., and each test unit includes many details. Classification: the routine test includes data source field verification, data source field value verification and test data preparation; the boundary test includes parameter boundary test and business boundary test; the abnormal test includes memory exhaustion test, insufficient disk space The test and the network connection are smooth but the service does not respond to the test; the failure test includes a Redis shutdown test and a mongoDB shutdown test.
[0037] The automated testing method based on the protocol interface provided by this embodiment can replace manual input of various types of test data for testing, figure 1 It is a schematic flow chart...
Embodiment 2
[0046] Embodiment 2: On the basis of S1 and S2 in Embodiment 1, this embodiment saves the test data design rules extracted from the interface design document, that is, the test data configuration rules, and waits until the next regression test, in the In the above regression test, the saved test data configuration rules are used to automatically generate test data for regression testing.
Embodiment 3
[0047] Embodiment 3: In this embodiment, it is possible to further classify the returned test results: if the execution of the test request fails, the test result is recorded in the log and analyzed; if the execution of the test request is successful, all The above test results are classified and counted, and the classified statistical results are generated into a report, specifically: when the execution of the test request fails, the http address of the service, the interface name, the http status code returned by the interface request, the content returned by the interface, and the error code Recorded as a log, wherein the error code can be defined in advance in the interface design document, for example, an error code of 1 means that the test data is blocked, an error code of 2 means that the test data is lost, and so on; when the execution of the test request is successful , classify statistics according to the returned error codes, and generate reports for system testers o...
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