2015-08-27 70 views
0

我所有的測試通常都有TearDown過程,但有些測試因終端凍結或內核崩潰而失敗,因此不允許運行TearDown並返回包含錯誤在測試消息中,如下所示:機器人框架:禁用拆解登錄到測試消息

------------------------------------------------------------------------------ 
MultiSession               | FAIL | 
System crashed with Kernel panic 

Also teardown failed: 
Several failures occurred: 

1) No match found for ' 
' in 700 milliseconds. Output: 


2) No match found for ' 
' in 700 milliseconds. Output: 


3) No match found for ' 
' in 700 milliseconds. Output: 


4) No match found for ' 
' in 700 milliseconds. Output: 


5) No match found for ' 
' in 700 milliseconds. Output: 


6) '' does not contain '0' 

7) No match found for ' 
' in 700 milliseconds. Output: 


8) No match found for ' 
' in 700 milliseconds. Output: 

如何管理TearDown不會將錯誤記錄到測試消息中?

回答

2

你可能能做的最好是把下面一行在你Teardown的開頭:

Run Keyword If  '${TEST_STATUS}'=='FAIL' Set Log Level ${NONE} 

注意,它仍然會記錄所有來電關鍵字,只是沒有那些裏面什麼。

能夠在故障發生後繼續執行測試是RF2.5中要求最高的功能之一 。您可以在用戶指南的Continue on failure部分找到關於此功能的更多信息。

相關問題