Testng Mixed mode

63 views
Skip to first unread message

Sasi kumar

unread,
May 14, 2013, 12:55:49 AM5/14/13
to testng...@googlegroups.com
Is there option to run mixed mode from code that is instead of calling it in ant? ,directly in xml?


My usecase is , i have to run junit3,junit4 cases in testing same time.

Now iam generating xml dynamically from code like ,

 XmlTest test = new XmlTest(suite);
 test.setName(testCase);
 test.setJunit(true);


Matthias Rothe

unread,
May 14, 2013, 7:54:42 AM5/14/13
to testng...@googlegroups.com
Hi Sasi,

to execute JUnit tests with TestNG you've got a JUnit attribute on both the suite and the test level within the testng.xml file. Set it to true on either and all test classes in the suite or test will be executed as JUnit tests.

I hope this helps!

Kind regards,
Matt


----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages