Patent Document ID: 9367432
Application ID: 13194321

Base Claim:
1. A method for generating test data, the method comprising: obtaining, by a processor, at least one rule based on a requirement specification, wherein the requirement specification is obtained from a user and is based on business and functional requirements, and wherein the at least one rule indicates a format of at least one of valid test data and invalid test data for testing of at least one parameter of a program code, and wherein the at least one rule is obtained independent of analyzing the program code; determining, by the processor, at least one relational expression corresponding to the at least one parameter of the program code based on the at least one rule; tokenizing, by the processor, the at least one relational expression into a plurality of tokens, and parsing the plurality of tokens to identify and then assign one or more valid upper and lower boundary values and one or more invalid upper and lower boundary values for each token, of the at least one parameter of the program code; generating, by the processor, one or more valid test data based on the assigned one or more valid upper and lower boundary values for each token of the at least one parameter of the program code, wherein the generating one or more valid test data comprises solving the at least one relational expression based on the one or more valid upper and lower boundary values; generating, by the processor, one or more invalid test data based on the assigned one or more invalid upper and lower boundary values for each token of the plurality of tokens of the at least one parameter of the program code, wherein the generating one or more invalid test data comprises solving the at least one relational expression based on the one or more invalid upper and lower boundary values; and wherein the one or more valid test data is a first range of values limited by the one or more valid upper and lower boundary values and the one or more invalid test data is a second range of values lying outside the first range of values and limited by the one or more invalid upper and lower boundary values.

---

Claim 2:
2. The method as claimed in claim 1 , wherein determining the at least one relational expression comprises deriving the at least one relational expression based on the at least one rule entered by the user through a user interface.