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
845 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,910 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,910 points
384 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
• 10,310 points
2,152 views
0 votes
1 answer
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,710 points
689 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,510 points
2,850 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,242 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, 2019 in Selenium by Abha
• 27,910 points
1,511 views