Forum Discussion

MHolmqvist's avatar
MHolmqvist
Occasional Contributor
11 years ago

[Reg] New test case result: Skipped

Hey,

In testNG they have a nice feature where a test case result can be set to "skipped" (with color yellow).
In our test cases (>300) we have some checks in the setup that will see if there is test data for a specific test case.
If there is no test data the test case result will currently be set to failed. I would like to set it to skipped instead, so we can save time when analysing the test report.

/magnus

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    This has been created as a feature enhancement in our internal system as SOAP-2100. Thanks for submitting.



    Regards,
    Marcus
    SmartBear Support
  • Just an FYI (this may help for a temporary workaround):

    There is already a TestCase result called "CANCELLED". You can force this result from a Groovy Script:
    testRunner.cancel("My Reason For Skipping This Test Case")

    You can see these results by using the following code in a TearDown Script:
    for ( testResult in testRunner.results ) {
    result = testResult.getStatus().toString();
    log.info result
    }
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    Thanks for posting the script. I will add as a comment to the enhancement request.



    Regards,
    Marcus
    SmartBear Support