Skip to content

WARN test result #964

Closed
Closed

Description

@spooning

Originally submitted to Google Code by counseling.mr on 27 Sep 2011

Allow a test to PASS, FAIL and WARN.
WARN should be emitted if a WARN level log (or else configured level) is present on the log.
The report would show bars that are green, red and yellow.

This needs adding a new possible state to test results.
This is anyhow a different criterium from current reporting which may be yellow if non-critical tests fail, because there tests can just PASS and FAIL, then are categorized afterwards.

Thanks a lot!

Activity

  1. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by @pekkaklarck on 23 Oct 2011

    We have made a decision to use only two statuses: PASS and FAIL. In addition to that you can use tags to add free classifiers to your tests and then make tests critical or non-critical based on them. This has in practice been enough in all projects we have been involved with.

    There has been now and then requests to add new statuses such as SKIP, WARN, IGNORE, ERROR, CRITICAL, etc. Clearly adding all of them makes no sense. Generally agreeing what new statuses would be useful isn't possible either because that depend on the context.

    For a bit longer discussion related to this subject see issue 837 that also was WontFixed. This has also been discussed few times on robotframework-users mailing list.

  2. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by bryan.oakley on 23 Oct 2011

    I've never understood the opposition to SKIP. It's a fact of life that some tests should be skipped for one reason or another (low on disk space, different architectures, uninstalled features or dependencies, etc), and that reason might not be evident until the test is running. Tests either run or they don't. If they run, they either pass or they don't. Those three states should IMHO all be visible in the log. <shrug>

    I do agree, however, that WARN seems a little unusual.

  3. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by counseling.mr on 24 Oct 2011

    I get the point and accept the conclusion. Thanks for your time.

    Nevertheless, as Bryan points out, the same test may have more outcomes, so it is not just a matter of tagging it as noncritical, and a decision should not be taken from this assumption.

    I agree also that WARN is unusual, yet we encountered a situation when the presence of some logs MAY indicate a problem, an this must be put in evidence so that an engineer can check what happened. This is due to inherent multiprocessing of the SUT and the happening of possibly unexpected conditions.

    In general, a flexible outcome result set would be the fit for all...

  4. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by aravindh9 on 23 Aug 2012

    Though WARN seems little unusual, What is the harm in having WARN?

    This could be very handy in rare scenarios where the automation engineer does not want to pass/fail the test, like the current situation we have in our project. We have a keyword that is partially implemented and it will take more time to complete it, however the test designers can still use the test case in their tests to verify if it is failing. If it executes successfully I not want to pass/fail it, but want to distinguish it with a different test status.

    One more reason for suggesting WARN is - all leading commercial automation tools have the capability of reporting Pass/Fail/Warn, we may have many more test status too. But I fee three of these are critical.

  5. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by @pekkaklarck on 23 Aug 2012

    @⁠aravindh9, using non-critical failures ought to work fine in your case. In practice you can tag the test e.g. with not-ready tag, let it fail at the point where the keyword is not ready, and run tests with --NonCritical not-ready command line option.

  6. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by counseling.mr on 23 Aug 2012

    I think this is still a workaround. If his incomplete keyword is used in many tests, he must tag all and every test and then untag when ready, while he could simply raise a warning into the keyword until it is ready...

  7. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by aravindh9 on 27 Aug 2012

    That is exactly the point, this is only a work around. But, how can I execute the test cases that are partially complete (Which should not be Pass/Fail) along with completed ones (where the result will be Pass or Fail), and distinguish the results.

    I understand that in general, in an examination the result will be either Pass or Fail, however we can also have an outcome 'Absent' which makes the result more realistic. Your views please....

  8. spooning commented on Jun 29, 2014

    @spooning
    ContributorAuthor

    Originally submitted to Google Code by @pekkaklarck on 27 Aug 2012

    1. If tagging not ready tests is too much work, that can be done dynamically with 'Set Tags' keyword before failing the test. Allowing libs to alter tags directly using exceptions somehow might be a nice enhancement.

    2. Allowed and not allowed failures can be differentiated in all/critical tests. Further classification can be done freely with tags.!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions