How to rerun the failed test case in test suites in RF

754 views
Skip to first unread message

bks456

unread,
Jan 8, 2017, 6:23:29 PM1/8/17
to robotframework-users
Hello,

I have below test cases in test suite, for example if test case vento got failed and i want to rerun the test case alone but it is failing Since it is referring to ${build_num} from previous test case, doesn't have viability of the variable

In this case do i have to rerun the whole tsv? 


Appreciate your inputs.





*** Test Cases ***
build
    [Tags]
    Comment    Import Item
    ${build_num}=    get build number from NMK
    Set Suite Variable    ${build_num}
    

vento
    [Tags]
    Filter out "Vento" with as ${build_num}

Pekka Klärck

unread,
Jan 8, 2017, 6:39:17 PM1/8/17
to kev 456, robotframework-users
Hello,

Yes, you need to run the whole suite or somehow independently select
all tests that must be run as a precondition. This is one of the
reasons why you should avoid dependencies between test cases.

Dependencies aren't always easily avoidable, and the recently releases
RF 3.0.1 actually added new `--rerunfailedsuites (-S)` option to ease
re-executing suites with failing tests:
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#re-executing-failed-test-suites

Cheers,
.peke
> --
> You received this message because you are subscribed to the Google Groups
> "robotframework-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to robotframework-u...@googlegroups.com.
> To post to this group, send email to robotframe...@googlegroups.com.
> Visit this group at https://groups.google.com/group/robotframework-users.
> For more options, visit https://groups.google.com/d/optout.



--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

kev 456

unread,
Jan 8, 2017, 8:22:26 PM1/8/17
to Pekka Klärck, robotframework-users


Ok sure, thank you

when we use below keyword , where does value get stored .. how it is visible for next test cases.
Reply all
Reply to author
Forward
0 new messages