A - Basics 2 - Testing a validation rule
Purpose of this sections is to introduce testing the implementation we have made.
1: Compiling project
Purpose of compilation is to turn the actions we have made so far into a form validation service can understand. Compilation is done automatically when using Operations -> validate file but it can also be done separatly from validation, by Operations -> Compile
We should select the compile here.
If there are any erroneous input in the validation rules we have, myXML will let us know after compilation. However, in the case of automatically generated rules (the one we have made so far) we can expect everything to be in order
2: Testing implementation in myXML
Next, we shall input a test file into myXML. Premade test file is attached into this wiki page. It will have to be saved on the computer and then selected when validating. Validation can be initiated by selecting Operations -> Validate file
We should now get a pdf response containing validation result
3: Creating rule: element may not be present
In this step, we shall make another rule, this time prohibiting the presence of an element. Here again we can prohibit any element but we should make the rule for Creditor name.
4: Testing implementation in myXML
To test the newly created rule implementation, we can repeat steps 1 and 2. As a result we should now be getting an error that Creditor Name is anot allowed to be used.
In the next phase, we shall modify an existing rule and validate via using the normal validation service instead of myXML validation.