[testng-dev] TestNG executing all Methods when method in include tag not found in script

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[testng-dev] TestNG executing all Methods when method in include tag not found in script

Natts
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

--
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 [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/testng-dev.
For more options, visit https://groups.google.com/d/optout.