--
Mehul N. Sanghvi
email: mehul....@gmail.com
Is it possible to exclude groups at the suite level ?
Cedric,
Let me see if I can clarify it. Here is a sample of what we
have now in our testNG.xml:
<suite name="Checkins" verbose="3" >
<!-- Since test input parameters cannot be defined on per-class
basis, only at the Suite and the Test level,
we define Tests elements and thus avoid parameter name clashing.
-->
<test name="Core" preserve-order="true">
<groups>
<run>
<exclude name="non-standard"/>
<exclude name="performance"/>
<exclude name="functional"/>
</run>
</groups>
<classes>
<!-- does not take wild cards (would be nice to have that) -->
<class name="com.fubar.utils.TestTimestamp"/>
<class name="com.fubar.utils.TestUtils"/>
<class name="com.fubar.datamodel.TestSyncObject"/>
<class name="com.fubar.datamodel.TestArrayList"/>
<class name="com.fubar.datamodel.TestHashMapList"/>
<class name="com.fubar.datamodel.TestLinkedHashMapList"/>
<class name="com.fubar.datamodel.TestSortedArrayList"/>
</classes>
</test>
<test name="Personnel" preserve-order="true">
<groups>
<run>
<exclude name="non-standard"/>
<exclude name="performance"/>
<exclude name="functional"/>
</run>
</groups>
<classes>
<!-- does not take wild cards -->
<class name="com.fubar.accessmodel.TestAccess"/>
</classes>
</test>
</suite>
If you see above, the <groups> that are excluded are the same and are
repeated over and over again. It would be nice to be able to do that
sort of thing at the suite level:
<suite>
<groups>
<exclude name="non-standard" />
<exclude name="performance" />
<exclude name="functional" />
</groups>
<test ........ >
</test>
<test ..........>
</test>
</suite>
This makes it easier to have a "default" group that all tests belong
to. I may be getting my terminology wrong as I just
started with TestNG. More then that I'm acting as the gateway for
other people within the development group so there is
bound to be something lost in the translation, but hope this helps.
Essentially I'm trying to get a framework on top of TestNG that allows
the developers to write and run tests/groups of tests
much more easily and simply. In order to do that, any @Test notation
implies a default group called "check-in" otherwise
the test has an explicitly named group. I don't see a way to run a
suite of tests and say "for this suite I want you to use only
tests that belong to the default group, not any of the explicityl
named groups like "non-standard" "performance" "functional".
--
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.
<suite name="SingleSuite" verbose="2" parallel="false" thread-count="4"
data-provider-thread-count="3">
<groups>
<run>
<include name="a" />
</run>
</groups>
<parameter name="n" value="42" />
Cedric,
Thank you for the very quick response. I will talk to my
colleague and see about
using the beta. This would be pretty awesome. One other thing that
would be nice would
be the ability to do preserve-order=true at the <suite> level as well.
Is this possible in the
new beta ?
cheers,
mehul
Cedric,
Thank you for the very quick response. I will talk to my
colleague and see about using the beta. This would be pretty awesome. One other thing that
would be nice would be the ability to do preserve-order=true at the <suite> level as well.
Is this possible in the new beta ?
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 https://groups.google.com/group/testng-users.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "testng-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/testng-users/a504gCYpT28/unsubscribe.
To unsubscribe from this group and all its topics, send an email to testng-users...@googlegroups.com.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="GroupSuite" parallel="false" verbose="3">
<groups>
<run>
<include name="a"/>
</run>
</groups>
<test name="GroupBTest" verbose="2">
<groups>
<run>
<include name="b"/>
</run>
</groups>
<packages>
<package name="organized.chaos.testng.foo"/>
</packages>
</test>
</suite>