Class SipperUtil::CommandElement
In: sipper/util/command_element.rb
Parent: Object

One command element is like "@sleep 500" where the requirement is to add a sleep element for 500ms in the genarted code. Since a CommandElement is used alongside the ExpectationElement we have a direction attribute returning "@" sign. There is no space after @ sign for commands. The commands are methods defined on this class.

Methods

new   set_timer   sleep_ms  

Included Modules

SipLogger SipperUtil

Attributes

command  [R]  Command id is a general purpose id which can be used to identify/differentiate commands.
command_id  [R]  Command id is a general purpose id which can be used to identify/differentiate commands.
command_str  [R]  Command id is a general purpose id which can be used to identify/differentiate commands.
direction  [R]  Command id is a general purpose id which can be used to identify/differentiate commands.

Public Class methods

Public Instance methods

Command to set a timer for this time, on expiration of this timer the next command or action is taken.

The command to make the flow sleep for specified amount of milliseconds. e.g. "@sleep_ms 500"

[Validate]