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

Examples of com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner


  {
    if( SoapUI.getTestMonitor().hasRunningLoadTest( testRunner.getTestCase() )
        || SoapUI.getTestMonitor().hasRunningSecurityTest( testRunner.getTestCase() ) )
      return;

    WsdlTestCaseRunner wsdlRunner = ( WsdlTestCaseRunner )testRunner;

    String testCaseName = testRunner.getTestCase().getName();
    if( testRunner.getStatus() == TestCaseRunner.Status.CANCELED )
      runLog.addText( "TestCase [" + testCaseName + "] 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( "TestCase [" + testCaseName + "] failed [" + msg + "], time taken = "
          + wsdlRunner.getTimeTaken() );
    }
    else
      runLog.addText( "TestCase [" + testCaseName + "] finished with status [" + testRunner.getStatus()
          + "], time taken = " + wsdlRunner.getTimeTaken() );
  }
View Full Code Here


      putValue( Action.SHORT_DESCRIPTION, "Stops running this testcase" );
    }

    public void actionPerformed( ActionEvent e )
    {
      WsdlTestCaseRunner testCaseRunner = getModelItem().getTestCaseRunner();
      if( testCaseRunner != null )
        testCaseRunner.cancel( "Canceled from RunTestCase UI" );
    }
View Full Code Here

  protected void runTestCase( WsdlTestCase testCase )
  {
    try
    {
      log.info( "Running TestCase [" + testCase.getName() + "]" );
      WsdlTestCaseRunner runner = testCase.run( new StringToObjectMap(), false );
      log.info( "TestCase [" + testCase.getName() + "] finished with status [" + runner.getStatus() + "] in "
          + ( runner.getTimeTaken() ) + "ms" );
    }
    catch( Exception e )
    {
      e.printStackTrace();
    }
View Full Code Here

        String nameBase = StringUtils.createFileName( tc.getTestSuite().getName(), '_' ) + exportSeparator
            + StringUtils.createFileName( tc.getName(), '_' ) + exportSeparator
            + StringUtils.createFileName( currentStep.getName(), '_' ) + "-" + count.longValue() + "-"
            + result.getStatus();

        WsdlTestCaseRunner callingTestCaseRunner = ( WsdlTestCaseRunner )runContext
            .getProperty( "#CallingTestCaseRunner#" );

        if( callingTestCaseRunner != null )
        {
          WsdlTestCase ctc = callingTestCaseRunner.getTestCase();
          WsdlRunTestCaseTestStep runTestCaseTestStep = ( WsdlRunTestCaseTestStep )runContext
              .getProperty( "#CallingRunTestCaseStep#" );

          nameBase = StringUtils.createFileName( ctc.getTestSuite().getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( ctc.getName(), '_' ) + exportSeparator
View Full Code Here

            + StringUtils.createFileName( tc.getTestSuite().getName(), '_' ) + exportSeparator
            + StringUtils.createFileName( tc.getName(), '_' ) + exportSeparator
            + StringUtils.createFileName( currentStep.getName(), '_' ) + "-" + count.longValue() + "-"
            + result.getStatus();

        WsdlTestCaseRunner callingTestCaseRunner = ( WsdlTestCaseRunner )runContext
            .getProperty( "#CallingTestCaseRunner#" );

        if( callingTestCaseRunner != null )
        {
          WsdlTestCase ctc = callingTestCaseRunner.getTestCase();
          WsdlRunTestCaseTestStep runTestCaseTestStep = ( WsdlRunTestCaseTestStep )runContext
              .getProperty( "#CallingRunTestCaseStep#" );

          nameBase = StringUtils.createFileName( securityTestName, '_' ) + exportSeparator
              + StringUtils.createFileName( ctc.getTestSuite().getName(), '_' ) + exportSeparator
View Full Code Here

  public void perform( WsdlTestStep testStep, Object param )
  {
    StringToObjectMap properties = recoverContextProperties( testStep );
    properties.put( TestCaseRunContext.INTERACTIVE, Boolean.TRUE );

    WsdlTestCaseRunner testCaseRunner = new WsdlTestCaseRunner( testStep.getTestCase(), properties );
    testCaseRunner.setStartStep( testStep.getTestCase().getIndexOfTestStep( testStep ) );
    testCaseRunner.start( true );
  }
View Full Code Here

      {
        if( System.getProperty( "soapui.enablenamedthreads" ) != null )
          Thread.currentThread().setName(
              testCase.getName() + " " + loadTest.getName() + " ThreadIndex = " + threadIndex );

        runner = new WsdlTestCaseRunner( testCase, new StringToObjectMap() );

        while( !canceled )
        {
          try
          {
View Full Code Here

        if (SoapUI.getTestMonitor().hasRunningLoadTest(testRunner.getTestCase())
                || SoapUI.getTestMonitor().hasRunningSecurityTest(testRunner.getTestCase())) {
            return;
        }

        WsdlTestCaseRunner wsdlRunner = (WsdlTestCaseRunner) testRunner;

        String testCaseName = testRunner.getTestCase().getName();
        if (testRunner.getStatus() == TestCaseRunner.Status.CANCELED) {
            runLog.addText("TestCase [" + testCaseName + "] 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("TestCase [" + testCaseName + "] failed [" + msg + "], time taken = "
                    + wsdlRunner.getTimeTaken());
        } else {
            runLog.addText("TestCase [" + testCaseName + "] finished with status [" + testRunner.getStatus()
                    + "], time taken = " + wsdlRunner.getTimeTaken());
        }
    }
View Full Code Here

            putValue(Action.SMALL_ICON, UISupport.createImageIcon("/stop_testcase.gif"));
            putValue(Action.SHORT_DESCRIPTION, "Stops running this testcase");
        }

        public void actionPerformed(ActionEvent e) {
            WsdlTestCaseRunner testCaseRunner = getModelItem().getTestCaseRunner();
            if (testCaseRunner != null) {
                testCaseRunner.cancel("Canceled from RunTestCase UI");
            }
        }
View Full Code Here

                if (System.getProperty("soapui.enablenamedthreads") != null) {
                    Thread.currentThread().setName(
                            testCase.getName() + " " + loadTest.getName() + " ThreadIndex = " + threadIndex);
                }

                runner = new WsdlTestCaseRunner(testCase, new StringToObjectMap());

                while (!canceled) {
                    try {
                        runner.getRunContext().reset();
                        runner.getRunContext().setProperty(TestCaseRunContext.THREAD_INDEX, threadIndex);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner

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.