Interface verification method and device for resource promotion system
A verification method and interface technology, applied in the direction of instrumentation, error detection/correction, calculation, etc., can solve the problems of low test guarantee effect and inability to reflect test integrity, so as to improve test integrity, high randomness, and ensure quantity Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0081] figure 2 A flow chart of an interface verification method for a resource promotion system according to Embodiment 1 of the present application is schematically shown. like figure 2 As shown, the interface verification method for the resource promotion system may include steps S200-S206, wherein:
[0082] In step S200, multiple sets of return values of the target resource interface are acquired, and each set of return values includes a resource type and a resource object.
[0083] The target resource interface is an external interface of the resource promotion system.
[0084] The target resource interface is a software interface. The target resource interface returns resource parameters in response to external requests.
[0085] For example, the user may send a request to the target resource interface by running a preset executor. Subsequently, the target resource interface forwards the request to the resource promotion system and returns a return value from ...
test Embodiment A
[0091] like image 3 As shown, in step S202, "determine the test case to be executed and the test case not to be executed among the multiple test cases based on the resource type" may include steps S300-S304, wherein: step S300, the resource type and each Match the use case execution conditions in the test cases; step S302, determine each test case that matches the resource type as the test case to be executed; step S304, determine each test case that does not match the resource type , were identified as the non-executing test cases. In this embodiment, it is possible to effectively pre-determine whether to execute a test case through the use case execution condition. Take test case A as an example:
[0092] (1) The return value does not meet the test case execution conditions of test case A, and test case A is not executed.
[0093] (2) The return value satisfies the test case execution condition of test case A, executes test case A, and obtains the test result.
[0094] A...
Embodiment 4
[0128] Test case 4 did not trigger execution, that is, "not executed", and test case 4 was not covered;
[0129] Part of test case 5 is triggered to execute, and the test results of the executed tests after the trigger execution are all "successful".
[0130] Based on Table 2-4, after these 100 verifications, the overall verification result is:
[0131] 1 test case failed verification (5 test cases in total), and the test case success rate was 80%.
[0132] 1 test case is not covered (a total of 5 test cases), and the test case coverage rate is 80%.
[0133] If the success rate threshold is 90% and the coverage threshold is 90%, the verification result of this interface is: verification failed.
[0134] Based on the above application example, for this single advertising interface with high random return value, it can be called multiple times to obtain multiple sets of return values, and based on the verification results of each set of return values by each test case, it ca...
PUM

Abstract
Description
Claims
Application Information

- Generate Ideas
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com