Next: Using LuaScripter for creating scripted test cases, Previous: expect keyword, Up: Remote test case control
The remote
keyword is used to start the execution of a test case in a slave, to request and release events from the slave and sending a variable value to a slave or expecting a variable value from a slave. Other test case controlling for remote test cases is done with the same keywords as for the local test cases.
The remote
keyword has two mandatory arguments, described below.
run
, request
, wait
, set
, unset
, release
, expect
, sendreceive
).
The remote
keyword can be used for example in the following ways:
remote MySlave run netmodule net.cfg 5 remote MySlave request Event1 remote MySlave wait Event1 remote MySlave set Event1 remote MySlave unset Event1 remote MySlave release Event1 remote MySlave expect variable1 remote MySlave sendreceive variable1=/tmp/file.txt
The remote
keyword with sendreceive command is used in the master script for sending a variable value to one of the slaves identified by slave name. This remote command supports the same parameters as sendreceive
keyword. See sendreceive keyword .
The remote
keyword with expect command is used in master script for expecting a variable value from one of the slaves identified by slave name. This remote command supports the same parameters as the expect
keyword. See expect keyword .
The other supported remote commands are run
, request
, release
, set
, unset
and wait
. They support the same parameters as the same keywords described in run keyword, request keyword and release keyword.