RemoteControlLauncher.usage("Can't find HTML Suite file:" + suiteFile.getAbsolutePath());
System.exit(1);
}
addNewStaticContent(suiteFile.getParentFile());
String startURL = getRequiredSystemProperty("htmlSuite.startURL");
HTMLLauncher launcher = new HTMLLauncher(this);
String resultFilePath = getRequiredSystemProperty("htmlSuite.resultFilePath");
File resultFile = new File(resultFilePath);
resultFile.createNewFile();
if (!resultFile.canWrite()) {
RemoteControlLauncher.usage("can't write to result file " + resultFilePath);
System.exit(1);
}
result = launcher.runHTMLSuite(getRequiredSystemProperty("htmlSuite.browserString"), startURL, suiteFile, resultFile,
configuration.getTimeoutInSeconds(), (!configuration.isSingleWindow()));
if (!"PASSED".equals(result)) {
System.err.println("Tests failed, see result file for details: " + resultFile.getAbsolutePath());
System.exit(1);