Can I run TestNG using Command Prompt?

0 votes
I want to run TestNG using command prompt. How can I do it?
Jun 19 in Selenium by Himanshi
36 views

1 answer to this question.

0 votes

Hey Himanshi, you can run testNG with command prompt by using following line of commands:

C:\Users\Admin\Desktop\Ruksar\workspace\TestNG

set classpath=C:\Users\Admin\Desktop\Ruksar\workspace\TestNG\bin;C:\Users\Admin\Desktop\Ruksar\workspace\TestNG\lib\*
 
java org.testng.TestNG C:\Users\Admin\Desktop\Ruksar\workspace\TestNG\testng.xml
answered Jun 19 by Abha
• 19,440 points

Related Questions In Selenium

0 votes
1 answer

How can I download the *.jar file from http:// seleniumhq.org using selenium WebDriver?

For Selenium Standalone Server use this: profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/java-archive"); and ...READ MORE

answered Apr 9, 2018 in Selenium by Martin
• 4,220 points
409 views
0 votes
1 answer

How can I implement Selenium using C#?

Reference https://www.seleniumhq.org/docs/03_webdriver.jsp#the-5-minute-getting-started-guide using OpenQA.Selenium.Firefox; using OpenQA.Selenium; class GoogleSuggest { ...READ MORE

answered Apr 9, 2018 in Selenium by Neville
39 views
+4 votes
1 answer

How can I configure Eclipse for using Selenium?

Follow the following steps to configure your ...READ MORE

answered Dec 12, 2018 in Selenium by Nabarupa
205 views
0 votes
1 answer

What is the role of TestNG & JUnit frameworks in Selenium?

Well TestNG and JUnit are test frameworks ...READ MORE

answered Apr 18, 2018 in Selenium by king_kenny
• 3,610 points
216 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,050 points
415 views
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

This is not a very important concept ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,610 points
1,541 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How can I send some data to a Prompt Alert box using Selenium Webdriver?

Hey Abhishek, you can use sendKeys() method ...READ MORE

answered Jul 2 in Selenium by Abha
• 19,440 points
41 views