Skip to content

Commit bf7bd99

Browse files
committed
Always verify message with Check Body Item Data
1 parent f4bfc13 commit bf7bd99

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

atest/resources/atest_resource.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ Check Test Tags
114114
RETURN ${tc}
115115

116116
Check Body Item Data
117-
[Arguments] ${item} ${type}=KEYWORD ${status}=PASS ${children}=-1 &{others}
118-
FOR ${key} ${expected} IN type=${type} status=${status} type=${type} &{others}
117+
[Arguments] ${item} ${type}=KEYWORD ${status}=PASS ${message}= ${children}=-1 &{others}
118+
FOR ${key} ${expected} IN type=${type} status=${status} type=${type} message=${message} &{others}
119119
IF $key == 'status' and $type == 'MESSAGE' CONTINUE
120120
VAR ${actual} ${item.${key}}
121121
IF isinstance($actual, collections.abc.Iterable) and not isinstance($actual, str)

atest/robot/running/group/group.robot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ Basics
1414

1515
Failing
1616
${tc}= Check Test Case ${TESTNAME}
17-
Check Body Item Data ${tc[0]} type=GROUP name=Fails children=2 status=FAIL
18-
Check Body Item Data ${tc[0, 0]} type=KEYWORD name=Fail children=1 status=FAIL
17+
Check Body Item Data ${tc[0]} type=GROUP name=Fails children=2 status=FAIL message=Failing inside GROUP!
18+
Check Body Item Data ${tc[0, 0]} type=KEYWORD name=Fail children=1 status=FAIL message=Failing inside GROUP!
1919
Check Body Item Data ${tc[0, 1]} type=KEYWORD name=Fail children=0 status=NOT RUN
2020
Check Body Item Data ${tc[1]} type=GROUP name=Not run children=1 status=NOT RUN
2121
Check Body Item Data ${tc[1, 0]} type=KEYWORD name=Fail children=0 status=NOT RUN

atest/robot/running/group/invalid_group.robot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Non-existing variable in name
3636
Invalid data is not reported after failures
3737
${tc} Check Test Case ${TESTNAME}
3838
Length Should Be ${tc.body} 4
39-
Check Body Item Data ${tc[0]} KEYWORD status=FAIL children=1 name=Fail args=Something bad happened!
39+
Check Body Item Data ${tc[0]} KEYWORD status=FAIL children=1 name=Fail args=Something bad happened! message=Something bad happened!
4040
Check Body Item Data ${tc[1]} GROUP status=NOT RUN children=1 name=\${non_existing_non_executed_variable_is_ok}
4141
Check Body Item Data ${tc[1, 0]} KEYWORD status=NOT RUN children=0 name=Fail args=Not run
4242
Check Body Item Data ${tc[2]} GROUP status=NOT RUN children=0 name=Empty non-executed GROUP is ok

0 commit comments

Comments
 (0)