Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter name

Description

Example

Rule Type

Rule type. Available options:

  • Input - Test Case Payload Creation - in case you want to scramble data in PayloadOutput - Test Case Result - during creation of a test case

  • Runtime - in case you want to scramble data in Resultdata during runtime - when interface is executed and additional data is loaded to test case data.

Scrambling rule

Specify scrambling rule name for identification.

BEFORE

Method

Choose a scrambling method from a list. Available methods:

  • CONSTANT Replace value with constant
    The current value will contain the constant passed in parameter. The constant should be provided as is without any brackets.

  • GUID Generate GUID

    Generate random value in a GUID format. 

  • RANDOM Generate random value

    Generates a random value. The value of the parameter defines the upper limit of the range. it is possible also to generate negative numbers. For example passing -100 in parameter will generate random numbers from -1 to -100

  • HASH create hash based on value
    Calculates a hash based on the given value using algorithm passed in parameter (deafult 'SHA1').

  • MASK - replace each character with constant
    Replace each character with constant passed in parameter. For example passing X in parameter will replace scrambled data with X signs.

  • CUSTOM - create custom method
    create a CUSTOM method (implementing an interface /INT4/IFTT_IF_DATA_SCRMBL_METH).

CONSTANT - Replace value with constant

expression type

Expression type. Available options:

  • unspecified

  • XPath (X)

  • Flat expression (F)

This field is optional for all interfaces where there is single type of output. However for interfaces that output might be both XML and flat file then it is mandatory to specify the expression type.

X

XPath Expression 1

Path pointing to the field/node where the exception should be applied.

This might be both XPath syntax for working with XML files or int4 Flat File Syntax for flat formats like for example EDIFACT or other flat formats.

//ORDER/DATE/text()  (XPATH expression) or


START_TAG(BGM+220+)&&END_TAG(+)&& (Flat file expression)

Processing Parameter

Specify Processing Parameter suitable for a chosen scrambling method.

X (for Mask method)

...

  1. Open /n/int4/iftt_conf_mass and select required automation object

  2. Navigate to data scrambling section

  3. You can set two types of Scrambling Rules:
    - I Input - Test Case Payload for scrambling the data in the message before the mapping,
    - O Output - Test Case Result for scrambling the message after the mapping.

    Image Removed

    Specify Creation - in case you want to scramble data during creation of a test case
    - Runtime - in case you want to scramble data during runtime - when interface is executed and additional data is loaded to test case data.

    Image Added

  4. Specify scrambling rule name and select a method from the list. You can replace value with constant, generate GUID number, random / hash value or replace each character with constant (mask option). You can also create a custom method (using interface /INT4/IFTT_IF_DATA_SCRMBL_METH).

    Image RemovedImage Added

  5. Select expression type: Flat (for flat file) of XPath (for XML messages) expression and fill XPath expression. You should also fill column Processing Parameter Name. In our example, outcome setting will look like this:

    Image RemovedImage Added

  6. Now, when user creates a new test case using this automation object and selects Content button to view message Payload we can see that product name data is scrambled (with predefined constant value):


  7. Furthermore, after executing the test case and viewing its results we can see that payload data was anonymized in reference and outcome messages, as required:

...