The Tags described in this article can be used in SMS, Email, and Web Test Cases.
Categories | Tags |
---|---|
Expect Tags |
Tag: {*} (Wildcard)
|
Tag: {Number}
|
|
Tag: {Choice}
|
|
Tag: {AlphaNum}
|
|
Tag: {URL} |
|
Reply Tags |
Tag: {$variableName}
|
Tag: {Insert}
|
Expect Tags
Tag: {*}
(Wildcard)
The {*}
Wildcard Tag is used as a placeholder to replace the
Expect text that should be ignored.
The {*}
Wildcard Tag has a range of applications when testing
customer contact solutions that have highly interchangeable parts. Rather than
making Test Cases to cover each of these simple differences, the
{*}
Wildcard Tag can be used instead.
Conditions and Restrictions
- The
{*}
Wildcard Tag can be used multiple times. - Cannot be immediately followed by another {*} Wildcard Tag.
- The
{*}
Wildcard Tag can not be used inside of a{Choice}
Tag
Example
Matches(“H1”, “Welcome {*} to the app store”);
Tag: {Number}
The {Number}
tag recognizes numbers.
Tag: {Choice}
The {Choice}
Tag can be used when matching a message that has at
least two known alternatives.
The {Choice}
Tag is inserted in the Test Case Expect field
representing multiple alternate phrases that can be matched.
Example
Matches(“H1”, “Welcome {Choice Mathew|Mark|Luke|John} to the app store”);
Tag: {AlphaNum}
The {AlphaNum}
tag is used to recognize alphabet letters and
numbers in English.
Conditions and Restrictions
- Can recognize 0-9 and A-Z in English
- If an optional variable is specified, the variable result cannot be used in a subsequent dynamic reply
Parameter | Description |
---|---|
Length | Optional parameter but recommended for improved accuracy. The exact length is best, a range is second best, and no length at all will give least accuracy |
<variable> | Optional parameter that takes the form of
$variablename. The variable will be populated with
the results of the {AlphaNum} recognition. You
can also specify a comparison to be made against the variable.
If the comparison fails, then the Step will fail with the
Detailed Step Result including "Expected 'variablename'
to be 'expectedValue' but was 'actualValue'"
|
Examples
- {AlphaNum Length=6 $postcode}
- {AlphaNum Length=4-6}
- {AlphaNum $id}
- {AlphaNum Length=6 $id == "K2G4A3"}
Tag: {URL}
The {URL}
Tag is used to extract an URL from the Expect
message.
Example
{URL $custom_var_name Host=optional hostname Proto=optional
protocol}
Host can be one of Any, IP or DNS.
Proto can be one of Any, HTTP or HTTPS.
Reply Tags
Tag: {$variableName}
This is a dynamic reply variable inserted into an Expect or Reply.
Tag: {Insert}
This tag can be used in the Expect or Reply fields to insert certain variables in a Step.
Examples
{Insert PIN Default=1234}
will insert the value of the variable
PIN. If the value is missing, uses the default value of 1234.
{Insert RandomNumber}
will insert a random number.
{Insert RandomAlphanumeric Range=1-4}
will insert a random
alphanumeric string between 1 and 4.
Comments
0 comments
Please sign in to leave a comment.