see BaseBaliTest.java Update paths accordingly before running test locally.
/* * checking TestExecContext presence, otherwise creates it looking at local parameters */
public static void init(Class testClass) throws Exception {
log.info("Check text exec context in thread: "+Thread.currentThread().getName());
TestExecContext testExecContext = TestExecContextThreadLocal.getTestExecContext();
// if test is not started from Bali - then suite/testExecContext is not initialized
if (testExecContext == null){
// depended to resources
System.setProperty("webdriver.chrome.driver", "C:\\selenium\\chromedriver.exe");
System.setProperty("webdriver.firefox.profile", "default");
LocalRunBaliContext localBaliRunContext = new LocalRunBaliContext();
// reports and artefacts output dir
String resultOutputDir = (System.getProperty("test.report.dir") != null) ? System.getProperty("test.report.dir") : "target/report/"; localBaliRunContext.setResultDir(resultOutputDir);
// options dir
localBaliRunContext.setPropertiesDir("C:/projects/Bali/conf/options/");
// which properties to use in test ? localBaliRunContext.setOptions("ENV_LOCAL");
localBaliRunContext.setLocalClass(testClass.getCanonicalName());
// add here resources You plan to get using getResources(...) API
// set browser type, default - CHROME
String browserType = System.getProperty("browser") != null ? System.getProperty("browser") : Browser.CHROME;
localBaliRunContext.getLocalResources().add(new Browser(browserType,"",false));
// create TestExecContext and set it to TestExecContextThreadLocal
Bali.activateLocalBaliRunContext(localBaliRunContext);
}
}