Package com.eviware.soapui.impl.wsdl.teststeps

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlRunTestCaseTestStep$InternalTestSuiteListener


  }

  @Override
  public boolean dependsOn( ModelItem modelItem )
  {
    WsdlRunTestCaseTestStep callStep = getModelItem();

    return modelItem == callStep || modelItem == callStep.getTestCase()
        || modelItem == callStep.getTestCase().getTestSuite()
        || modelItem == callStep.getTestCase().getTestSuite().getProject();
  }
View Full Code Here


      new Thread( new Runnable()
      {

        public void run()
        {
          WsdlRunTestCaseTestStep testStep = getModelItem();
          InternalTestRunListener testRunListener = new InternalTestRunListener();
          testStep.addTestRunListener( testRunListener );

          try
          {
            testRunLog.clear();
            MockTestRunner mockTestRunner = new MockTestRunner( testStep.getTestCase(), SoapUI.ensureGroovyLog() );
            WsdlTestStepResult result = ( WsdlTestStepResult )testStep.run( mockTestRunner,
                new MockTestRunContext( mockTestRunner, testStep ) );

            Throwable er = result.getError();
            if( er != null )
            {
              UISupport.showErrorMessage( er.toString() );
            }
          }
          catch( Throwable t )
          {
            UISupport.showErrorMessage( t );
          }
          finally
          {
            testStep.removeTestRunListener( testRunListener );
            runAction.setEnabled( true );
            cancelAction.setEnabled( false );
          }
        }
      } ).start();
View Full Code Here

            .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
              + StringUtils.createFileName( runTestCaseTestStep.getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( tc.getTestSuite().getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( tc.getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( currentStep.getName(), '_' ) + "-" + count.longValue() + "-"
              + result.getStatus();
        }
View Full Code Here

            .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
              + StringUtils.createFileName( ctc.getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( runTestCaseTestStep.getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( tc.getTestSuite().getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( tc.getName(), '_' ) + exportSeparator
              + StringUtils.createFileName( currentStep.getName(), '_' ) + "-" + count.longValue() + "-"
              + result.getStatus();
        }
View Full Code Here

        "/run_testcase_step.gif" );
  }

  public WsdlTestStep buildTestStep( WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest )
  {
    return new WsdlRunTestCaseTestStep( testCase, config, forLoadTest );
  }
View Full Code Here

        return toolbar;
    }

    @Override
    public boolean dependsOn(ModelItem modelItem) {
        WsdlRunTestCaseTestStep callStep = getModelItem();

        return modelItem == callStep || modelItem == callStep.getTestCase()
                || modelItem == callStep.getTestCase().getTestSuite()
                || modelItem == callStep.getTestCase().getTestSuite().getProject();
    }
View Full Code Here

            cancelAction.setEnabled(true);

            new Thread(new Runnable() {

                public void run() {
                    WsdlRunTestCaseTestStep testStep = getModelItem();
                    InternalTestRunListener testRunListener = new InternalTestRunListener();
                    testStep.addTestRunListener(testRunListener);

                    try {
                        testRunLog.clear();
                        MockTestRunner mockTestRunner = new MockTestRunner(testStep.getTestCase(), SoapUI.ensureGroovyLog());
                        WsdlTestStepResult result = (WsdlTestStepResult) testStep.run(mockTestRunner,
                                new MockTestRunContext(mockTestRunner, testStep));

                        Throwable er = result.getError();
                        if (er != null) {
                            UISupport.showErrorMessage(er.toString());
                        }
                    } catch (Throwable t) {
                        UISupport.showErrorMessage(t);
                    } finally {
                        testStep.removeTestRunListener(testRunListener);
                        runAction.setEnabled(true);
                        cancelAction.setEnabled(false);
                    }
                }
            }).start();
View Full Code Here

                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
                            + StringUtils.createFileName(runTestCaseTestStep.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(tc.getTestSuite().getName(), '_') + exportSeparator
                            + StringUtils.createFileName(tc.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(currentStep.getName(), '_') + "-" + count.longValue() + "-"
                            + result.getStatus();
                }
View Full Code Here

                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
                            + StringUtils.createFileName(ctc.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(runTestCaseTestStep.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(tc.getTestSuite().getName(), '_') + exportSeparator
                            + StringUtils.createFileName(tc.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(currentStep.getName(), '_') + "-" + count.longValue() + "-"
                            + result.getStatus();
                }
View Full Code Here

        super(RUNTESTCASE_TYPE, "Run TestCase", "Runs another TestCase with the specified properties",
                "/run_testcase_step.gif");
    }

    public WsdlTestStep buildTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) {
        return new WsdlRunTestCaseTestStep(testCase, config, forLoadTest);
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.teststeps.WsdlRunTestCaseTestStep$InternalTestSuiteListener

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.