測試常用外掛清單。
2015年2月11日 星期三
RobotFramework - TestSuite執行順序
Robot 預設值行順序依“字母排序”,應儘可能避免Test Suite/Test Case相依問題。
Robot 可自定執行順序,但會産生以下問題,請小心使用
Robot 可自定執行順序,但會産生以下問題,請小心使用
- 不會執行最頂層的 Suite Setup/Suite Teardown
- 産生的 xunit 格式報告中,test case 的 class name 與預設執行時不同。(會影響與 TestLink 之間的連結)
RobotFramework - 整合多份 Reports
透過 rebot 指令,將多個 RobotFramework 報告整合成一份。
rebot output1.xml output2.xml rebot outputs/*.xml rebot --name Browser_Compatibility firefox.xml opera.xml safari.xml ie.xml rebot --include smoke --name Smoke_Tests c:\results\*.xml
2015年2月10日 星期二
RobotFramework - Browser Unexpected Alert 處理方法
有時我們會希望操作瀏覽器時,不要出現非預期的Alert。
Run Keyword And Ignore Error是非常好用的keyword,讓你來做某些事情的反向判斷。
Run Keyword And Ignore Error是非常好用的keyword,讓你來做某些事情的反向判斷。
RobotFramework - 如果xx元件不存在, 執行oo
${status} ${output} Run Keyword And Ignore Error Page Should Contain Element ${ELE_XPATH}
Run Keyword If '${status}'=='FAIL' ${KEYWORD}
訂閱:
文章 (Atom)