My TestNG configuration below is not working:
<test verbose="2" name="JavaScript Layer Tests" preserve-order="true" parallel="false">
<packages>
<package name="com.bla.foo"/>
<package name="com.bla.bar/>
</packages>
</test>
I basically want to run the TestNG
classes in those packages in order and with no parallelism. Each classes' methods use the @dependsOnMethods
.
The reason here is that I am using Selenium
and I need to have only one browser opened at a time.
If I switch TestNG
's xml file to list all the classes then it works fine, but that makes adding new classes require changing the xml file.
Is there a way to get this to work for packages? I tried setting parallel to true and limiting to 1 thread but that too didn't work.