# US 10,175,657 B2 · Method and system for determining mapping of test case(s) to code snippets of computer program

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 10,175,657 B2
- Document ID: US10175657B2
- Status: Granted
- Kind: B2
- Application number: 15/194,488
- Filed: 2016-06-27
- Published: 2017-12-28
- Granted: 2019-01-08
- Earliest claimed: 2016-06-27
- Assignees: Webomates LLC
- Applicants: Webomates LLC
- Inventors: Ruchika Gupta
- Web page: https://patentgrep.com/patent/US10175657B2

## CPC

- G05B 9/02: electric
- F16P 3/00: Safety devices acting in conjunction with the control or operation of a machine; Control arrangements requiring the simultaneous use of two or more parts of the body (F16P5/00 takes precedence)
- G05B 15/02: electric
- G05B 19/418: Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
- G06F 11/263: Generation of test inputs, e.g. test vectors, patterns or sequences {; with adaptation of the tested hardware for testability with external testers}
- G06F 11/3676: {for coverage analysis}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G07C 3/00: Registering or indicating the condition or the working of machines or other apparatus, other than vehicles
- Y02P 90/02: Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
- G05B: CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS (systems for controlling or regulating non-electric variables G05D; systems for regulating electric or magnetic variables G05F; control devices or systems insofar as characterised by mechanical features only G05G)
- F16P: SAFETY DEVICES IN GENERAL; {SAFETY DEVICES FOR PRESSES}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G07C: TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- Y02P: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS

## Abstract

Disclosed is a system for determining one or more lines of code uniquely executed corresponding to a plurality of test cases executed on a computer program of an IT enabled application. The system creates a plurality of test cases (either manually or automatically). The system further enables a test case execution tool and a code coverage tool. The test case execution tool executes each of the plurality of test cases on the plurality of lines of code. On the other hand, the code coverage tool monitors the one or more lines of code, of the plurality of lines of code, executed for each test case. Subsequently, the system further determines Test Case To Code Mapping (TCTCM) indicating a subset, of the plurality of lines of code, executed at least once by the test case execution tool upon execution of one or more test cases of the plurality of test cases.

## Claims

### Claim 1

A method for determining one or more lines of code uniquely executed corresponding to a plurality of test cases executed on a computer program of an IT enabled application, the method comprising:
enabling, by a processor, a user to create a plurality of test cases, wherein each test case is created to test one or more lines of code of a plurality of lines of code pertaining to a computer program;
concurrently enabling, by the processor,
a test case execution tool to execute each of the plurality of test cases on the plurality of lines of code, and
a code coverage tool to monitor the one or more lines of code, of the plurality of lines of code, executed for each test case and uncovered lines of code,
wherein the concurrently enabling of the test case execution tool and the code coverage tool enables to optimize the plurality of test cases for execution of the uncovered lines of code; and
determining, by the processor, Test Case To Code Mapping (TCTCM) indicating a subset of the plurality of lines of code executed at distinct levels, wherein distinct levels comprise a test case level, a feature level, a package level, a module level, a web-page level, and a system level, and wherein the subset is executed at least once upon execution of one or more test cases of the plurality of test cases, wherein the subset indicates uniquely executed lines of code corresponding to a computer program at distinct levels.

### Claim 2 (depends on 1)

The method of claim 1, wherein the one or more lines of code are determined for one or more User Interface (UI) elements present on one or more web-pages pertaining to the IT-enabled application.

### Claim 3 (depends on 1)

The method of claim 1 further comprising determining, by the processor, code coverage data corresponding to the one or more test cases, wherein the code coverage data is determined based on the TCTCM.

### Claim 4 (depends on 3)

The method of claim 3, wherein the code coverage data indicates a count of the one or more lines of code covered upon executing the one or more test cases.

### Claim 5 (depends on 1)

The method of claim 1 further comprising determining, by the processor, a percentage of the code coverage data, wherein the percentage is determined based on comparison of the subset and the plurality of lines of code.

### Claim 6

A system for determining one or more lines of code corresponding to one or more test cases, of a plurality of test cases, executed on a computer program of an IT enabled application, the central control unit comprising:
a processor; and
a memory coupled to the processor, wherein the processor is capable of executing a plurality of modules stored in the memory, and wherein the plurality of modules comprising:
a test case creation module for enabling a user to create a plurality of test cases, wherein each test case is created to test one or more lines of code of a plurality of lines of code pertaining to a computer program;
a tool enabling module for concurrently enabling
a test case execution tool to execute each of the plurality of test cases on the plurality of lines of code, and
a code coverage tool to monitor the one or more lines of code, of the plurality of lines of code, executed for each test case and uncovered lines of code,
wherein the concurrently enabling of the test case execution tool and the code coverage tool enables to optimize the plurality of test cases for execution of the uncovered lines of code; and
a unique code execution determining module for determining Test Case To Code Mapping (TCTCM) indicating a subset of the plurality of lines of code executed at distinct levels, wherein distinct levels comprise a test case level, a feature level, a package level, a module level, a web-page level, and a system level, and wherein the subset is executed at least once upon execution of one or more test cases of the plurality of test cases, wherein the subset indicates uniquely executed lines of code corresponding to a computer program at distinct levels.

### Claim 7 (depends on 6)

The system of claim 6, wherein the one or more lines of code, that are uniquely executed, are determined for one or more User Interface (UI) elements present on one or more web-pages pertaining to the IT-enabled application.

### Claim 8 (depends on 6)

The system of claim 6 further comprising a code coverage determining module for determining code coverage data corresponding to the one or more test cases, wherein the code coverage data is determined based on the TCTCM.

### Claim 9 (depends on 8)

The system of claim 8, wherein the code coverage data indicates a count of the one or more lines of code covered upon executing the one or more test cases.

### Claim 10 (depends on 6)

The system of claim 6 further comprising determining a percentage of the code coverage data by a code coverage determining module, wherein the percentage is determined based on comparison of the subset and the plurality of lines of code.

### Claim 11

A non-transitory computer readable medium embodying a program executable in a computing device for determining one or more lines of code corresponding to a plurality of test cases, executed on a computer program of an IT enabled application, the program comprising a program code:
a program code for enabling a user to create a plurality of test cases, wherein each test case is created to test one or more lines of code of a plurality of lines of code pertaining to a computer program;
a program code for concurrently enabling
a test case execution tool to execute each of the plurality of test cases on the plurality of lines of code, and
a code coverage tool to monitor the one or more lines of code, of the plurality of lines of code, executed for each test case and uncovered lines of code,
wherein the concurrently enabling of the test case execution tool and the code coverage tool enables to optimize the plurality of test cases for execution of the uncovered lines of code; and
a program code for determining Test Case To Code Mapping (TCTCM) indicating a subset of the plurality of lines of code executed at distinct levels, wherein distinct levels comprise a test case level, a feature level, a package level, a module level, a web-page level, and a system level, and wherein the subset is executed at least once upon execution of one or more test cases of the plurality of test cases, wherein the subset indicates uniquely executed lines of code corresponding to a computer program at distinct levels.
