selenium - run parallel classes in parallel tests -
to reduce run time of tests want run tests in parallel. have few classes can't run in parallel each other.
lets have 2 types of classes: - parallel classes - contains class1, class2 - notparallel classes - contains class3, class4 want run class1 , class2 in parallel class3 , class4 (but lass3 not run in parallel class4)
i tried this:
<suite name="sanity" thread-count="2" parallel="tests"> <test name="parallel" preserve-order="true" parallel="classes"> <classes> <class name="class1"/> <class name="class2"/> </classes> </test> <test name="notparallel" preserve-order="true"> <classes> <class name="class3"/> <class name="class4"/> </classes> </test> </suite>
i'm running both tests in parallel first test have parallelism class inside it.
i tried search in testng documentation if have option add parallel="classes" test. don't see there, working.
does used option parallel test classes (and not suite)
do see issue or case not work?
thanks
yes can put parallel
in <test>
block. here dtd.
you establish <suite>
of suites suit needs follows;
<suite ...> <suite-files> <suite-file path="a.xml" /> <suite-file path="b.xml" /> <suite-files> </suite>
Comments
Post a Comment