I am developing Automated web tests using Selenium WebDriver on Java from Eclipse and when I run my testes from java class or from testng.xml file its working and showing me the results.xml image and results image
Now I want to run testng tests from code upon an event handler, but first I decided to check if testng working from command line or not then I got the following:
'testng' is not recognized as an internal or external command, operable
program or batch file.
Following are the details(configurations) of my laptop. Windows 7 Ultimate Java ver Eclipse release Selenium ver TestNG ver User Variables > Path Value=C:\Program Files\Java\jdk-10.0.1\bin; C:\Users\Ziaullah.PLUMSMEDIA.p2\pool\plugins