Both methods should be annotated with @Test to participate in dependency resolution.
Yevhen
Basically I have a test method depending on another method.
When reading Cédric's book about dependent testing [Next Generation Java Testing, p112] I got the impression that TestNG automatically would add the dependency methods,
"Test isolation is not compromised. Even though some of our test
methods depend on others to run correctly, TestNG calculates those
automatically, thereby allowing us to ask TestNG to “run this single
test method” and have this executed without having to trace all the
dependencies needed."
However I get an TestNGException telling me that some methods needed are not included in my xml file.
"dependingTest() is depending on method public void dependOnTest(), which is not annotated with @Test or not included."
Could it be an error from my side or is this the expected behavior?
Is there any other way to make sure these methods are included?
I looked into adding them manually in a IMethodInterceptor, but I don't know what I need to create a MethodInstance object (like the instance parameter for example).
Regards
Petter
--
You received this message because you are subscribed to the Google Groups "testng-users" group.
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?hl=en.
For more options, visit
https://groups.google.com/groups/opt_out.