差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
rf:rf:reducelog [2017/03/09 15:13] tony [設定Retry/Wait Keyword的Log Level] |
rf:rf:reducelog [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 50: | 行 50: | ||
* [[rf:rf:unnecessaryLog|設定某些Keyword的Log Level]] @TODO@ | * [[rf:rf:unnecessaryLog|設定某些Keyword的Log Level]] @TODO@ | ||
==== Set Log Level ==== | ==== Set Log Level ==== | ||
- | 在某些retry動作前,可以透過Set Log Level為NONE去避免不必要的LOG,然後在teardown在回復成INFO。 | + | 在某些retry動作內有包含log keyword時,可以在使用前透過Set Log Level為NONE去避免不必要的LOG,然後在teardown在回復成INFO。 |
+ | ==== 使用--RemoveKeywords參數 ==== | ||
+ | 以**Wait Until Keyword Succeeds**來說,Robot設計者已考量到大量log產生問題,因此可以在robot參數加入以下參數,去濾掉不必要的報表內容: | ||
+ | <code bash> | ||
+ | --RemoveKeywords WUKS | ||
+ | </code> | ||
+ | PS. output.xml中依然會有這些東西,但report.html中是被濾掉的。 | ||
===== Reference ===== | ===== Reference ===== | ||
* [[http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#standalone-jar-distribution|RobotFrameworkUserGuide.html#standalone-jar-distribution]] | * [[http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#standalone-jar-distribution|RobotFrameworkUserGuide.html#standalone-jar-distribution]] |