Automatic test case generation
First Claim
1. A computer-implemented method of generating one or more test cases for a service of a server system comprising:
- analyzing, by the server system, metadata associated with the service to automatically generate, by the server system, a schema definition for inputs and outputs of the service, the metadata including an input schema of Extract, Transform, Load (ETL) job metadata produced by a first Extract, Transform, Load (ETL) application and an output schema of Extract, Transform, Load (ETL) job metadata produced by a second Extract, Transform, Load (ETL) application;
generating a description of the service in an application description language that refers to the schema definition; and
processing the generated description of the service to produce the one or more test cases for the service, wherein processing the generated description comprises;
identifying a process from among a plurality of processes of the service within the generated description, wherein a data restriction specifies acceptable data for an input parameter and an output of the process; and
generating one or more test cases for the process based on the data restriction to determine compliance of the process with the data restriction, the one or more test cases including a test case for at least one test selected from a group of tests consisting of a string length test and a numeric range test, wherein;
the string length test is configured to set a character string input parameter with data having a character length in excess of a restricted length, andthe numeric range test is configured to set a numeric input parameter with a value outside of a prescribed range.
1 Assignment
0 Petitions
Accused Products
Abstract
According to an embodiment of the present invention, a system for generating one or more test cases for a service of a server system comprises at least one processor. The system analyzes metadata associated with the service to generate a schema definition for inputs and outputs of the service. A description of the service is generated in an application description language that refers to the schema definition. The system processes the generated description of the service to produce the one or more test cases. Embodiments of the present invention further include a method and computer program product for generating one or more test cases for a service in substantially the same manner described above.
-
Citations
6 Claims
-
1. A computer-implemented method of generating one or more test cases for a service of a server system comprising:
-
analyzing, by the server system, metadata associated with the service to automatically generate, by the server system, a schema definition for inputs and outputs of the service, the metadata including an input schema of Extract, Transform, Load (ETL) job metadata produced by a first Extract, Transform, Load (ETL) application and an output schema of Extract, Transform, Load (ETL) job metadata produced by a second Extract, Transform, Load (ETL) application; generating a description of the service in an application description language that refers to the schema definition; and processing the generated description of the service to produce the one or more test cases for the service, wherein processing the generated description comprises; identifying a process from among a plurality of processes of the service within the generated description, wherein a data restriction specifies acceptable data for an input parameter and an output of the process; and generating one or more test cases for the process based on the data restriction to determine compliance of the process with the data restriction, the one or more test cases including a test case for at least one test selected from a group of tests consisting of a string length test and a numeric range test, wherein; the string length test is configured to set a character string input parameter with data having a character length in excess of a restricted length, and the numeric range test is configured to set a numeric input parameter with a value outside of a prescribed range. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification