Abstract: The present disclosure relates to a method and system for automatically generating test data for testing software applications. In one embodiment, a plurality of test cases associated with test scenarios is determined by analyzing requirements of the software applications. The plurality of test cases is then processed to generate a plurality of test data scripts that are further executed on a first data source to obtain the test data. If it is determined that the execution of the plurality of test cases fail, then the plurality of test data scripts is executed on a second data source to obtain the test data. The first data source is then updated with the test data obtained for future test data requirements. Thus, the system enables automatic generation of test data obtained from external data sources and thereby improving the testing efficiency and quality of the applications being tested. FIG. 3
Claims:We Claim:
1. A method of automatically generating test data for testing applications, said method comprising:
determining, by a test data generator, a plurality of test cases based on a plurality of test scenarios, wherein the plurality of test scenarios is created by analyzing requirements of one or more testing applications;
generating, by a test data script generation framework of the test data generator, a plurality of test data scripts associated with the plurality of test cases;
executing, by the test data generator, the plurality of test data scripts on a first test data source to obtain a plurality of test data, associated with the plurality of test cases, from the first test data source based on successful execution;
executing dynamically, by the test data generator, the plurality of test data scripts on a second test data source to obtain the plurality of test data from the second test data source, if the execution of the plurality of test data scripts on the first test data source is determined to fail; and
updating, by the test data generator, the first data source with the plurality of test data obtained from the second test data source.
2. The method as claimed in claim 1, wherein the step of generating the plurality of test data scripts comprises one or more steps of:
receiving the plurality of test cases in an input file having a current file format;
converting the plurality of test cases into a corresponding plurality of test cases having a predetermined standard file format, having text and data segregated from the converted plurality of test cases;
mapping the segregated data with one or more data requirements; and
generating the plurality of test data scripts associated with the mapped data requirements.
3. The method as claimed in claim 1, wherein the step of executing the plurality of test data scripts on the second test data source, comprising the steps of:
accessing, using an Open Data Source framework of the test data generator, the second test data source that comprises a one or more other test data sources, wherein each of the one or more of other test data sources is either a relational or a non-relational type test data source;
generating one or more individual Application Program Interface (API) adaptors for interfacing with each of the one or more other test data sources;
converting the plurality of test data scripts into a query capable of obtaining the plurality of test data from each of the one or more other test data sources using the one or more individual API adaptors
executing the query on each of the relational and non-relational type test data source of the one or more other test data sources to obtain the plurality of test data; and
updating the first test data source with a plurality of test data obtained from execution of the query on each of the one or more other test data sources upon execution of the query.
4. The method as claimed in claim 1, wherein the first test data source is a centralized data repository and the second test data source is an open data repository, wherein the open data repository comprises at least web services, messaging queue, virtual databases and other related databases.
5. A system for automatically generating test data for testing application, said system comprising:
a processor;
a first data source coupled with the processor and configured to store a plurality of test data, databases and schemas; and
a memory communicatively coupled to the processor, wherein the memory stores processor-executable instructions, which, on execution, cause the processor to:
determine a plurality of test cases based on a plurality of test scenarios, wherein the plurality of test scenarios is created by analyzing requirements of one or more testing applications;
generate a plurality of test data scripts associated with the plurality of test cases;
execute the plurality of test data scripts on the first test data source to obtain a plurality of test data, associated with the plurality of test cases, from the first test data source based on successful execution;
execute dynamically the plurality of test data scripts on a second test data source to obtain the plurality of test data from the second test data source, if the execution of the plurality of test data scripts on the first test data source is determined to fail; and
update the first test data source with the plurality of test data obtained from the second test data source.
6. The system as claimed in claim 5, wherein the processor is configured to generate the plurality of test data scripts by performing the steps of:
receiving the plurality of test cases in an input file having a current file format;
converting the plurality of test cases into a corresponding plurality of test cases having a predetermined standard file format, having text and data segregated from the converted plurality of test cases;
mapping the segregated data with one or more data requirements; and
generating the plurality of test data scripts associated with the mapped data.
7. The system as claimed in claim 5, the system further comprises an Open Data Source framework, coupled with the test data generator, capable of obtaining the plurality of test data from the second data source, wherein the second test data source comprises one or more other test data sources, wherein each of the one or more other test data sources is either a relational or a non-relational type test data source.
8. The system as claimed in claim 7, wherein the open data source framework comprises at least:
one or more individual Application Program Interface (API) adaptors for executing the plurality of test data scripts from each of the one or more other test data sources; and
a virtual database for temporarily storing the plurality of test data obtained based on execution of the plurality of test data scripts.
9. The system as claimed in claim 5, wherein the processor is configured to execute the plurality of test data scripts on the second test data source by performing the steps of:
accessing, using the Open Data Source framework, the second test data source that comprises the one or more other test data sources;
generating the one or more individual API adaptors for interfacing with each of the one or more other test data sources;
converting the plurality of test data scripts into a query capable of obtaining the plurality of test data from each of the one or more other test data sources using the one or more individual API adaptors
executing the query on each of the relational and non-relational type test data source of the one or more other test data sources to obtain the plurality of test data; and
updating the first test data source with a plurality of test data obtained from execution of the query on each of the one or more other test data sources in upon execution of the query.
10. The system as claimed in claim 5, wherein the first test data source is a centralized data repository and the second test data source is an open data repository, wherein the open data repository comprises at least web services, messaging queue, virtual databases and other related databases.
Dated this September 30, 2016
Swetha SN
Of K&S Partners
Agent for the Applicant
, Description:FIELD OF THE DISCLOSURE
The present subject matter is related, in general to automated testing of computer applications, and more particularly, but not exclusively to a method and a system for automatically generating test data for testing computer applications.
| Section | Controller | Decision Date |
|---|---|---|
| # | Name | Date |
|---|---|---|
| 1 | 201641033617-IntimationOfGrant22-02-2024.pdf | 2024-02-22 |
| 1 | Form 5 [30-09-2016(online)].pdf | 2016-09-30 |
| 2 | 201641033617-PatentCertificate22-02-2024.pdf | 2024-02-22 |
| 2 | Form 3 [30-09-2016(online)].pdf | 2016-09-30 |
| 3 | Form 18 [30-09-2016(online)].pdf_94.pdf | 2016-09-30 |
| 3 | 201641033617-FORM 3 [07-02-2024(online)].pdf | 2024-02-07 |
| 4 | Form 18 [30-09-2016(online)].pdf | 2016-09-30 |
| 4 | 201641033617-FORM-26 [07-02-2024(online)].pdf | 2024-02-07 |
| 5 | Drawing [30-09-2016(online)].pdf | 2016-09-30 |
| 5 | 201641033617-Information under section 8(2) [07-02-2024(online)].pdf | 2024-02-07 |
| 6 | Description(Complete) [30-09-2016(online)].pdf | 2016-09-30 |
| 6 | 201641033617-Written submissions and relevant documents [07-02-2024(online)].pdf | 2024-02-07 |
| 7 | REQUEST FOR CERTIFIED COPY [05-10-2016(online)].pdf | 2016-10-05 |
| 7 | 201641033617-AMENDED DOCUMENTS [18-01-2024(online)].pdf | 2024-01-18 |
| 8 | Form 26 [05-10-2016(online)].pdf | 2016-10-05 |
| 8 | 201641033617-Correspondence to notify the Controller [18-01-2024(online)].pdf | 2024-01-18 |
| 9 | 201641033617-FORM 13 [18-01-2024(online)].pdf | 2024-01-18 |
| 9 | Request For Certified Copy-Online.pdf | 2016-10-12 |
| 10 | 201641033617-POA [18-01-2024(online)].pdf | 2024-01-18 |
| 10 | REQUEST FOR CERTIFIED COPY [08-12-2016(online)].pdf | 2016-12-08 |
| 11 | 201641033617-US(14)-HearingNotice-(HearingDate-23-01-2024).pdf | 2024-01-08 |
| 11 | Other Patent Document [10-03-2017(online)].pdf | 2017-03-10 |
| 12 | 201641033617-ABSTRACT [04-11-2020(online)].pdf | 2020-11-04 |
| 12 | Correspondence by Agent_Executed Form1_15-03-2017.pdf | 2017-03-15 |
| 13 | 201641033617-CLAIMS [04-11-2020(online)].pdf | 2020-11-04 |
| 13 | 201641033617-FER.pdf | 2020-05-21 |
| 14 | 201641033617-COMPLETE SPECIFICATION [04-11-2020(online)].pdf | 2020-11-04 |
| 14 | 201641033617-PETITION UNDER RULE 137 [04-11-2020(online)].pdf | 2020-11-04 |
| 15 | 201641033617-CORRESPONDENCE [04-11-2020(online)].pdf | 2020-11-04 |
| 15 | 201641033617-OTHERS [04-11-2020(online)].pdf | 2020-11-04 |
| 16 | 201641033617-DRAWING [04-11-2020(online)].pdf | 2020-11-04 |
| 16 | 201641033617-FORM 3 [04-11-2020(online)].pdf | 2020-11-04 |
| 17 | 201641033617-FER_SER_REPLY [04-11-2020(online)].pdf | 2020-11-04 |
| 18 | 201641033617-FORM 3 [04-11-2020(online)].pdf | 2020-11-04 |
| 18 | 201641033617-DRAWING [04-11-2020(online)].pdf | 2020-11-04 |
| 19 | 201641033617-CORRESPONDENCE [04-11-2020(online)].pdf | 2020-11-04 |
| 19 | 201641033617-OTHERS [04-11-2020(online)].pdf | 2020-11-04 |
| 20 | 201641033617-COMPLETE SPECIFICATION [04-11-2020(online)].pdf | 2020-11-04 |
| 20 | 201641033617-PETITION UNDER RULE 137 [04-11-2020(online)].pdf | 2020-11-04 |
| 21 | 201641033617-CLAIMS [04-11-2020(online)].pdf | 2020-11-04 |
| 21 | 201641033617-FER.pdf | 2020-05-21 |
| 22 | 201641033617-ABSTRACT [04-11-2020(online)].pdf | 2020-11-04 |
| 22 | Correspondence by Agent_Executed Form1_15-03-2017.pdf | 2017-03-15 |
| 23 | 201641033617-US(14)-HearingNotice-(HearingDate-23-01-2024).pdf | 2024-01-08 |
| 23 | Other Patent Document [10-03-2017(online)].pdf | 2017-03-10 |
| 24 | REQUEST FOR CERTIFIED COPY [08-12-2016(online)].pdf | 2016-12-08 |
| 24 | 201641033617-POA [18-01-2024(online)].pdf | 2024-01-18 |
| 25 | 201641033617-FORM 13 [18-01-2024(online)].pdf | 2024-01-18 |
| 25 | Request For Certified Copy-Online.pdf | 2016-10-12 |
| 26 | 201641033617-Correspondence to notify the Controller [18-01-2024(online)].pdf | 2024-01-18 |
| 26 | Form 26 [05-10-2016(online)].pdf | 2016-10-05 |
| 27 | 201641033617-AMENDED DOCUMENTS [18-01-2024(online)].pdf | 2024-01-18 |
| 27 | REQUEST FOR CERTIFIED COPY [05-10-2016(online)].pdf | 2016-10-05 |
| 28 | 201641033617-Written submissions and relevant documents [07-02-2024(online)].pdf | 2024-02-07 |
| 28 | Description(Complete) [30-09-2016(online)].pdf | 2016-09-30 |
| 29 | 201641033617-Information under section 8(2) [07-02-2024(online)].pdf | 2024-02-07 |
| 29 | Drawing [30-09-2016(online)].pdf | 2016-09-30 |
| 30 | 201641033617-FORM-26 [07-02-2024(online)].pdf | 2024-02-07 |
| 30 | Form 18 [30-09-2016(online)].pdf | 2016-09-30 |
| 31 | Form 18 [30-09-2016(online)].pdf_94.pdf | 2016-09-30 |
| 31 | 201641033617-FORM 3 [07-02-2024(online)].pdf | 2024-02-07 |
| 32 | Form 3 [30-09-2016(online)].pdf | 2016-09-30 |
| 32 | 201641033617-PatentCertificate22-02-2024.pdf | 2024-02-22 |
| 33 | Form 5 [30-09-2016(online)].pdf | 2016-09-30 |
| 33 | 201641033617-IntimationOfGrant22-02-2024.pdf | 2024-02-22 |
| 1 | 2020-03-1912-39-55E_19-03-2020.pdf |