--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
I second the addition of "warning" states. I have test cases that check some web pages (Selenium) that are formatting or content, but don't affect functionality. I don't want to pass them, but I don't want to fail them and cause test execution to stop.We have a rudimentary way to do "soft asserts", but it would be nice to have a more clean way to mark a test result as a "warning" while still allowing execution to continue.
Maybe the test state isn't the issue, but a way to tell TestNG that if the specified @Test fails, to allow execution to continue, such as:
@Test(haltOnFailure = false)
On Fri, Jul 6, 2012 at 9:30 AM, Cédric Beust ♔ <ced...@beust.com> wrote:
Hi Benjamin,Adding a status has a lot of repercussions on the whole process so the new status needs to be really important, and I'm not convinced that "had warnings" is that useful (I don't think I've ever needed it). Maybe you could use Reporter.log() to give the warnings and check the reports at the end to see if any warnings were emitted?
--Cédric
On Fri, Jul 6, 2012 at 8:02 AM, Benjamin <b.soel...@googlemail.com> wrote:
I'm sorry if i use the wrong terminology ;-)
TestNG offers three different Test Resultes (Failed (red),
Success(green) and Skipped (Yellow)).
Is it possible to add a fourth one: Test ended with Warnings(Orange),
that is also visible in the TestNG Eclipse Plugin?
Testcases ended with Warnings should be handeld like in the "verify"-
approach. So all other tests could continue running and it doesn't
take any influences on the test. It is just a reminder for the tester.
Would this be possible to integrate?
Thanks for your reply!
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testng-users?hl=en.
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To post to this group, send email to testng...@googlegroups.com.
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
--Cédric
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
Before i started working in my Department, they just Comment failing
Testcases out of the Tests.
I run into this scenario all the time, and the solution is to split out your tests. This can be done in 2 ways.
I spend most of my efforts writing system level tests with TestNG, from a QA perspective, and the use of a "warning" is just muddying the waters. While testing can be complex, the results should be straight forward. I like the way TestNG has implemented this:
(I'm not saying that a "warning status will never be needed", but i have yet to find a scenario in 12 years of testing where it was needed.)
Just my 2 cents, Thanks.
-Jason-
To unsubscribe from this group, send email to testng-users+unsubscribe@googlegroups.com.
--Cédric
To unsubscribe from this group, send email to testng-users...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To post to this group, send email to testng...@googlegroups.com.
Visit this group at http://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/groups/opt_out.