html tool

2017年10月19日星期四

robotframe 内嵌关键字的用法补遗


参考:http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Should%20Match%20Regexp


logname ${TEST DOCUMENTATION}
Set Test Documentation this is morning
logname ${TEST DOCUMENTATION}
Set Test Documentationdoc, append=False
Set Test Message *HTML* Hello!
将message显示在cmd的运行页面中使用
Set Test Messagemessage,append=False
Sets message for the current test case.
If the optional append argument is given a true value (see Boolean arguments), the given message is added after the possible earlier message by joining the messages with a space.
In test teardown this keyword can alter the possible failure message, but otherwise failures override messages set by this keyword. Notice that in teardown the message is available as a built-in variable ${TEST MESSAGE}.
It is possible to use HTML format in the message by starting the message with *HTML*.
Examples:
Set Test Message My message Set Test Message is continued. append=yes Should Be Equal ${TEST MESSAGE} My message is continued. Set Test Message *HTML* Hello!
This keyword can not be used in suite setup or suite teardown.
Support for append was added in Robot Framework 2.7.7 and support for HTML format in 2.8.
TestCase中的生命周期,默认为当前方法的生命周期Set Test Variablename, *values

没有评论:

发表评论