File: basic.robot

package info (click to toggle)
ahven 2.8-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 880 kB
  • sloc: ada: 4,382; makefile: 225; sh: 79; xml: 59; perl: 30; python: 26
file content (27 lines) | stat: -rw-r--r-- 709 bytes parent folder | download | duplicates (3)
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}