Natts
2016-01-19 15:27:22 UTC
Hi,
I have the following testng.xml
<suite name=Automation Test" parallel="methods" thread-count="5" >
<parameter name="webSite" value="US_PROD" />
<test name="Sanity_test" preserve-order="true">
<parameter name="browser" value="chrome" />
<parameter name="browserVersion" value="*" />
<classes>
<class name = "com.automation.ImageGallery">
<methods>
<include name = "ListImages" />
</methods>
</class>
</classes>
</test>
</suite>
As expected only this method executes because of the include tag even
though there are other methods available. However if testng is not able to
find this method defined include tag within the class then its executing
all methods in the class and all other classes defined in the test script.
How to avoid this behavior?
Natts
I have the following testng.xml
<suite name=Automation Test" parallel="methods" thread-count="5" >
<parameter name="webSite" value="US_PROD" />
<test name="Sanity_test" preserve-order="true">
<parameter name="browser" value="chrome" />
<parameter name="browserVersion" value="*" />
<classes>
<class name = "com.automation.ImageGallery">
<methods>
<include name = "ListImages" />
</methods>
</class>
</classes>
</test>
</suite>
As expected only this method executes because of the include tag even
though there are other methods available. However if testng is not able to
find this method defined include tag within the class then its executing
all methods in the class and all other classes defined in the test script.
How to avoid this behavior?
Natts
--
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "testng-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-dev+***@googlegroups.com.
To post to this group, send email to testng-***@googlegroups.com.
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.