Add debug info to automation test case (#6092)

Add "Capture Page Screenshot" to help debug the case failure

Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
Wenkai Yin 2018-10-23 09:08:33 +08:00 committed by Yan
parent c13a0bfaae
commit 96d260a379

View File

@ -25,12 +25,14 @@ Delete Success
:For ${obj} in @{obj}
\ Wait Until Page Contains Element //clr-tab-content//div[contains(.,'${obj}')]/../div/clr-icon[@shape="success-standard"]
Sleep 1
Capture Page Screenshot
Delete Fail
[Arguments] @{obj}
:For ${obj} in @{obj}
\ Wait Until Page Contains Element //clr-tab-content//div[contains(.,'${obj}')]/../div/clr-icon[@shape="error-standard"]
Sleep 1
Capture Page Screenshot
Filter Object
#Filter project repo user tag.
@ -50,10 +52,13 @@ Multi-delete Object
:For ${obj} in @{obj}
\ Click Element //clr-dg-row[contains(.,'${obj}')]//label
Sleep 1
Capture Page Screenshot
Click Element //button[contains(.,'Delete')]
Sleep 2
Capture Page Screenshot
Click Element //clr-modal//button[contains(.,'DELETE')]
Sleep 3
Capture Page Screenshot
Multi-delete User
[Arguments] @{obj}