Package com.eviware.soapui.impl.wsdl.panels.support

Examples of com.eviware.soapui.impl.wsdl.panels.support.MockTestRunner


        public void actionPerformed( ActionEvent e )
        {
          try
          {
            MockTestRunner mockTestRunner = new MockTestRunner( WsdlTestCaseDesktopPanel.this.getModelItem(),
                SoapUI.ensureGroovyLog() );
            WsdlTestCaseDesktopPanel.this.getModelItem().runSetupScript(
                new MockTestRunContext( mockTestRunner, null ), mockTestRunner );
          }
          catch( Exception e1 )
View Full Code Here


        public void actionPerformed( ActionEvent e )
        {
          try
          {
            MockTestRunner mockTestRunner = new MockTestRunner( WsdlTestCaseDesktopPanel.this.getModelItem(),
                SoapUI.ensureGroovyLog() );
            WsdlTestCaseDesktopPanel.this.getModelItem().runTearDownScript(
                new MockTestRunContext( mockTestRunner, null ), mockTestRunner );
          }
          catch( Exception e1 )
View Full Code Here

          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 )
View Full Code Here

    WsdlTestCase testCase = testSuite.addNewTestCase( "TestCase" );
    testCase.addProperty( "testCaseId" ).setValue( "345" );

    WsdlTestStep testStep = testCase.addTestStep( GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript" );

    MockTestRunner mockTestRunner = new MockTestRunner( testCase, Logger.getLogger( "testing" ) );
    MockTestRunContext context = new MockTestRunContext( mockTestRunner, testStep );

    PropertyExpansionUtils.getGlobalProperties().setPropertyValue( "testSuiteId", "testing" );

    assertEquals( "123", context.expand( "${#Project#projectId}" ) );
View Full Code Here

    TestSuite testSuite = project.getTestSuiteByName( "Test Suite" );
    com.eviware.soapui.model.testsuite.TestCase testCase = testSuite.getTestCaseByName( "Test Conversions" );

    WsdlTestRequestStep testStep = ( WsdlTestRequestStep )testCase.getTestStepByName( "SEK to USD Test" );

    MockTestRunner testRunner = new MockTestRunner( ( WsdlTestCase )testStep.getTestCase() );
    MockTestRunContext testRunContext = new MockTestRunContext( testRunner, ( WsdlTestStep )testStep );

    TestStepResult result = testStep.run( testRunner, testRunContext );

    WsdlTestRequestStepResult wsdlResult = ( WsdlTestRequestStepResult )result;
View Full Code Here

      {
        UISupport.showErrorMessage( "Missing transfers!" );
        return;
      }

      MockTestRunner mockRunner = new MockTestRunner( transferStep.getTestCase() );
      MockTestRunContext context = new MockTestRunContext( mockRunner, transferStep );

      for( int c = 0; c < transferStep.getTransferCount(); c++ )
      {
        PropertyTransfer transfer = transferStep.getTransferAt( c );
View Full Code Here

      {
        UISupport.showErrorMessage( "No transfer selectd!" );
        return;
      }

      MockTestRunner mockRunner = new MockTestRunner( transferStep.getTestCase() );
      MockTestRunContext context = new MockTestRunContext( mockRunner, transferStep );
      PropertyTransferResult result = ( PropertyTransferResult )transferStep.run( mockRunner, context,
          getCurrentTransfer() );
      transferLogTableModel.addResult( result );
    }
View Full Code Here

    {
      SoapUI.getThreadPool().execute( new Runnable()
      {
        public void run()
        {
          MockTestRunner mockTestRunner = new MockTestRunner( groovyStep.getTestCase(), logger );
          statusBar.setIndeterminate( true );
          WsdlTestStepResult result = ( WsdlTestStepResult )groovyStep.run( mockTestRunner,
              new MockTestRunContext( mockTestRunner, groovyStep ) );
          statusBar.setIndeterminate( false );
View Full Code Here

        TestSuite testSuite = project.getTestSuiteByName("Test Suite");
        com.eviware.soapui.model.testsuite.TestCase testCase = testSuite.getTestCaseByName("Test Conversions");

        WsdlTestRequestStep testStep = (WsdlTestRequestStep) testCase.getTestStepByName("SEK to USD Test");

        MockTestRunner testRunner = new MockTestRunner(testStep.getTestCase());
        MockTestRunContext testRunContext = new MockTestRunContext(testRunner, testStep);

        TestStepResult result = testStep.run(testRunner, testRunContext);

        WsdlTestRequestStepResult wsdlResult = (WsdlTestRequestStepResult) result;
View Full Code Here

                    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) {
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.panels.support.MockTestRunner

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.