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
|
*** Settings ***
Library Process
*** Test Cases ***
Simple1 Test Passes
Run Test simple1r
Result Should Contain Passed :\ \ 1
Result Should Match *Simple*PASS*
Fail1 Test Fails
Run Test fail1r
Result Should Contain Failed :\ \ 1
Result Should Match *Fail*DOES NOT WORK*FAIL*
*** Keywords ***
Run Test
[Arguments] ${testname}
${result}= Run Process test_sources/${testname}
Set Test Variable ${TEST_OUTPUT} ${result.stdout}
Result Should Contain
[Arguments] ${testresult}
Should Contain ${TEST_OUTPUT} ${testresult}
Result Should Match
[Arguments] ${testresult}
Should Match ${TEST_OUTPUT} ${testresult}
|