How to compare payloads of two Test Cases?

Test Type File Comparator (16) can be used to compare payloads of two Test Cases. For such comparison Automation Object of Type File Comparator needs to be created. This Automation Object needs to have two Variables named LEFT_TC and RIGHT_TC.

Each of them needs to have processing set up as below:

In a Test Case of Type File Comparator (16) with above AO assign, two variables will be visible which should be used to populate TC numbers to be compared:

Variable Value can be populated with pattern <TC_NUMBER>:<PAYLOAD_TYPE>:<COUNTER> where:

  1. <TC_NUMBER> - mandatory value, Test Case Number

  2. <PAYLOAD_TYPE> - one of the Int4 Suite Payload Types

    1. H - TC Content Type Message Header

    2. M - TC Content Type Message

    3. P - TC Content Type Payload

    4. R - TC Content Type Response

    5. J - TC Content Type Response Header

    6. E - TC Content Type Response

  3. <COUNTER> - if more then one response is present in TC, specific response can be fetched using counter

Execution of such Test Case will compare two specified payloads fetched from provided TCs.

© 2017 - 2022 Int4 AG All rights reserved