Package com.qspin.qtaste.reporter.testresults

Examples of com.qspin.qtaste.reporter.testresults.TestResultImpl


        }
        if (testCaseName.equals("QTaste_interactive")) {
          testCaseName = name;
        }

        TestResult result = new TestResultImpl(testCaseName, data, requirements, currentRowIndex, numberRows);
        result.setTestCaseDirectory(testCaseDirectory);
        result.setTestScriptVersion(version);

        // TODO: What's this???
        //if (reporter != null) {
        //    result.setReportManager(reporter);
        //}
        try {
            result.setComment(data.getValue("COMMENT"));
        } catch (QTasteException e) {
        }

        result.setRetryCount(retryCount);

        return result;
    }
View Full Code Here


  }

  public static boolean restartSUT() {
    if (useControlScript()) {
      logger.info("Restarting SUT");
      TestResult tr = new TestResultImpl("Restart SUT", null, null, 1, 1);
      tr.setTestScriptVersion("-");
      tr.start();
      TestResultsReportManager reportManager = TestResultsReportManager.getInstance();
      reportManager.putEntry(tr);
      isRestartingSUT = true;
      boolean returnValue = stopSUT(tr) && startSUT(tr);
      isRestartingSUT = false;
      tr.stop();
      reportManager.refresh();
      // reportManager.stopReport();
      return returnValue;
    } else {
      return false;
View Full Code Here

  public static boolean initialize() {
    if (useControlScript()) {
      isStartStopSUTCancellable = true;
      isStartStopSUTCancelled = false;

      TestResult tr = new TestResultImpl("Start SUT", null, null, 1, 1);
      tr.setTestScriptVersion("-");
      tr.start();
      TestResultsReportManager reportManager = TestResultsReportManager.getInstance();
      reportManager.putEntry(tr);
      stopSUT(null);
      boolean success = startSUT(tr);
      tr.stop();
      reportManager.refresh();
      if (!success) {
        return false;
      }
    }
View Full Code Here

    isStartStopSUTCancellable = false;
    isStartStopSUTCancelled = false;

    if (useControlScript()) {
      TestResultsReportManager reportManager = TestResultsReportManager.getInstance();
      TestResult tr = new TestResultImpl("Stop SUT", null, null, 1, 1);
      tr.setTestScriptVersion("-");
      tr.start();
      reportManager.putEntry(tr);
      stopSUT(tr);
      tr.stop();
      reportManager.refresh();
    }
  }
View Full Code Here

        @Override
        public void run() {
            TestBedConfiguration.reloadConfigFileIfModified();

            boolean start = command.equals("start");
          TestResult tr = new TestResultImpl((start ? "(Re)start" : "Stop") + " SUT", null, null, 1, 1);
            tr.start();
            // TODO: Check this!
            TestResultsReportManager reportManager = TestResultsReportManager.getInstance(); //getReporters("Manual SUT " + (start ? "start" : "stop"));
            if ( CampaignManager.getInstance().getCurrentCampaign() != null )
            {
              reportManager.startReport(CampaignManager.getInstance().getTimeStampCampaign(), "Manual SUT " + (start ? "start" : "stop"));
            }
            else
            {
              reportManager.startReport(new Date(), "Manual SUT " + (start ? "start" : "stop"))
            }
            reportManager.putEntry(tr);
            if (start) {
                TestEngine.stopSUT(null);
                TestEngine.startSUT(tr);
            } else {
                TestEngine.stopSUT(tr);
            }
            tr.stop();
            reportManager.refresh();
            //reportManager.putEntry(tr);

            SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

TOP

Related Classes of com.qspin.qtaste.reporter.testresults.TestResultImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.