Running testng mixed mode -
is there option run mixed mode code instead of calling in ant? ,directly in xml?
http://testng.org/doc/migrating.html
my usecase , have run junit3,junit4 cases in testing same time.
now iam generating xml dynamically code ,
xmltest test = new xmltest(suite); test.setname(testcase); test.setjunit(true);
you can use mixed mode in ant, or set property testng in code.
while using ant support in ant task "-mixed" option. can find more details reading history of implementation of feature, see http://wiki.netbeans.org/wiki/index.php?title=testng_mixedmode
while set code, flow below:
// create testng instance run suite testng tng = new testng(); // want run both junit , testng tests tng.setmixed(true); tng.setxmlsuites(suites); // verbose mode print summary tng.setverbose(1); tng.run();
another alternative solution i'm aware of 1 you're using. set junit true in code or in section in testng.xml.
Comments
Post a Comment