How to Execute Testng Suite (Testng.xml) with QA complete without TestComplete?
Hi Team,
I want to execute TestNG Suite (TestNG.xml) file from QA complete without TestComplete. Please find the attached screenshot.
- Is it possible to run the testng suite ?
- I have created a testng suite with "n" number of java classes in it
- How can i execute such suite.xml in QA complete ?
- Can i execute directly testng suite.xml without mentioning all the classes in it in Automation ?
Can i execute testng suite.xml file from Custom Args: ?
Thanks in Advance !
Regards,
Poovaraj
Hi Poovaraj,
Thank you for your post!
When you specify a Test Class in QAC Automation, Test Agent generates a command line like this:
java org.testng.TestNG -testclass MyPack.MyClass
To run a TestSuite you need the command line like this:
java org.testng.TestNG testng1.xml
So, don't specify the Test Class (leave this field empty) and fill the Custom Args field with the name of your Test Suite. Please see a sample screenshot attached.
Workaround: user can configure a Maven project to run a TestNG test suite (http://testng.org/doc/maven.html), and then run this Maven project from QAC.