Skip to content

Commit d50d05f

Browse files
Marcelo D Montulpil
Marcelo D Montu
authored andcommitted
robot: some additions and updates (honza#1006)
* robot: fix Set Variable keyword The syntax of `Set Variable` is slightly different from Set Global Variable, Set Test Variable, and Set Suite Variable * robot: reminder about Catenate not changing args * robot: include 'Should Be Equal' keyword * robot: include snippet for pause on teardown
1 parent 7ce415e commit d50d05f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

UltiSnips/robot.snippets

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ priority -50
88
# Built In library #
99
######################
1010
snippet cat "Catenate"
11-
Catenate SEPARATOR=${1:---} ${2:Hello} ${3:world}
11+
\${${1:name}}= Catenate SEPARATOR=${2:---} ${3:Hello} ${4:world}
1212
endsnippet
1313

1414
snippet eval "Evaluate"
@@ -109,6 +109,10 @@ snippet sgv "Set Global Variable"
109109
Set Global Variable \${${1:name}} ${2:${value}}
110110
endsnippet
111111

112+
snippet sbe "Should Be Equal"
113+
Should Be Equal "\${${1:var}}" "${2:expected value}" ${3:"optional error msg"} ${4:ignore_case=True}
114+
endsnippet
115+
112116
snippet sleep "Sleep"
113117
Sleep ${1:2 minutes 10 seconds}
114118
endsnippet
@@ -142,6 +146,12 @@ Import library Dialogs
142146
Pause execution
143147
endsnippet
144148

149+
snippet tpause "Teardown Pause - pause test execution only on failure"
150+
[Teardown] Run Keyword If Test Failed Run Keywords
151+
... Import library Dialogs AND
152+
... Pause execution
153+
endsnippet
154+
145155

146156
##############################
147157
# Selenium2Library library #

0 commit comments

Comments
 (0)