mardi 23 juin 2020

Execute jar file before tests

I have a jar file with a small program, when i execute this file spring server runs. I need to write some automation tests for this program.

So, my question is how to execute this file.jar automatically before test? (My goal is to run server automatically)

@Before
public void before() {
    System.setProperty("webdriver.chrome.driver", "src/test/resources/chromedriver/chromedriver");
    driver = new ChromeDriver();
}

Aucun commentaire:

Enregistrer un commentaire