Test method and device and server

A test method and tested technology, applied in the computer field, can solve the problem of code coverage in the blind area and so on

Inactive Publication Date: 2017-05-31
BEIJING KINGSOFT INTERNET SECURITY SOFTWARE CO LTD
View PDF4 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention discloses a testing method, device and server, which are used to solve the problem that the code coverage rate for functional testing is in a blind spot

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
  • Test method and device and server
  • Test method and device and server
  • Test method and device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0098] As a possible implementation manner, the testing device may also include:

[0099] The generation unit 306 is configured to generate a visualization file according to the code coverage report output by the output unit 305 .

[0100] exist Figure 4 In the described test device, the code to be tested is compiled to generate an executable file for code coverage analysis, the executable file is deployed in a test environment, and the test case for functional testing is executed in the test environment, Determine the code coverage result after the test case is executed according to the executable file, and analyze the code coverage result to output the code coverage report. It can be seen that the code coverage rate of the functional test can be determined through the test case used for the functional test. Therefore, Code coverage can be determined for functional testing.

[0101] see Figure 5 , Figure 5 It is a schematic structural diagram of a server disclosed in a...

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 discloses a test method and device and a server. The test method and device and the server are used for solving the problem that the code coverage rate of a functional test is located at a dead zone. The method comprises the steps that compiling is conducted on a tested code to generate an executable file for code coverage rate analysis; the executable file is deployed in a test environment; a test case for a functional test is carried out in the test environment, a data request for the test environment is formed by simulating a client terminal by the test case, and the test environment corresponds to the data request of the test case; according to the executable file, a code coverage rate result is determined after the test case is carried out; analysis is conducted on the code coverage rate result and a code coverage rate report is output. By the implement of the test method and device and the server, the code coverage rate for the functional test can be determined.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a testing method, device and server. Background technique [0002] The server serves the client, and the content of the service includes providing resources to the client, saving client data, and so on. Since the server-side business is relatively complex, with more functional logic and faster version iteration, functional testing is required to ensure the business functional logic. [0003] Code coverage (code coverage) is a measure in software testing, which is used to describe the proportion and extent of the source code in the program being tested. Among them, the proportion of the source code being tested is called code coverage. At present, code coverage can be evaluated by developers writing unit test cases, but the code coverage for functional testing is still in a blind spot. Therefore, the code coverage for functional testing has become an urgent technical problem t...

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 BEIJING KINGSOFT INTERNET SECURITY SOFTWARE 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