Method for automatically validating data against a predefined data specification
A method for automatically validating data against a predefined data specification, includes: a) acquiring data to be validated ( 2 ), the data including a plurality of test objects, b) acquiring a test database ( 4 ) including a plurality of test files each defining a test scenario, c) acquiring a predefined data specification ( 6 ) against which the test objects must be validated, d) automatically generating a plurality of test scripts ( 8 ), from the acquired test files and using relevant data from the test objects of the acquired predefined data specification, e) for each generated test script, executing the test script ( 10 ) on the test objects, and f) automatically generating a test report ( 12 ) including a result of each executed test case.
1. A method for automatically validating data against a predefined data specification, said method comprises steps of:
a) acquiring data to be validated, said data comprising a plurality of test objects;
b) acquiring a test database comprising a plurality of test files each defining a test scenario;
c) acquiring a predefined data specification against which the test objects must be validated;
d) automatically generating a plurality of test scripts, from the acquired test files and using relevant data from the test objects of the acquired predefined data specification;
e) for each generated test script, executing said test script on the test objects; and
f) automatically generating a test report comprising a test result,
wherein, during the step a) of acquiring data to be validated, the following sub-steps are carried out:
comparing two files of different versions,
filtering mismatching lines of the two files,
categorizing the mismatching lines into a plurality of corresponding categories, and
for each category, removing all mismatching lines of said category except for one mismatching line of said category.
2. The method according to claim 1 , wherein the execution of said test script comprises a comparison of data comprised in the test objects with data comprised in the data specification.
3. The method according to claim 2 , wherein the data compared during the execution of said test script comprises at least an attribute of the test objects.
4. The method according to claim 1 , wherein said test scripts are automatically generated by a generation module by adding, to a test scenario defined by a test file, a test parameter depending on the test object.
5. The method according to claim 1 , wherein the test objects are stored in an XML file.
6. The method according to claim 1 , further comprising:
acquisition of user-set formatting options, the test report being generated in a file format according to the acquired formatting options.
7. A non-transitory data recording medium, comprising instructions recorded thereon, executable on an electronic calculator, for implementing the method according to claim 1 .
8. An electronic calculator for automatically validating data against a predefined data specification, said electronic calculator comprising a memory and an automated module, the memory having stored therein a program that, upon execution by the automated module, carries out the steps of:
a) acquiring data to be validated, said data comprising a plurality of test objects;
b) acquiring a test database comprising a plurality of test files each defining a test scenario;
c) acquiring a predefined data specification against which the test objects must be validated;
d) automatically generating a plurality of test scripts, from the acquired test files and using relevant data from the test objects of the acquired predefined data specification;
e) for each generated test script, executing said test script on the test objects; and
f) automatically generating a test report comprising a test result,
wherein, during the step a) of acquiring data to be validated, the following sub-steps are carried out:
comparing two files of different versions,
filtering mismatching lines of the two files,
categorizing the mismatching lines into a plurality of corresponding categories, and
for each category, removing all mismatching lines of said category except for one mismatching line of said category.