Skip to content
QiTASC.com / intaQt Verification / intaQt Verification Rules /
Equals and Not Equals Rules
/ .. / .. /
Equals and Not Equals Rules










Equals and Not Equals Rules

These rules verify that a ticket property is equal to or not equal to the value being checked.

Note: This check is case sensitive for values of type String.

Equals

Verifies that a ticket property is equal to the value being checked.

Syntax

1
2
check <property String> equals <value Any>;
check <property String> equals <value Any> if present;
Parameters

  • property - The property being checked.

  • value - The value that the property should be equal to.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
check "Ticket_ID" equals "77";
check "Ticket_ID" equals "77" if present;

check "RECORD_LENGTH" equals 425;
check "RECORD_LENGTH" equals 425 if present;

check "Tariff" equals ${ctx.tariffUnderTest};
check "Tariff" equals ${ctx.tariffUnderTest} if present;

check "Ticket_ID" equals ${70+7};
check "Ticket_ID" equals ${70+7} if present;

check "Call_start_time" equals property "Call_end_time";
check "Call_start_time" equals property "Call_end_time" if present;

Additional Examples

Property Value Rule Parameter Check Result
"VoiceFlat" "VoiceFlat" OK
"VoiceFlat" "voiceflat" FAIL
"DataSession" "Session" FAIL
123 123 OK
123 "123" FAIL
100 ${90+10} OK
true ${1 == 1} OK

Not Equals

Verifies that a ticket property is not equal to the value being checked.

Syntax

1
2
check <property String> not equals <value Any>;
check <property String> not equals <value Any> if present;

Parameters

  • property - The property being checked.

  • value - The value that the property should not be equal to.

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
check "Ticket_ID" not equals "77";
check "Ticket_ID" not equals "77" if present;

check "RECORD_LENGTH" not equals 425;
check "RECORD_LENGTH" not equals 425 if present;

check "Tariff" not equals ${ctx.tariffUnderTest};
check "Tariff" not equals ${ctx.tariffUnderTest} if present;

check "Ticket_ID" not equals ${70+7};
check "Ticket_ID" not equals ${70+7} if present;

check "Call_start_time" not equals property "Call_end_time";
check "Call_start_time" not equals property "Call_end_time" if present;
Further Examples:

Property Value Rule Parameter Check Result
"VoiceFlat" "VoiceFlat" FAIL
"VoiceFlat" "voiceflat" OK
"DataSession" "Session" OK
123 123 FAIL
123 "123" OK
100 ${90+10} FAIL
true ${1 == 1} FAIL