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 {