for (String suiteId : index.getSuiteKeys()) { SuiteEntry suite = index.getSuite(suiteId); System.out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName()); System.out.println(" (" + suiteId + ")"); System.out.println(suite.getTitle()); String desc = suite.getDescription(); if (desc != null) { System.out.println(desc); String link = suite.getLink(); if (link != null) { System.out.println("See " + link);
defaultResultName = suite.getDefaultResult(); defaultResult = defaultResultName.equals("BestPractice") ? BEST_PRACTICE : PASS; Document form = suite.getForm(); if (form != null) { Document results = (Document) form(form, suite.getId()); for (Element value : DomUtils .getElementsByTagName(results, "value")) { String name = suite.getPrefix() + ":" + suite.getLocalName(); out.println("Testing suite " + name + " in " + getMode() + " with defaultResult of " + defaultResultName + " ..."); int result = execute_test(suite.getStartingTest().toString(), kvps, null); recordTestResult.detailTestPath(); reTestCount = 0; out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName() + " "); if (result == TECore.FAIL || result == TECore.INHERITED_FAILURE) {
Document log = LogUtils.readLog(opts.getLogDir(), sessionId); if (log == null) { execute_suite(suite.getId(), params); log = LogUtils.readLog(opts.getLogDir(), sessionId); engine.getBuilder(), log); TestEntry test = index.getTest(testId); if (suite.getStartingTest().equals(test.getQName())) { ArrayList<String> kvps = new ArrayList<String>(); kvps.addAll(baseParams); + suite.getPrefix() + ":" + suite.getLocalName() + " "); String summary = "Not complete"; if ("yes".equals(baseTest.getAttribute("complete"))) {
public void recordingStartClause(SuiteEntry suite) throws Exception{ if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { //Create a document builder for storing the data. TECore.icFactoryClause = DocumentBuilderFactory.newInstance(); // Fortify Mod: prevent external entity injection TECore.icFactoryClause.setExpandEntityReferences(false); try { TECore.icBuilderClause = TECore.icFactoryClause.newDocumentBuilder(); // Create a document for storing the xml data TECore.docClause = TECore.icBuilder.newDocument(); TECore.mainRootElementClause = TECore.docClause.createElement(Constants.Requests); //Append the data in previous saved data. TECore.docClause.appendChild(TECore.mainRootElementClause); } catch (Exception e) { System.out.println(ERROR_ON__RECORDING_AT_STARTING_ + e.toString()); } } } /**
dependencies.add(file); } else if (name.equals("suite")) { SuiteEntry se = new SuiteEntry(el); suiteMap.put(se.getId(), se); } else if (name.equals("profile")) { ProfileEntry pe = new ProfileEntry(el);
suiteName = se.getTitle(); TEClassLoader defaultLoader = new TEClassLoader(null); Engine engine = new Engine(masterIndex,
defaultResultName = suite.getDefaultResult(); defaultResult = defaultResultName.equals("BestPractice") ? BEST_PRACTICE : PASS; Document form = suite.getForm(); if (form != null) { Document results = (Document) form(form, suite.getId()); for (Element value : DomUtils .getElementsByTagName(results, "value")) { String name = suite.getPrefix() + ":" + suite.getLocalName(); out.println("Testing suite " + name + " in " + getMode() + " with defaultResult of " + defaultResultName + " ..."); int result = execute_test(suite.getStartingTest().toString(), kvps, null); recordTestResult.detailTestPath(); reTestCount = 0; out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName() + " "); if (result == TECore.FAIL || result == TECore.INHERITED_FAILURE) {
Document log = LogUtils.readLog(opts.getLogDir(), sessionId); if (log == null) { execute_suite(suite.getId(), params); log = LogUtils.readLog(opts.getLogDir(), sessionId); engine.getBuilder(), log); TestEntry test = index.getTest(testId); if (suite.getStartingTest().equals(test.getQName())) { ArrayList<String> kvps = new ArrayList<String>(); kvps.addAll(baseParams); + suite.getPrefix() + ":" + suite.getLocalName() + " "); String summary = "Not complete"; if ("yes".equals(baseTest.getAttribute("complete"))) {
public void recordingStartClause(SuiteEntry suite) throws Exception{ if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { //Create a document builder for storing the data. TECore.icFactoryClause = DocumentBuilderFactory.newInstance(); // Fortify Mod: prevent external entity injection TECore.icFactoryClause.setExpandEntityReferences(false); try { TECore.icBuilderClause = TECore.icFactoryClause.newDocumentBuilder(); // Create a document for storing the xml data TECore.docClause = TECore.icBuilder.newDocument(); TECore.mainRootElementClause = TECore.docClause.createElement(Constants.Requests); //Append the data in previous saved data. TECore.docClause.appendChild(TECore.mainRootElementClause); } catch (Exception e) { System.out.println(ERROR_ON__RECORDING_AT_STARTING_ + e.toString()); } } } /**
dependencies.add(file); } else if (name.equals("suite")) { SuiteEntry se = new SuiteEntry(el); suiteMap.put(se.getId(), se); } else if (name.equals("profile")) { ProfileEntry pe = new ProfileEntry(el);
suiteName = se.getTitle(); TEClassLoader defaultLoader = new TEClassLoader(null); Engine engine = new Engine(masterIndex,
for (String suiteId : index.getSuiteKeys()) { SuiteEntry suite = index.getSuite(suiteId); System.out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName()); System.out.println(" (" + suiteId + ")"); System.out.println(suite.getTitle()); String desc = suite.getDescription(); if (desc != null) { System.out.println(desc); String link = suite.getLink(); if (link != null) { System.out.println("See " + link);
/** * Check Test recording ON or OFF if ON then create a builder for storing the * log in single file. * @param suite * @throws Exception */ public void recordingStartCheck(SuiteEntry suite) throws Exception { // Check suite variable is not empty and get suite local name. if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { //Create a document builder for storing the data. TECore.icFactory = DocumentBuilderFactory.newInstance(); // Fortify Mod: prevent external entity injection TECore.icFactory.setExpandEntityReferences(false); try { TECore.icBuilder = TECore.icFactory.newDocumentBuilder(); // Create a document for storing the xml data TECore.doc = TECore.icBuilder.newDocument(); TECore.mainRootElement = TECore.doc.createElement(Constants.Requests); //Append the data in previous saved data. TECore.doc.appendChild(TECore.mainRootElement); } catch (Exception e) { System.out.println(ERROR_ON__RECORDING_AT_STARTING_ + e.toString()); } } }
/** * Check Test recording ON or OFF if ON then create a builder for storing the * log in single file. * @param suite * @throws Exception */ public void recordingStartCheck(SuiteEntry suite) throws Exception { // Check suite variable is not empty and get suite local name. if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { //Create a document builder for storing the data. TECore.icFactory = DocumentBuilderFactory.newInstance(); // Fortify Mod: prevent external entity injection TECore.icFactory.setExpandEntityReferences(false); try { TECore.icBuilder = TECore.icFactory.newDocumentBuilder(); // Create a document for storing the xml data TECore.doc = TECore.icBuilder.newDocument(); TECore.mainRootElement = TECore.doc.createElement(Constants.Requests); //Append the data in previous saved data. TECore.doc.appendChild(TECore.mainRootElement); } catch (Exception e) { System.out.println(ERROR_ON__RECORDING_AT_STARTING_ + e.toString()); } } }
public void saveRecordingClause(SuiteEntry suite, File dirPath) throws Exception { if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { try {
public void saveRecordingClause(SuiteEntry suite, File dirPath) throws Exception { if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { try {
if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { try {
if (null != suite && SetupOptions.recordingInfo(suite.getLocalName()) == true) { try {