View on GitHub

RED - Robot Editor

Eclipse based editor for RobotFramework testcases

RED - Robot Editor User Guide > User guide > Launching Tests >

RED Agent

RED Tests Runner Agent is something of which you should be aware if you're planning to launch tests using remote configuration or if you're writing own script which will run the tests in local configuration. The agent is a python script which should be attached to test execution as a listener (see Listener interface topic in RF User Guide).

Agent is responsible for listening to execution events happening in running tests, so without agent both Message Log and Execution views will not work. The script is also responsible for stopping/resuming tests on breakpoints, so RED debugging capabilities also only work when agent was injected into tests execution.

Obtaining agent script

You can always obtain agent script from RED within Preferences dialog (at Window -> Preferences -> Robot Framework -> Default Launch Configurations , use Export Client Script button). Additionally the file may be saved straight from launch configuration dialog.

Warning
Agent script is a subject of changes, so it may happen that script exported from RED version x is not able to work properly with RED version y and vice versa. From version 0.7.6 onwards both script and RED are checking and handling this when establishing connection, so you will be notified. Important: script taken from RED older than 0.7.6 will not work with newer RED and vice-versa without notifying you (possibly even hanging infinitely).

Taking agent into Robot Tests execution

Agent script have to be injected into Robot tests using listeners mechanism. When starting Robot execution pass the listener as follows:

robot --listener /path/to/script/TestRunnerAgent.py:ARG1:ARG2:ARG3 other_arguments

Agent script can take up to 3 arguments which are added to script path after colon (:) separator, the arguments themselves are also separated with a colon (:). The arguments are: