return link;
}
public String testContents() {
if (testPath != null && groupDir == null) {
SeleniumTestExporter exporter = null;
String format = context().request().stringFormValueForKey("format");
if (format != null) {
exporter = SeleniumImporterExporterFactory.instance().findExporterByName(format);
if (exporter == null) {
throw new RuntimeException("Unsupported output format specified ('" + format + "')");
}
} else {
exporter = SeleniumImporterExporterFactory.instance().findExporterByName(DEFAULT_EXPORTER_NAME);
assert(exporter != null);
}
try {
SeleniumTest test = new SeleniumTestFileProcessor(testFile, context().request().formValueForKey("noFilters") == null ? testFilter() : null).process();
return exporter.process(test);
} catch (Exception e) {
log.debug(ERXUtilities.stackTrace(e));
throw new RuntimeException("Test export failed", e);
}
} else {