Tests skipping at runtime

105 views
Skip to first unread message

gwendal

unread,
Mar 14, 2012, 2:27:54 PM3/14/12
to testng-users
Hi all,
We need to report tests as Skipped because sometimes our data to
execute the test is missing.
We tried with reporter.setTestResult(ItestResult SKIP) but it is not
working.

Example:

@test dataProvider...
If dataprovider.result.equals(myExpectedData) then
Do...
Else
SetTestToSkipInReporter

Regards

Cédric Beust ♔

unread,
Mar 14, 2012, 3:34:47 PM3/14/12
to testng...@googlegroups.com
Throw a SkipException.

-- 
Cédric





--
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.


gwendal

unread,
Mar 14, 2012, 4:22:24 PM3/14/12
to testng-users
Thanks Cédric,

I thought a better (another) way may be used !

Thanks

On 14 mar, 20:34, Cédric Beust ♔ <ced...@beust.com> wrote:
> Throw a SkipException.
>
> --
> Cédric
>
Reply all
Reply to author
Forward
0 new messages