if (p == null || p.isEmpty()) {
throw new RuntimeException("Failed to load config properties file");
}
QueryScenario set = ClassFactory.createQueryScenario("testscenario");
_instance.setProperty(XMLQueryReader.PROP_QUERY_FILES_ROOT_DIR, new File("src/main/resources/").getAbsolutePath() );
try {
Iterator<String> it = set.getQuerySetIDs().iterator();
while (it.hasNext()) {
String querySetID = it.next();
List<QueryTest> queries = set.getQueries(querySetID);
if (queries.size() == 0l) {
System.out.println("Failed, didn't load any queries " );
}
ExpectedResults er = set.getExpectedResults(querySetID);
//new XMLExpectedResults(_instance.getProperties(), querySetID);
ResultsGenerator gr = set.getResultsGenerator();
//new XMLGenerateResults(_instance.getProperties(), "testname", set.getOutputDirectory());
Iterator<QueryTest> qIt = queries.iterator();
while(qIt.hasNext()) {
QueryTest q = qIt.next();