Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and system for realizing automatic statistics of interface coverage rate

A coverage and interface technology, applied in the field of network security, can solve time-consuming and labor-intensive problems, and achieve the effect of reducing maintenance costs

Inactive Publication Date: 2019-07-19
北京网聘信息技术有限公司
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, the test of interface coverage can let programmers know which interfaces are replaced and which interfaces are still in use, which is convenient for testers to understand the interfaces that have been offline, and the automatic testing of some interfaces can be discarded in time to reduce maintenance costs. However, the current interface coverage The rate situation is still manually counted, which is time-consuming and labor-intensive

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
  • Method and system for realizing automatic statistics of interface coverage rate
  • Method and system for realizing automatic statistics of interface coverage rate
  • Method and system for realizing automatic statistics of interface coverage rate

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings, so that those skilled in the art can implement it with reference to the description.

[0028] It should be noted that the experimental methods described in the following embodiments, unless otherwise specified, are conventional methods, and the reagents and materials, if not otherwise specified, can be obtained from commercial sources; in the description of the present invention, The terms "landscape", "portrait", "top", "bottom", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", The orientation or positional relationship indicated by "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the system or component referred to must have Certain orientation...

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 invention discloses a method for realizing automatic statistics of an interface coverage rate. The method comprises the following steps: inquiring a full interface called by a user through a log;obtaining interface data under the current directory, receiving and executing the test request, and obtaining a return value of each interface under the current directory; traversing and comparing thereturn value of each interface in the current directory with the return value of each called interface in the full-quantity interfaces; obtaining the total number of the interfaces in the full-quantity interface, the number of the interfaces in the full-quantity interface, which are the same as the current directory, and the number of the newly added interfaces in the current directory, and obtaining the interface coverage rate by calculating the specific value of the number of the interfaces in the full-quantity interface, which are the same as the current directory, and the total number ofthe interfaces in the full-quantity interface. The invention discloses a system for realizing automatic statistics of an interface coverage rate. According to the invention, the coverage condition ofeach group of interfaces is intelligently output, the manual statistics cost is reduced, testers can conveniently know offline interfaces, automatic testing of part of the interfaces is timely discarded, and the maintenance cost is reduced.

Description

technical field [0001] The invention relates to the field of network security. More specifically, the present invention relates to a method and system for realizing automatic statistics of interface coverage. Background technique [0002] Obtaining and analyzing code coverage is an important means to ensure the quality of testing. Code coverage describes the proportion and degree of code being tested. Through test coverage, programmers can know whether the test is sufficient, and what potential risks and weaknesses exist, and guide testers to purposefully supplement test cases that increase coverage. Now Coverage testing includes statement coverage, decision coverage, condition coverage, function coverage, interface coverage, etc. Among them, the test of interface coverage can let programmers know which interfaces have been replaced and which interfaces are still being called, which is convenient for testers to understand the interfaces that have been offline, and the auto...

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/3676G06F11/3688
Inventor 郭盛
Owner 北京网聘信息技术有限公司