0

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

Ziaullah
  • 257
  • 6
  • 10
  • Possible duplicate of [How to run TestNG from command line](https://stackoverflow.com/questions/11896791/how-to-run-testng-from-command-line) – Rcordoval Jun 28 '18 at 06:23
  • How did you configure testng ? – cruisepandey Jun 28 '18 at 06:29
  • I have installed testng by downloading from Eclipse Marketplace and adding the TestNG Libraries in Java Build Path (its working from Eclipse, but having problem from command line as testng not recognized shown. – Ziaullah Jun 28 '18 at 06:56
  • http://www.seleniumeasy.com/testng-tutorials/how-to-run-testng-xml-webdriver-tests-from-command-line – Kushal Bhalaik Jun 28 '18 at 11:18

0 Answers0