forked from robotframework/robotframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compatibility.robot
32 lines (27 loc) · 1.48 KB
/
compatibility.robot
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
*** Settings ***
Documentation Test output.xml compatibility with old Robot versions and otherwise.
...
... RF version specific output.xml files have been generated by running
... ``./rundevel.py atest/testdata/misc/`` in appropriate version control tag.
Resource rebot_resource.robot
*** Test Cases ***
RF 3.2 compatibility
Run Rebot And Validate Statistics rebot/output-3.2.2.xml 172 10 validate=False
RF 4.0 compatibility
Run Rebot And Validate Statistics rebot/output-4.0.xml 172 10
RF 5.0 compatibility
Run Rebot And Validate Statistics rebot/output-5.0.xml 175 10
Message directly under test
Run Rebot And Validate Statistics rebot/issue-3762.xml 1 0
${tc} = Check Test Case test A
Check Log Message ${tc.body[0]} Hi from test WARN
Check Log Message ${tc.body[1].body[0]} Hi from keyword WARN
Check Log Message ${tc.body[2]} Hi from test again INFO
*** Keywords ***
Run Rebot And Validate Statistics
[Arguments] ${path} ${passed} ${failed} ${validate}=True
Run Rebot ${EMPTY} ${path} validate output=${validate}
${total} ${passed} ${failed} = Evaluate ${passed} + ${failed}, ${passed}, ${failed}
Should Be Equal ${SUITE.statistics.total} ${total}
Should Be Equal ${SUITE.statistics.passed} ${passed}
Should Be Equal ${SUITE.statistics.failed} ${failed}