Patent Document ID: 9251046
Application ID: 14311774
Patent Flag: 1

Claim One:
1. A computer-implemented method for optimizing one or more test cases via program instructions stored in a memory and executed by a real processor, the computer-implemented method comprising: a. analyzing, by the processor, all paths covered by the one or more test cases in one or more business models to obtain one or more unique paths that cover a plurality of nodes in the one or more business models only once, wherein the unique paths are obtained by inputting various paths, identifying cyclic and acyclic paths and outputting a list of unique paths; b. creating a matrix of the plurality of nodes of the one or more business models, the matrix comprising the one or more paths covered by the one or more test cases, the one or more paths including the obtained unique paths; c. initially marking each of the plurality of nodes as uncovered in the matrix; d. identifying a path with maximum number of uncovered nodes in the matrix; e. marking all the nodes in the identified path as covered in the matrix; f. repeating steps d and e, to identify all the paths with maximum number of uncovered nodes in the matrix, until each of the plurality of nodes is marked as covered in the matrix; g. segregating the identified paths from the unique paths obtained from the one or more business models; and h. storing the identified one or more paths in a repository, the identified paths representing paths that cover the one or more nodes in the one or more business models at least once, wherein the test cases that form a part of the identified paths are the optimized test cases.