Document toolboxDocument toolbox

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:

  1. XSLT Transformation - contains the transformation that can be referred by other objects

  2. Test Input for XSLT - input for testing XSLT Transformation

  3. 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

XPath

JSON

JSONPath

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:

  • unspecified

  • XPath

  • Flat expression

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.

 

  • Warning

Marks the compared fields with yellow color as a "warning".

 

  • Warning when different based on variable replacement

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.

 

  • Warning when different based on value mapping object

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.

 

  • Ignore

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