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:
- modeling an operation present in a repository for a test driven development process, the operation comprising a specification of designing requirements for testing to generate an application library code;
generating a blank operation template from the application library code thereof corresponding to the operation, the blank operation template comprising an input XML and an expected output XML thereof, wherein the input XML refers to a set of test cases, and the expected output XML refers to results that are expected post running of the set of the test cases;
building an executable unit test load to integrate business logic therein by using predefined unit test stubs and system libraries;
executing the unit test load and comparing a resulting actual output XML with the expected output XML to determine states of the set of the test cases, wherein a state of a test case refers to either pass state or fail state;
identifying defects unveiled during the comparison; and
versioning the test cases for the future reusability by selecting valid test cases with the pass states, wherein the valid test cases are used to build regression test suites, wherein the regression test are used for performing regression testing, wherein regression testing comprises executing an entirety of the regression test suites to uncover unknown defects to all parts of an enterprise computer application due to a change at a unit level of the enterprise computer application.
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.
20 Citations
15 Claims
-
1. A method of unit and regression testing for model aware domain specific languages, the method comprising a processor implemented steps of:
-
modeling an operation present in a repository for a test driven development process, the operation comprising a specification of designing requirements for testing to generate an application library code; generating a blank operation template from the application library code thereof corresponding to the operation, the blank operation template comprising an input XML and an expected output XML thereof, wherein the input XML refers to a set of test cases, and the expected output XML refers to results that are expected post running of the set of the test cases; building an executable unit test load to integrate business logic therein by using predefined unit test stubs and system libraries; executing the unit test load and comparing a resulting actual output XML with the expected output XML to determine states of the set of the test cases, wherein a state of a test case refers to either pass state or fail state; identifying defects unveiled during the comparison; and versioning the test cases for the future reusability by selecting valid test cases with the pass states, wherein the valid test cases are used to build regression test suites, wherein the regression test are used for performing regression testing, wherein regression testing comprises executing an entirety of the regression test suites to uncover unknown defects to all parts of an enterprise computer application due to a change at a unit level of the enterprise computer application. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computerized system of unit and regression testing for domain specific languages, the system having at least a memory storing a plurality of modules and a processor for executing code of plurality of modules, the plurality of modules of the system comprising:
-
an input module, stored in the memory, configured to generate an input XML and an expected output XML, wherein the input XML refers to a set of input test cases, and the expected output XML refers to results that are expected post running of the set of the test cases; a modeling unit, stored in the memory, adapted to accept input from a repository and generate an operation for testing in a test driven development process; a code generating module, stored in the memory, 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; an executing module, stored in the memory, configured to invoke a function that reads the input XML and call an unit test load to write output to an output file; a comparing module, stored in the memory, adapted to compare a resulting actual output XML with the expected output XML, assign a flag to each compared test case in the set of test cases to indicate a state of the each compared test case in the set of the test cases, wherein the state of the each compared test case refers to either pass state or fail state; and a result generating module, stored in the memory, adapted to report defects unveiled during comparison, wherein the test cases with pass state are used to build regression test suites, wherein the regression test suites are used for performing regression testing, wherein regression testing comprises executing an entirety of the regression test suites to uncover unknown defects to all parts of an enterprise computer application due to a change at a unit level of the enterprise computer application. - View Dependent Claims (9, 10, 11, 12, 13, 14, 15)
-
Specification