Generating TestNG.xml in Intelij

60 views
Skip to first unread message

Arun Gupta

unread,
Sep 19, 2016, 9:10:20 AM9/19/16
to Selenium Users
Hello,

I know that we can manually create the TestNG.xml file to run our tests, but in eclipse we have a very handy option to convert to xml, which very quickly generates the xml file I researched a lot but would not find a option to do the same on Intellij. Can someone please help me in finding a way so I achieve the same in Intellij.

Best Regards,
Arun

 

Shawn McCarthy

unread,
Sep 19, 2016, 11:57:24 AM9/19/16
to Selenium Users
You may find better luck in an IntelliJ forum, or even TestNG.

Libor Bitala

unread,
Sep 21, 2016, 10:05:23 AM9/21/16
to Selenium Users
Hi Arun,

when you run test in Intellig, testNG xml file is always created. You can see the path to this file in Intellij console.

For example:

[TestNG] Running:
  C:\Users\Libor\.IdeaIC2016.2\system\temp-testng-customsuite.xml

So you just start and stop the test and copy this file to your folder.

This probably is not the most comfortable way, but it works fine for me ;-)
Reply all
Reply to author
Forward
0 new messages