Skip to content
QiTASC.com / SMS Steps and Compound Steps /
Expecting an SMS Detail's Occurrence Steps
/ .. /
Expecting an SMS Detail's...





Expecting an SMS Detail's Occurrence Steps

The SMS Compound Step is associated with four steps that expect the short message:

  • To be sent

  • To be received

  • To be confirmed

  • To be rejected

These steps test whether the short message transfer enters the specified state within a given timeout. Using one of these steps blocks the test case execution until the desired short message transfer state is reached. If the short message transfer state is not reached within the timeout, the step fails.

Expect the SMS to be Sent

Checks that the SMS initiated from the Compound Step is sent within the timeout.

Syntax

1
within <timeout Number> seconds, expect the short message <smsRef Identifier> to be sent

Parameters

  • timeout - The maximum number of seconds until a timeout

  • smsRef - The name assigned to the SMS transfer for the Compound Step

Example

1
2
3
And A sends a short message to B as MYSMS:
    * with text "Hello intaqt!"
And within 20 seconds, expect the short message MYSMS to be sent

Expect the SMS to be Received

Checks that the SMS initiated from the Compound Step is received within the timeout.

Syntax

1
within <timeout Number> seconds, expect the short message <smsRef Identifier> to be received

Parameters

  • timeout - The maximum number of seconds until a timeout

  • smsRef - The name assigned to the SMS transfer for the Compound Step

Example

1
2
3
And A sends a short message to B as MYSMS:
    * with text "Hello intaqt!"
And within 60 seconds, expect the short message MYSMS to be received

Expect the SMS Delivery to be Confirmed

Checks that the delivery confirmation of the SMS, requested by the sender, has been received within the timeout.

Syntax

1
within <timeout Number> seconds, expect the short message delivery of <smsRef Identifier> to be confirmed

Parameters

  • timeout - The maximum number of seconds until a timeout

  • smsRef - The name assigned to the SMS transfer for the Compound Step

Example

1
2
3
And A sends a short message to B as MYSMS:
    * with text "Hello intaqt!"
And within 60 seconds, expect the short message delivery of MYSMS to be confirmed

Expect the SMS to be Rejected

Checks that the SMS initiated by the Compound Step, has been rejected by the recipient.

Syntax

1
within <timeout Number> seconds, expect the short message <smsRef String> to be rejected

Parameters

  • timeout - The maximum number of seconds until a timeout

  • smsRef - The name assigned to the SMS transfer for the Compound Step

Example

1
2
3
And A sends a short message to B as MYSMS:
    * with text "Hello intaqt!"
Then within 30 seconds, expect the short message MYSMS to be rejected