Agile Unit and Regression Testing Framework for Domain Specific Languages
First Claim
Patent Images
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.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
20 Claims
-
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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
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. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification