RF内置Build-in变量

来源:互联网 发布:阿里云优势 编辑:程序博客网 时间:2024/05/17 05:10


Available operating-system-related built-in variablesVariableExplanation${CURDIR}An absolute path to the directory where the test datafile is located. This variable is case-sensitive.${TEMPDIR}An absolute path to the system temporary directory. In UNIX-likesystems this is typically/tmp, and in Windowsc:\Documents and Settings\<user>\Local Settings\Temp.${EXECDIR}An absolute path to the directory where test execution wasstarted from. New in Robot Framework 2.1.${/}The system directory path separator./ in UNIX-likesystems, \ in Windows.${:}The system path element separator.: in UNIX-likesystems and ; in Windows.
VariableExplanationAvailable${TEST NAME}The name of the current test case.Test case@{TEST TAGS}Contains the tags of the current test case inalphabetical order.Test case${TEST STATUS}The status of the current test case, either PASS orFAIL.Test teardown${TEST MESSAGE}The possible error message of the current test case.Test teardown${PREV TEST NAME}The name of the previous test case, or an empty stringif no tests have been executed yet.Everywhere${PREV TEST STATUS}The status of the previous test case: either PASS,FAIL or an empty string when no tests have beenexecuted.Everywhere${PREV TEST MESSAGE}The possible error message of the previous test case.Everywhere${SUITE NAME}The full name of the current test suite.Everywhere${SUITE SOURCE}An absolute path to the suite file or directory. Newin Robot Framework 2.5.Everywhere${SUITE STATUS}The status of the current test case, either PASS orFAIL.Suite teardown${SUITE MESSAGE}The full message of the current test suite, includingstatistics.Suite teardown${OUTPUT FILE}An absolute path to the currentoutput file. Hasdifferent values during execution whenoutputs are split.Everywhere${LOG FILE}An absolute path to the currentlog file or stringNONE when no log file is created. Has different valuesduring execution whenoutputs are split.Everywhere${REPORT FILE}An absolute path to thereport file or string NONEwhen no report is created.Everywhere${SUMMARY FILE}An absolute path to thesummary file or string NONEwhen no summary is created.Everywhere${DEBUG FILE}An absolute path to thedebug file or string NONEwhen no debug file is created.Everywhere${OUTPUT DIR}An absolute path to theoutput directory.Everywhere