Skip to content
/ .. / .. /
CdrVerificationVariables










CdrVerificationVariables

CdrVerificationVariables acts as a filter for selecting tickets that fit a specified criteria. This configuration defines variables that tell intaQt which of the tickets found during CDR Verification will be matched against specified selectors. Tickets that do not match the selection will not be selected and will not be copied to the local directory.

First the CdrVerificationFtps selects the candidates (tickets filtered by filename) according to:

  • The time they were created in the remoteDirectory.

  • The folder they were created in.

Of those candidates, additional filtering is done by the conditions set in the CdrVerificationVariables configuration. Those candidates which meet these conditions will then be copied into the localDirectory so that they can be verified.

If the file that contains at least one matching ticket also contains other tickets that do not match the CdrVerificationVariables conditions, then the entire file will be stored in the localDirectory. Tickets that do not match the CdrVerificationVariables conditions will not be included for further verification and will be ignored. However, they will still appear on the list of the copied tickets in the localDirectory.

Syntax

1
2
3
4
5
CdrVerificationVariables {
    <variableName Identifier> {
        <selectorName String> = <selectorCriteria String>
    }
}

Parameters

  • variableName - The name assigned to the variable that describes the selector.

  • selectorName - The name assigned to the selector.

  • selectorCriteria - The parameters assigned to the selector. These are used to check tickets criteria against expected values. These include:

    • Verification Built-ins.
    • Operators, such as &&, to connect the selections.
    • All the fields from the CDR.
    • Attributes referencing test cases (test case variables), such as their names or starting times (These are described in the intaQt Manual's General Concepts chapter).

Example

1
2
3
4
5
6
7
8
9
CdrVerificationVariables {
    cdrSelectionA {
        "moc" = """
             check(A_Party).against('CC.NDC.NUMBER').basedOn(ctx.A.number)
             && check(Time_Stamp).after(testcase.startTime)
             && check(Time_Stamp).before(testcase.finishTime)
         """
    }
}

Important!: Multiline Selector criterion must be enclosed within triple quotes, as in the example above (""").

In the example above, the "moc" selector specifies that the A_Party ticket property's value uses the CC.NDC.NUMBER format and matches an expected phone number (ctx.A.number). Additionally, the selector specifies that the Time_Stamp field from the CDR must be between test case's start time and test case's end time.