top of page

Runnable jar file

1. Create new class with main

1.1 Add the code

package TestCase;

 

import org.junit.runner.JUnitCore;

import org.junit.runner.RunWith;

import org.junit.runners.Suite;

 

@RunWith(Suite.class)

public class testRunner 

{

 

public static void main(String[] args) 

{

      JUnitCore.main("TestCase.Sanity");

      

}

 

}

2. Create a configuration 

3. Click run

The test supposed to run.

3. Jur file

5. Run jar file

Click on the jar file and the test  supposed to run. 

6. Rum from bat file (windows only) 

Selenium - izselenium aoutomation tool

054-8059589

  • White Facebook Icon
  • White Twitter Icon
  • White Google+ Icon
  • White YouTube Icon

© 2017 by izselenium

bottom of page