How to make Java executable Jar file of WebDriver project

徘徊边缘 提交于 2019-12-02 06:00:59

A very convenient tool to create a fully runnable jar, that I use for my projects is the FatJAR plugin for eclipse.

It can collect all the required classes into a single jar so you can deploy only one file. Of course you don't have to do it this way, you can choose what it should include and then it compiles the JAR from your selected libraries.

just simple, call the all required classes in "Main method" and right click on the Src folder in the eclipse then, click on export the main method in which you would call the required classes.

nikitozeg

check this http://university.utest.com/selenium-basics-part-4-create-java-project-add-recorded-test-case-run-project/

then add in your class

 public static void main(String[] args) throws Exception {
        JUnitCore.main(
                "qa.vozovoz.ru.TERMTERMSMScode");
    }

then make a jar file

and then start it in cmd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!