From: robotframe...@googlegroups.com [mailto:robotframe...@googlegroups.com] On Behalf Of Jussi Malinen
Sent: Friday, July 16, 2010 3:32 AM
To: robotframework-users
Subject: Changing ctrl-c to skip teardowns?
--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
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.
This is exactly what happens now when you press ctrl-c once.
> In other situations, I would like to abort all Robots activity at
> once, without executing the teardown, and without spending time on
> completing output files. I don´t know how much time the file
> completion takes; if it can always be done fast, it should be done
> always.
Also this is possible already now. Pressing ctrl-c second time exits
the execution unconditionally without generating logs and reports.
> By the way: I sometimes have the situation that the Suite Setup fails
> and then the Robot run is finished, with complete output files, but
> without executing the teardown. So a process, that is started at the
> beginning of the Suite Setup before the failure, remains running. Can
> I change my test suite so that the teardown also runs after a failure
> in the suite setup (if not aborted by Ctrl-C)?
Suite teardowns should be executed if the matching suite teardown was
run or even attempted to run. If that's not the case in some
situation, please submit a bug about it.
Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org
Currently teardows both on test and suite level are executed. It's
highly unlikely that this will change and even less likely that it
will change in RF 2.5.1.
> What is EXTREMELY important in this
> new feature is that the output.xml file is terminated cleanly (i.e. will not
> cause failures if processed by rebot) and that all the RF reporting that was
> configured on the pybot command line should be completed normally.
The output file should be fine after stopping the executing with a
single ctrl-c, signal, or fatal exception.
> It would also be nice if the reports could show some special status or failure
> message to indicate which test was aborted by the ctrl-c action.
Tests that fail because execution was aborted have a special message.