String port = "9999";
String threads = "1";
String logDir = "D:/temp/logs/"; // relative paths will be resolved relative to userdata dir.
String suiteName = "scripts/demo/integration.sah";
TestRunner testRunner = new TestRunner(suiteName, browserType, base, sahiHost, port, threads);
HashMap<String, Object> variableHashMap = new HashMap<String, Object>();
variableHashMap.put("$user", "test");
variableHashMap.put("$pwd", "secret");
testRunner.setInitJS(variableHashMap);
testRunner.addReport(new Report("tm6", logDir));
String status = testRunner.execute();
System.out.println(status);
assertEquals("SUCCESS", status);
System.out.println(Utils.readFileAsString("D:/temp/logs/integration.xml"));