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?
Solved! Go to Solution.
I don't believe that's possible. The command line information is embedded within the tool and not accessible externally.
[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
I found solution, for target class should be plased annotaion, likes this: