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

Pending Publication Date: 2022-05-13
SHANGHAI BILIBILI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, for some systems with fewer interfaces, the above tests cannot reflect the integrity of the test, and the test guarantee effect is low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface verification method and device for resource promotion system
  • Interface verification method and device for resource promotion system
  • Interface verification method and device for resource promotion system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention provides an interface verification method for a resource promotion system, and the method comprises the steps: obtaining a plurality of groups of return values of a target resource interface, and each group of return values comprises a resource type and a resource object; verifying each group of return values; determining a to-be-executed test case and a non-executed test case in the plurality of test cases based on the resource type; based on the resource object, executing the to-be-executed test case to obtain a test result; determining an execution result of each test case on each group of return values, wherein the execution result comprises a non-execution result and a test result; and based on the execution result of each test case, determining an interface verification result of the target resource interface. According to the technical mode provided by the embodiment of the invention, aiming at the test of the target resource interface of the resource promotion system, the test integrity of the target resource interface can be improved, so that the test guarantee effect of the target resource interface with small quantity and high randomness is ensured.

Description

technical field [0001] The present application relates to software testing technology, and in particular to an interface verification method, device, computer equipment, and computer-readable storage medium for a resource promotion system. Background technique [0002] With the development of computer software, software testing is an important link in software development. Software testing is the process of using manual or automatic means to run or measure a software system. Its purpose may include: finding errors in the software program, whether the software meets the design requirements, and whether it meets the expected technical requirements. For validating and assessing the quality of software. Ultimately, deliver high-quality software to users. Software testing includes interface testing for testing the interfaces between system components. For example, interface testing is used to detect the interaction points between external systems and systems and between variou...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688G06F11/3692
Inventor 陈振宇陈广宇孙艳刘溢辉董严张笑梦
Owner SHANGHAI BILIBILI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products