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

0
0

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.

Now 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 .

I am trying hard on this. Please give me some advice on how to go further with it

  • You must to post comments
0
0

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

  • You must to post comments
Showing 1 result
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Website