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()); } } } /**
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()); } } } /**
/** * 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 {
SuiteEntry suite = index.getSuite(suiteId); System.out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName()); System.out.println(" (" + suiteId + ")"); System.out.println(suite.getTitle());
SuiteEntry suite = index.getSuite(suiteId); System.out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName()); System.out.println(" (" + suiteId + ")"); System.out.println(suite.getTitle());
String name = suite.getPrefix() + ":" + suite.getLocalName(); out.println("Testing suite " + name + " in " + getMode() + " with defaultResult of " + defaultResultName + " ..."); recordTestResult.detailTestPath(); reTestCount = 0; out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName() + " "); if (result == TECore.FAIL || result == TECore.INHERITED_FAILURE) {
String name = suite.getPrefix() + ":" + suite.getLocalName(); out.println("Testing suite " + name + " in " + getMode() + " with defaultResult of " + defaultResultName + " ..."); recordTestResult.detailTestPath(); reTestCount = 0; out.print("Suite " + suite.getPrefix() + ":" + suite.getLocalName() + " "); if (result == TECore.FAIL || result == TECore.INHERITED_FAILURE) {
+ suite.getPrefix() + ":" + suite.getLocalName() + " "); String summary = "Not complete"; if ("yes".equals(baseTest.getAttribute("complete"))) {
+ suite.getPrefix() + ":" + suite.getLocalName() + " "); String summary = "Not complete"; if ("yes".equals(baseTest.getAttribute("complete"))) {