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

A method and apparatus for collecting the mapping relationship between use cases and codes

A technology of mapping relationship and use case, applied in the field of collecting mapping relationship between use case and code

Inactive Publication Date: 2018-07-31
ALIBABA GRP HLDG LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there is no related technology that can well realize the determination of this mapping relationship.

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
  • A method and apparatus for collecting the mapping relationship between use cases and codes
  • A method and apparatus for collecting the mapping relationship between use cases and codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 1 The flow chart of the method for collecting the mapping relationship between use cases and codes provided by Embodiment 1 of the present invention. In this embodiment, the java environment is taken as an example, and the code coverage tool emma is used as an example. emma is a tool for detecting and reporting java An open source tool for code coverage, which supports multiple levels of coverage indicators: package, class, method, statement block, and line, and can finally generate and output reports in the form of text, xml, and html. Of course, the present invention is not limited to the emma tool, and other code coverage tools such as clover, BullseyeCoverage, etc. can also be used. The language environment can also adopt such as C language, C++ language, python, perl and so on. Such as figure 1 As shown in , the method may include the following steps:

[0036] Step 101: Deploy the environment for collecting the mapping relationship: perform emma instrumen...

Embodiment 2

[0081] figure 2 The device structure diagram for collecting the mapping relationship between use cases and codes provided by Embodiment 2 of the present invention, the device can be an independent device, or can be used as a unit in the test equipment. Such as figure 2 As shown in , the device mainly includes a collection execution module 01 and an analysis execution module 02 , and may further include an environment deployment and preparation module 03 and a general control module 00 .

[0082] The collection and execution module 01 is responsible for obtaining the coverage information report output by the code coverage tool after the execution of the use case is completed. The coverage information report includes the code information covered by the execution of the use case. In the present invention, the code coverage tools may include but not limited to emma, clover, BullseyeCoverage and other tools, and the language environment may also include but not limited to java, ...

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 present invention provides a method and device for collecting the mapping relationship between use cases and codes, wherein the method includes: after the execution of the use cases is completed, obtaining the coverage information report output by the code coverage tool, the coverage information report includes the results of the execution of the use cases Covered code information; analyzing the coverage information report to obtain the code covered by the use case, so as to establish a mapping relationship between the use case and the code. The invention can realize the collection of the mapping relationship between use cases and codes, and provide references for whether to supplement use cases, modify use cases, return which use cases, and the like.

Description

【Technical field】 [0001] The invention relates to testing technology in the field of computer technology, in particular to a method and device for collecting mapping relationships between use cases and codes. 【Background technique】 [0002] A test case refers to a description of a specific software product testing task, embodying a test plan, method, technique, and strategy, and its types may include functional test cases, automated test cases, performance test cases, etc., collectively referred to here as use case. During the testing process, whether it is to measure whether the use cases are supplemented to cover all the code of the software as much as possible, or when the code of the software changes, which use cases need to be modified accordingly or which use cases should be returned, etc., these need To know the mapping relationship between use cases and software codes, that is to say, it is necessary to determine which codes in the software each use case corresponds...

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 Patents(China)
IPC IPC(8): G06F11/36
Inventor 曹攀
Owner ALIBABA GRP HLDG LTD