Package com.eviware.soapui.impl.wsdl.testcase

Examples of com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner$ParallellTestRunListener


  public void afterRun( TestSuiteRunner testRunner, TestSuiteRunContext runContext )
  {
    if( SoapUI.getTestMonitor().hasRunningLoadTest( testRunner.getTestSuite() ) )
      return;

    WsdlTestSuiteRunner wsdlRunner = ( WsdlTestSuiteRunner )testRunner;

    String testSuiteName = testRunner.getTestRunnable().getName();
    if( testRunner.getStatus() == TestCaseRunner.Status.CANCELED )
      runLog.addText( "TestSuite [" + testSuiteName + "] canceled [" + testRunner.getReason() + "], time taken = "
          + wsdlRunner.getTimeTaken() );

    else if( testRunner.getStatus() == TestCaseRunner.Status.FAILED )
    {
      String msg = wsdlRunner.getReason();
      if( wsdlRunner.getError() != null )
      {
        if( msg != null )
          msg += ":";

        msg += wsdlRunner.getError();
      }

      runLog.addText( "TestSuite [" + testSuiteName + "] failed [" + msg + "], time taken = "
          + wsdlRunner.getTimeTaken() );
    }
    else
      runLog.addText( "TestSuite [" + testSuiteName + "] finished with status [" + testRunner.getStatus()
          + "], time taken = " + wsdlRunner.getTimeTaken() );
  }
View Full Code Here


  protected void runSuite( WsdlTestSuite suite )
  {
    try
    {
      log.info( ( "Running TestSuite [" + suite.getName() + "], runType = " + suite.getRunType() ) );
      WsdlTestSuiteRunner runner = suite.run( new StringToObjectMap(),
          suite.getRunType() == TestSuiteRunType.PARALLEL );
      log.info( "TestSuite [" + suite.getName() + "] finished with status [" + runner.getStatus() + "] in "
          + ( runner.getTimeTaken() ) + "ms" );
    }
    catch( Exception e )
    {
      e.printStackTrace();
    }
View Full Code Here

  }

  public WsdlTestSuiteRunner run( StringToObjectMap context, boolean async )
  {
    WsdlTestSuiteRunner testSuiteRunner = new WsdlTestSuiteRunner( this, context );
    testSuiteRunner.start( async );
    return testSuiteRunner;
  }
View Full Code Here

    public void afterRun(TestSuiteRunner testRunner, TestSuiteRunContext runContext) {
        if (SoapUI.getTestMonitor().hasRunningLoadTest(testRunner.getTestSuite())) {
            return;
        }

        WsdlTestSuiteRunner wsdlRunner = (WsdlTestSuiteRunner) testRunner;

        String testSuiteName = testRunner.getTestRunnable().getName();
        if (testRunner.getStatus() == TestCaseRunner.Status.CANCELED) {
            runLog.addText("TestSuite [" + testSuiteName + "] canceled [" + testRunner.getReason() + "], time taken = "
                    + wsdlRunner.getTimeTaken());
        } else if (testRunner.getStatus() == TestCaseRunner.Status.FAILED) {
            String msg = wsdlRunner.getReason();
            if (wsdlRunner.getError() != null) {
                if (msg != null) {
                    msg += ":";
                }

                msg += wsdlRunner.getError();
            }

            runLog.addText("TestSuite [" + testSuiteName + "] failed [" + msg + "], time taken = "
                    + wsdlRunner.getTimeTaken());
        } else {
            runLog.addText("TestSuite [" + testSuiteName + "] finished with status [" + testRunner.getStatus()
                    + "], time taken = " + wsdlRunner.getTimeTaken());
        }
    }
View Full Code Here

        }

    }

    public WsdlTestSuiteRunner run(StringToObjectMap context, boolean async) {
        WsdlTestSuiteRunner testSuiteRunner = new WsdlTestSuiteRunner(this, context);
        testSuiteRunner.start(async);
        return testSuiteRunner;
    }
View Full Code Here

     */

    protected void runSuite(WsdlTestSuite suite) {
        try {
            log.info(("Running TestSuite [" + suite.getName() + "], runType = " + suite.getRunType()));
            WsdlTestSuiteRunner runner = suite.run(new StringToObjectMap(), false);
            log.info("TestSuite [" + suite.getName() + "] finished with status [" + runner.getStatus() + "] in "
                    + (runner.getTimeTaken()) + "ms");
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            testSuiteCount++;
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.testcase.WsdlTestSuiteRunner$ParallellTestRunListener

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.