How to make a runnable jar file with Selenium and TestNG

Hi I developed some selenium scripts using  the Hybrid automation framework which is available in this site. I have used the TestNG and Selenium web-driver . Till now for testing purpose i am running from eclipse which is working fine, but now i have to make it as build or package so that it should run without help of eclipse . So how can i achieve this ?

The following the main method i added in the suite_framework class

public static void main(String[] args) {

TestListenerAdapter tla = new TestListenerAdapter();

TestNG testng = new TestNG();

testng.setTestClasses(new Class[] { Suite1_Framework.class });



and  I created a jar file using export in eclipse but when i run its giving me the following error

How to make a  runnable jar file with Selenium and TestNG

Train Asked on November 6, 2014 in Selenium WebDriver.

Hi MallikThough your screen shot is not clear what i can see is that there is some ConfigurationFailure , I think there is some problem with your configuration code and it is throwing some error/exception due to which all test methods are skippedTry to fix that

on November 7, 2014.
Add Comment
  • 1 Answer(s)

    Pls check your file it seems maxBackUpIndex and maxFileSize is not have values.

    Train Answered on November 17, 2014.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.