# US 2013/0159963 A1 · Agile Unit and Regression Testing Framework for Domain Specific Languages

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

- Number: US 2013/0159963 A1
- Document ID: US20130159963A1
- Status: Published application
- Kind: A1
- Application number: 13/494,256
- Filed: 2012-06-12
- Published: 2013-06-20
- Earliest claimed: 2011-12-15
- Assignees: Tata Consultancy Services Limited
- Inventors: ShamimAhmad Dadamir Dhalait
- Web page: https://patentgrep.com/patent/US20130159963A1

## CPC

- G06F 11/368: {for test version control, e.g. updating test cases to a new software version}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

According to one aspect of the invention, a system and method for unit and regression testing has been developed. The system is capable to automate unit/regression test case preparation, remote execution, provide XML based assert mechanism to evaluate test results, maintenance and versioning. The present system enables model driven testing of domain specific languages and provides a user friendly mechanism to perform Unit and Regression Testing.

## Claims

### Claim 1

A method of unit and regression testing for model aware domain specific languages, the method comprising a processor implemented steps of:
a. modeling an operation present in a repository, each operation comprising a specification of designing requirements for testing, to generate an application library code;
b. generating a blank operation template from the application library code thereof corresponding to each operation, the blank operation template comprising an input XML and an expected output XML thereof;
c. building an executable unit test load to integrate business logic therein the each load by using predefined unit test stubs and system libraries;
d. executing the unit test load and comparing the resulting actual output XML with the expected output XML files to determine the state of the test cases;
e. identifying defects unveiled during the comparison and iteratively repeating the above steps b to d until the test cases gain a pass state; and
f. versioning of the test cases for the future reusability by selecting valid test cases.

### Claim 2 (depends on 1)

The method of claim 1, wherein the operation refers to a unit testing module.

### Claim 3 (depends on 1)

The method of claim 1, wherein the repository consists of artifacts but not limited to input XML files, expected output XML files, regression test suite metadata and the like.

### Claim 4 (depends on 1)

The method of claim 1, wherein the input XML refers to the set of input test cases.

### Claim 5 (depends on 1)

The method of claim 1, wherein the expected output XML refers to the results that are obtained post running of the test cases.

### Claim 6 (depends on 1)

The method of claim 1, wherein the application library code provides functionalities of sophisticated memory management and object oriented view of database.

### Claim 7 (depends on 1)

The method of claim 1, wherein the blank operation template refers to a template generated by MasterCraft.

### Claim 8 (depends on 1)

The method of claim 1, wherein the unit test load comprises of dependent components of drive modules, object binaries and application code library.

### Claim 9 (depends on 1)

The method of claim 1, wherein the state of the test case refers to either pass state or fail state.

### Claim 10

A system of unit and regression testing for domain specific languages, the system comprising:
An input module configured to generate an input XML and an expected output XML;
a modeling unit adapted to accept input from a repository and generate an operation for testing;
Code generating module coupled with the repository and is configured to generate domain specific language code templates and an application library code for operations accessed from the repository;
Executing module configured to invoke a function that reads the input XML and call an unit test load to write the output to an output file;
comparing module adapted to assign a flag to the each compared test case, the flag indicating the state of the test case; and
a result generating module adapted to report defects unveiled during comparison and iteratively repeating the process until the test cases gains a pass state.

### Claim 11 (depends on 10)

The system of claim 10, wherein the function refers to Job Control Language.

### Claim 12 (depends on 10)

The system of claim 10, wherein the output file refers to the output file generated post execution of the test procedures.

### Claim 13 (depends on 10)

The system of claim 10, wherein the operation refers to a unit testing module.

### Claim 14 (depends on 10)

The system of claim 10, wherein the repository consists of artifacts including but not limited to input XML files, expected output XML files, regression test suite metadata and the like.

### Claim 15 (depends on 10)

The system of claim 10, wherein the input XML comprises of refers to the set of input test cases.

### Claim 16 (depends on 10)

The system of claim 10, wherein the expected output XML refers to the results that are obtained post running of the test cases.

### Claim 17 (depends on 10)

The system of claim 10, wherein the application library code provides functionalities of sophisticated memory management and object oriented view of database.

### Claim 18 (depends on 10)

The system of claim 10, wherein the blank operation template refers to a template generated by MasterCraft.

### Claim 19 (depends on 10)

The system of claim 10, wherein the unit test load comprises of dependent components of drive modules, object binaries and application code library.

### Claim 20 (depends on 10)

The system of claim 10, wherein the state of the test case refers to either pass state or fail state.
