Re: Test Case Dependency using ${PREV_TEST_STATUS}

304 views
Skip to first unread message

Jussi Malinen

unread,
Aug 15, 2012, 4:14:15 AM8/15/12
to jaros...@gmail.com, robotframe...@googlegroups.com
Sure,

Just do something like this at the beginning of your test:

Should be True       "${PREV TEST STATUS}" == "PASS"       Previous test ${PREV TEST NAME} failed

- Jussi


On Aug 15, 2012, at 10:24 AM, finspin <jaros...@gmail.com> wrote:

Is there a syntax for running a test case only if previous test case has passed?

I'd like to do something like this:

If ${PREV_TEST_STATUS} == "PASS" Then Run This Test Case

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/robotframework-users/-/h4Ebwo-6z0AJ.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/robotframework-users?hl=en.

finspin

unread,
Aug 16, 2012, 6:57:57 AM8/16/12
to robotframe...@googlegroups.com, jaros...@gmail.com
Great, that works, thanks!


On Wednesday, 15 August 2012 11:14:15 UTC+3, Jussi Malinen wrote:
Sure,

Just do something like this at the beginning of your test:

Should be True       "${PREV TEST STATUS}" == "PASS"       Previous test ${PREV TEST NAME} failed

- Jussi


On Aug 15, 2012, at 10:24 AM, finspin <jaros...@gmail.com> wrote:

Is there a syntax for running a test case only if previous test case has passed?

I'd like to do something like this:

If ${PREV_TEST_STATUS} == "PASS" Then Run This Test Case

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/robotframework-users/-/h4Ebwo-6z0AJ.
To post to this group, send email to robotframe...@googlegroups.com.
To unsubscribe from this group, send email to robotframework-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages