robotframework自带变量
Variable | Explanation | Available |
---|---|---|
$ | The name of the current test case. | Test case |
@ | Contains the tags of the current test case in alphabetical order. Can be modified dynamically using Set Tags and Remove Tags keywords. |
Test case |
$ | The documentation of the current test case. Can be set dynamically using using Set Test Documentation keyword. |
Test case |
$ | The status of the current test case, either PASS or FAIL | Test teardown |
$ | The message of the current test case. | Test teardown |
$ | The name of the previous test case, or an empty string if no tests have been executed yet. |
Everywhere |
$ | The status of the previous test case: either PASS, FAIL, or an empty string when no tests have been executed. |
Everywhere |
$ | The possible error message of the previous test case. | Everywhere |
$ | The full name of the current test suite. | Everywhere |
$ | An absolute path to the suite file or directory. | Everywhere |
$ | The documentation of the current test suite. Can be set dynamically using using Set Suite Documentation keyword. |
Everywhere |
& | The free metadata of the current test suite. Can be set using Set Suite Metadata keyword. | Everywhere |
$ | The status of the current test suite, either PASS or FAIL. | Suite teardown |
$ | The full message of the current test suite, including statistics. | Suite teardown |
$ | The status of the current keyword, either PASS or FAIL. | User keyword teardown |
$ | The possible error message of the current keyword. | User keyword teardown |
$ | Current log level. | Everywhere |
$ | An absolute path to the output file. | Everywhere |
$ | An absolute path to the log file or string NONE when no log file is created. | Everywhere |
$ | An absolute path to the report file or string NONE when no report is created. | Everywhere |
$ | An absolute path to the debug file or string NONE when no debug file is created. | Everywhere |
$ | An absolute path to the output directory. | Everywhere |
& | A dictionary exposing command line options. The dictionary keys match the command line options and can be accessed both like ${OPTIONS}[key] and${OPTIONS.key} . Available options:- ${OPTIONS.exclude} (:option:--exclude )- ${OPTIONS.include} (:option:--include )- ${OPTIONS.skip} (:option:--skip )- ${OPTIONS.skip_on_failure} (:option: --skiponfailure ) |
Everywhere |
https://github.com/pswarfound