@@ -5,51 +5,48 @@ Library robotmbt processor_lib=MyProcessor
55
66*** Test Cases ***
77fail on empty model info
8+ Confirm expected error then pass execution empty model info When present, *model info* cannot be empty
89 empty model info
910
1011fail when colon syntax isn't used
12+ Confirm expected error then pass execution non-colon model info *model info* expected format: :<attr>: <expr>|<expr>
1113 non-colon model info
1214
1315fail when colon syntax is used incorrectly
16+ Confirm expected error then pass execution forgotten opening colon *model info* expected format: :<attr>: <expr>|<expr>
1417 forgotten opening colon
1518
1619fail on non-existing keyword
17- Confirm expected error then pass execution 3 No keyword with name 'non-existing keyword' found.
20+ Confirm expected error then pass execution non-existing keyword No keyword with name 'non-existing keyword' found.
1821 non-existing keyword
1922
2023fail on non-existing step with prefix
21- Confirm expected error then pass execution 4 No keyword with name 'when non-existing step' found.
24+ Confirm expected error then pass execution non-existing step No keyword with name 'when non-existing step' found.
2225 when non-existing step
2326
2427*** Keywords ***
2528Expect failing suite processing
26- [Documentation] *model info*
27- ... :IN: None
28- ... :OUT: None
29- Run keyword and expect error Error(s) detected* Treat this test suite Model-based
30- Set suite variable ${expected_error_detected } ${True }
29+ ${msg } = Run keyword and expect error Error(s) detected* Treat this test suite Model-based
30+ Set suite variable ${full_message } ${msg }
3131
3232empty model info
3333 [Documentation] *model info*
34- @{errors } = Reported errors
35- Should be equal ${errors[0].kw_wo_gherkin } empty model info
34+ Fail Unreachable keyword executed
3635
3736non-colon model info
3837 [Documentation] *model info*
3938 ... *IN* Alfa
4039 ... *OUT* Beta | Gamma delta | Epsilon
41- @{errors } = Reported errors
42- Should be equal ${errors[1].kw_wo_gherkin } non-colon model info
40+ Fail Unreachable keyword executed
4341
4442forgotten opening colon
4543 [Documentation] *model info*
4644 ... IN: Alfa
4745 ... OUT: Beta | Gamma delta | Epsilon
48- @{errors } = Reported errors
49- Should be equal ${errors[2].kw_wo_gherkin } forgotten opening colon
46+ Fail Unreachable keyword executed
5047
5148Confirm expected error then pass execution
52- [Arguments] ${index } ${error_message }
49+ [Arguments] ${step_name } ${error_message }
5350 [Documentation] *model info*
5451 ... :IN: None
5552 ... :OUT: None
@@ -58,8 +55,5 @@ Confirm expected error then pass execution
5855 ... then this keyword causes the remainder of the scenario to be skipped and
5956 ... the test passes. When inserted without the correct error, the scenario
6057 ... will fail.
61- @{errors } = Reported errors
62- Should be equal ${errors[${index }].model_info['error'] } ${error_message }
63- IF ${expected_error_detected }
64- Pass execution Accepting intentionally unexecutable scenario
65- END
58+ Should Contain ${full_message } ${step_name } FAILED: ${error_message }
59+ Pass execution Accepting intentionally unexecutable scenario
0 commit comments