Ask a Question

TestNG/Selenium - Configure command line params

New Contributor

TestNG/Selenium - Configure command line params


My project uses a bunch of TestNG +Selenium. I've created custom listener(extends TestListenerAdapter) for improved logging in the project. Listener class name is added to testng.xml. In Eclipse IDE it works fine.

TestComplete ignores testng.xml during tests running and creates its own commad like:
java.exe -classpath ...jar...; org.testng.TestNG -testclass tests.general.Checking -log 2

To use my custom listener in this command the parameter -listener should be added, something like: 

java.exe -classpath ...jar...; org.testng.TestNG -testclass tests.general.Checking -log 2 -listener general.CustomListener

How can I configure TestComplete to use my custom listener?


Esteemed Contributor

 I don't believe that's possible.  The command line information is embedded within the tool and not accessible externally.

Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available


Showing results for 
Search instead for 
Did you mean: