raja2
8 years agoContributor
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 creat...
- 8 years ago
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.