Skipping Tests if Parent suite setup fails

207 views
Skip to first unread message

kalyan chakravarthy

unread,
Jul 15, 2022, 6:41:51 AM7/15/22
to robotframework-users
How to skip the tests if Parent suite setup fails.

Bryan Oakley

unread,
Jul 15, 2022, 1:03:58 PM7/15/22
to robotframework-users
You can create a listener that keeps track of the pass/fail status of each test and/or suite, and then implement a keyword that takes a test case or suite name and fails or skips a test depending on the status of that test/suite.

Here's a stackoverflow question which shows how to fail a test, but you can just as easily skip it. https://stackoverflow.com/questions/25075706/automatic-failing-non-execution-of-interdependent-tests-in-robot-framework/25079032#25079032

There is also a library you can download that does the same thing: https://pypi.org/project/robotframework-dependencylibrary/

On Fri, Jul 15, 2022 at 5:41 AM kalyan chakravarthy <kaly...@gmail.com> wrote:
How to skip the tests if Parent suite setup fails.

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/robotframework-users/73d31938-5189-4e49-8132-72c5a41e7eccn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages