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 darklord
• 6,140 points
1,198 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,400 points

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
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
276 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,590 points
193 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,130 points
639 views
0 votes
1 answer
0 votes
1 answer