All Downloads are FREE. Search and download functionalities are using the official Maven repository.

robotframework-2.7.7.atest.resources.rebot_resource.txt Maven / Gradle / Ivy

The newest version!
*** Setting ***
Resource          atest_resource.txt

*** Variable ***
${ORIG_START}     Set in Create Output With Robot
${ORIG_END}       -- ;; --
${ORIG_ELAPSED}   -- ;; --

*** Keyword ***
Create Output With Robot
    [Arguments]    ${outputname}    ${arguments}    @{datasource}
    Run Tests    ${arguments}    @{datasource}
    Is Valid Timestamp    ${SUITE.starttime}
    Is Valid Timestamp    ${SUITE.endtime}
    Is Valid Elapsed Time    ${SUITE.elapsedtime}
    Set Suite Variable    $ORIG_START    ${SUITE.starttime}
    Set Suite Variable    $ORIG_END    ${SUITE.endtime}
    Set Suite Variable    $ORIG_ELAPSED    ${SUITE.elapsedtime}
    Run Keyword If    "${outputname}"    Move File    ${OUTFILE}    ${outputname}

Check times
    [Arguments]    ${item}    ${start}    ${end}    ${elapsed}
    Should Be Equal    ${item.starttime}    ${start}
    Should Be Equal    ${item.endtime}    ${end}
    Should Be Equal As Integers    ${item.elapsedtime}    ${elapsed}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy