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

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep


      if( name != null )
      {
        TestStepConfig newTestStepConfig = factory.createNewTestStep( getModelItem(), name );
        if( newTestStepConfig != null )
        {
          WsdlTestStep testStep = getModelItem().insertTestStep( newTestStepConfig, ix );
          if( testStep != null )
            UISupport.selectAndShow( testStep );
        }
      }
    }
View Full Code Here


    {
      WsdlTestCase testCase = testSuite.getTestCaseAt( i );

      for( int y = 0; y < testCase.getTestStepCount(); y++ )
      {
        WsdlTestStep testStep = testCase.getTestStepAt( y );
        requiredInterfaces.addAll( testStep.getRequiredInterfaces() );
      }
    }

    if( !DragAndDropSupport.importRequiredInterfaces( target, requiredInterfaces, title ) )
      return null;
View Full Code Here

      // get required interfaces
      for( TestCase testCase : testSuite.getTestCaseList() )
      {
        for( int y = 0; y < testCase.getTestStepCount(); y++ )
        {
          WsdlTestStep testStep = ( WsdlTestStep )testCase.getTestStepAt( y );
          requiredInterfaces.addAll( testStep.getRequiredInterfaces() );
        }
      }

      if( DragAndDropSupport.importRequiredInterfaces( target, requiredInterfaces, "Move TestSuite" ) )
      {
View Full Code Here

      // get required interfaces
      for( TestCase testCase : testSuite.getTestCaseList() )
      {
        for( int y = 0; y < testCase.getTestStepCount(); y++ )
        {
          WsdlTestStep testStep = ( WsdlTestStep )testCase.getTestStepAt( y );
          requiredInterfaces.addAll( testStep.getRequiredInterfaces() );
        }
      }

      if( DragAndDropSupport.importRequiredInterfaces( target, requiredInterfaces, "Move TestSuite" ) )
      {
View Full Code Here

      Set<Interface> requiredInterfaces = new HashSet<Interface>();

      // get required interfaces
      for( int y = 0; y < testCase.getTestStepCount(); y++ )
      {
        WsdlTestStep testStep = testCase.getTestStepAt( y );
        requiredInterfaces.addAll( testStep.getRequiredInterfaces() );
      }

      if( DragAndDropSupport.importRequiredInterfaces( target.getProject(), requiredInterfaces, "Copy TestCase" ) )
      {
        return target.importTestCase( testCase, name, position, true, true, true );
View Full Code Here

      Set<Interface> requiredInterfaces = new HashSet<Interface>();

      // get required interfaces
      for( int y = 0; y < testCase.getTestStepCount(); y++ )
      {
        WsdlTestStep testStep = testCase.getTestStepAt( y );
        requiredInterfaces.addAll( testStep.getRequiredInterfaces() );
      }

      if( DragAndDropSupport.importRequiredInterfaces( target.getProject(), requiredInterfaces, "Move TestCase" ) )
      {
        WsdlTestCase importedTestCase = target.importTestCase( testCase, testCase.getName(), position, true, true,
View Full Code Here

      for( TestCase testCase : testSuite.getTestCaseList() )
      {
        int testStepCount = testCase.getTestStepCount();
        for( int c = 0; c < testStepCount; c++ )
        {
          WsdlTestStep testStep = ( WsdlTestStep )testCase.getTestStepAt( c );
          if( testStep instanceof WsdlTestRequestStep )
          {
            WsdlTestRequest testRequest = ( ( WsdlTestRequestStep )testStep ).getTestRequest();
            if( testRequest != null && testRequest.getOperation() != null
                && testRequest.getOperation().getInterface() == iface )
            {
              String newRequest = testRequest.getOperation().createRequest( buildOptional );

              if( keepHeaders )
              {
                newRequest = SoapUtils.transferSoapHeaders( testRequest.getRequestContent(), newRequest,
                    iface.getSoapVersion() );
              }

              if( keepExisting )
                newRequest = XmlUtils.transferValues( testRequest.getRequestContent(), newRequest );

              // changed?
              if( !newRequest.equals( testRequest.getRequestContent() ) )
              {
                if( createBackups )
                {
                  ( ( WsdlTestCase )testCase ).importTestStep( testStep,
                      "Backup of [" + testStep.getName() + "]", -1, true ).setDisabled( true );
                }

                ( ( WsdlRequest )testRequest ).setRequestContent( newRequest );
                count++ ;
View Full Code Here

        if( !SoapUI.getTestMonitor().hasRunningTest( testCase ) )
          continue;

        for( int j = 0; j < testCase.getTestStepCount(); j++ )
        {
          WsdlTestStep testStep = ( WsdlTestStep )testCase.getTestStepAt( j );
          if( testStep.dependsOn( iface ) )
          {
            return true;
          }
        }
      }
View Full Code Here

      {
        TestCase testCase = testSuite.getTestCaseAt( i );

        for( int j = 0; j < testCase.getTestStepCount(); j++ )
        {
          WsdlTestStep testStep = ( WsdlTestStep )testCase.getTestStepAt( j );
          if( testStep.dependsOn( iface ) )
          {
            return true;
          }
        }
      }
View Full Code Here

    sources.add( parent.getTestCase() );
    properties.add( parent.getTestCase().getPropertyNames() );

    for( int c = 0; c < parent.getTestCase().getTestStepCount(); c++ )
    {
      WsdlTestStep testStep = parent.getTestCase().getTestStepAt( c );
      if( testStep == parent )
        continue;

      sources.add( testStep );
      properties.add( testStep.getPropertyNames() );
    }

  }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

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.