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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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, ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

