How to create a executable jar file for TestNG and the runnnig point should be the Xml file

0 votes
I am currently working on the selenium web driver and testNG on Eclipse IDE. I usually run the test from the XML file that I have created which runs all the methods in the eclipse.

I want to create a simple executable jar which should do the same i.e its running point should be the XML file so that each test is executed .

How to go further with this?
Aug 24, 2018 in Selenium by Sahiti
• 6,320 points
4,234 views

1 answer to this question.

0 votes

Use Eclipse Export Wizard. While exporting, select "Create Runnable Jar" and select the class which is entry point (which contains main method) of your project.

This class will have main method which will read XML and execute the testcases

answered Aug 24, 2018 by Meci Matt
• 9,460 points

Related Questions In Selenium

0 votes
1 answer

How to pass parameter through testng.xml file to a test case in Selenium Webdriver?

Hello Revathi, to pass parameter through testng.xml ...READ MORE

answered Jun 12, 2019 in Selenium by Abha
• 27,930 points
3,067 views
0 votes
1 answer
+1 vote
1 answer
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,565 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,570 views
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
841 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
2,615 views
0 votes
1 answer
0 votes
1 answer