Menu

#2 ctl:fail Processing

TE Future Release
open
RjM
None
4
2013-03-05
2006-09-13
No

After a ctl:fail is processed (on a failure) the rest
of the current test is still run. It would be nice to
have the thread stop execution of the current test (or
have another ctl element that would do such,
i.e. "ctl:break") so that the rest of the test is not
executed if a ctl:fail is encountered.

This may not be desired for all situations, but for
some tests if the first part of the test fails there
is usually no need to proceed with the rest of the
test.

Discussion

  • Jeremy Parr-Pearson

    Logged In: YES
    user_id=1578174

    When a fail element is used it should skip the rest of the tests in that scope (or adjustable scope, by adding
    a "scope" attribute). This way tests that are known to fail as well do not have to be run and the skipped status
    can be logged.

    As well, it would be useful to have a "message" attribute so that the reason for failing can be logged and output
    to the screen.

    i.e. (where scope of 1 is immediate node, and 2 includes the parent node as well - or some other convention)
    <ctl:fail message="this test failed for this reason..." scope="1"/>

     
  • luisBermudez

    luisBermudez - 2013-03-05

    Need to check if this is still an issue.

     
  • luisBermudez

    luisBermudez - 2013-03-05
    • assigned_to: RjM
    • milestone: --> TE Future Release
    • priority: 5 --> 4
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.