XSLT Transformation
Automation Object XSLT Transformation is used to store XSLT transformation in Int4 Suite as test cases. XSLT Transformation test case can be referred by other Automation Objects or Virtualization Objects. XSLT Transformation test case can store 3 payload types:
XSLT Transformation - contains the transformation that can be referred by other objects
Test Input for XSLT - input for testing XSLT Transformation
Test Output for XSLT - output for testing XSLT Transformation
XSLT Transformation can be Executed in APITester Cockpit. During execution Test Input for XSLT is transform by the XSLT Transformation and the result is checked against Test Output for XSLT. Payload Validation can be applied.
Payload Validations
Output payloads returned by tested endpoint are validated against previously stored references. This configuration enables adding rules with exceptions that will allow for differences.
File Type | Processing |
XML | |
JSON | |
Flat Files, X12, EDIFACT | Int4 Flat File Syntax or REGEX |
Parameter name | Description | Example |
Description | Free text for the exception rule | Field1 |
---|---|---|
Expression Type | Expression type. Available options:
This field is optional for all interfaces where there is a single type of output. However, for interfaces that output might be both XML and flat file, it is mandatory to specify the expression type. | XPath |
Expression | Path pointing to the field/node where the exception should be applied. | //ORDER/DATE/text()Â (XPATH expression) or START_TAG(BGM+220+)&&END_TAG(+)&& (Flat file expression) or $.order.date (JSONPath expression) REGEX(BGM\+220\+(.*)\+) (REGEX expression) |
Rule | Rule to be applied to the field. | Â |
| Marks the compared fields with yellow color as a "warning". | Â |
| In case compared values are different Int4 Suite compares them with specified variable. If reference/current value pair from comparison matches variable values result is marked as "warning". Variable name used for checking the values has to be specified in the Processing Parameter column. | Â |
| In case compared values are different Int4 Suite compares them with specified values in the Mapping Object. If reference/current value pair from comparison matches mapping values result is marked as "warning". Mapping Object name used for checking the values has to be specified in the Processing Parameter column. | Â |
| Even if it is different in the content, it is not highlighted. | Â |
Parameter | Used in correlation with Warning Rules. | Â |
© 2017 - 2022 Int4 AG All rights reserved