Skip to content

Commit 3719ed9

Browse files
committed
Add more tests
1 parent f920127 commit 3719ed9

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

examples/rkie_keyword_error.robot

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
*** Settings ***
2+
Documentation Example of 'Run Keyword And Ignore Error' keyword reporting
3+
4+
*** Variables ***
5+
${countval} 0
6+
7+
*** Test Cases ***
8+
Rkie test
9+
Run Keyword And Ignore Error Fail on first try
10+
Fail on first try
11+
12+
*** Keywords ***
13+
Fail on first try
14+
${counter} Evaluate ${countval} + 1
15+
Set Suite Variable ${countval} ${counter}
16+
IF ${countval} < 2
17+
Log To less executions error ERROR
18+
Fail To less executions
19+
END

tests/integration/test_remove_keywords.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@ def test_remove_keyword_not_provided(mock_client_init):
257257
0,
258258
"Content removed using the --remove-keywords option.",
259259
),
260+
(
261+
"examples/binary_file_log_as_image.robot",
262+
"tag:bin*",
263+
0,
264+
["PASSED"] * 3,
265+
1,
266+
0,
267+
"Content removed using the --remove-keywords option.",
268+
),
260269
(
261270
"examples/binary_file_log_as_text.robot",
262271
"tag:binary",
@@ -266,6 +275,33 @@ def test_remove_keyword_not_provided(mock_client_init):
266275
2,
267276
'Binary data of type "image/jpeg" logging skipped, as it was processed as text and hence corrupted.',
268277
),
278+
(
279+
"examples/rkie_keyword.robot",
280+
"name: BuiltIn.Run Keyword And Ignore Error",
281+
0,
282+
["PASSED"] * 3 + ["SKIPPED"] * 2 + ["PASSED"] * 3,
283+
3,
284+
0,
285+
"Content removed using the --remove-keywords option.",
286+
),
287+
(
288+
"examples/rkie_keyword.robot",
289+
"name: *.Run Keyword And Ignore Error",
290+
0,
291+
["PASSED"] * 3 + ["SKIPPED"] * 2 + ["PASSED"] * 3,
292+
3,
293+
0,
294+
"Content removed using the --remove-keywords option.",
295+
),
296+
(
297+
"examples/rkie_keyword_error.robot",
298+
"name: BuiltIn.Run Keyword And Ignore Error",
299+
0,
300+
["PASSED"] * 3 + ["FAILED"] * 3 + ["PASSED"] * 3 + ["SKIPPED"] * 3 + ["PASSED"] * 3,
301+
6,
302+
2,
303+
"To less executions error",
304+
),
269305
],
270306
)
271307
@mock.patch(REPORT_PORTAL_SERVICE)

0 commit comments

Comments
 (0)