Can I run TestNG using Command Prompt?

0 votes
I want to run TestNG using command prompt. How can I do it?
Jun 19, 2019 in Selenium by Himanshi
1,397 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, 2019 by Abha
• 27,930 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

How can I run/debug pytest script using eclipse?

Hi Amish, to run/debug pytest scripts in ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 27,930 points
572 views
+1 vote
1 answer

How can I automate the process of adding iPhone to cart in Flipkart using Selenium(java),Page Object Model and TestNG? Also validate if product is added and available in cart?

Hey check this https://www.edureka.co/community/47160/automate-purchase-adding-book-cart-flipkart-using-selenium? It deals with a similar ...READ MORE

answered Jan 13 in Selenium by Karan
• 16,040 points
2,600 views
0 votes
1 answer
0 votes
2 answers

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

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

answered Sep 4 in Selenium by Sri
• 2,970 points
832 views
0 votes
2 answers

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,510 points
3,522 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,710 points
2,445 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,525 views
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, 2019 in Selenium by Abha
• 27,930 points
2,337 views