Examples of WsdlTestStep


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

    if( modelItem instanceof SecurityTest )
      modelItem = ( ( SecurityTest )modelItem ).getTestCase();

    if( modelItem instanceof WsdlTestStep || modelItem instanceof WsdlTestCase )
    {
      WsdlTestStep testStep = ( WsdlTestStep )( modelItem instanceof WsdlTestStep ? modelItem : null );
      WsdlTestCase testCase = ( WsdlTestCase )( testStep == null ? modelItem : testStep.getTestCase() );

      int sepIx = pe.indexOf( PropertyExpansion.PROPERTY_SEPARATOR );
      Object property = null;

      if( sepIx > 0 )
      {
        String step = pe.substring( 0, sepIx );
        String name = pe.substring( sepIx + 1 );
        String xpath = null;

        sepIx = name.indexOf( PropertyExpansion.PROPERTY_SEPARATOR );
        WsdlTestStep ts = testCase.getTestStepByName( step );

        if( sepIx != -1 )
        {
          xpath = name.substring( sepIx + 1 );
          name = name.substring( 0, sepIx );
        }

        if( step != null )
        {
          if( ts != null )
          {
            TestProperty p = ts.getProperty( name );
            if( p != null )
              property = p.getValue();
          }
        }
        else
View Full Code Here

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

    WsdlTestSuite testSuite = project.addNewTestSuite( "TestSuite" );
    testSuite.addProperty( "testSuiteId" ).setValue( "234" );
    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" );
View Full Code Here

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

    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

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

  }

  public static MutablePropertyExpansionImpl createMutablePropertyExpansion( String pe, ModelItem modelItem,
      Object target, String propertyName )
  {
    WsdlTestStep testStep = null;
    WsdlTestCase testCase = null;
    WsdlTestSuite testSuite = null;
    WsdlProject project = null;
    WsdlMockService mockService = null;
    WsdlMockResponse mockResponse = null;
    TestPropertyHolder holder = null;
    SecurityTest securityTest = null;

    if( modelItem instanceof WsdlTestStep )
    {
      testStep = ( WsdlTestStep )modelItem;
      testCase = testStep.getTestCase();
      testSuite = testCase.getTestSuite();
      project = testSuite.getProject();
    }
    else if( modelItem instanceof WsdlTestCase )
    {
View Full Code Here

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

    {
      WsdlTestCase testCase = testSuite.getTestCaseAt( i );

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

    if( requiredInterfaces.size() > 0 && targetProject.getInterfaceCount() > 0 )
    {
View Full Code Here

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

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

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

        targetTestCase = targetTestSuite.addNewTestCase( targetTestCaseName );
      }

      boolean move = dialog.getBooleanValue( Form.MOVE );

      WsdlTestStep newTestStep = targetTestCase.importTestStep( testStep, name, -1, !move );
      if( newTestStep == null )
        return;

      if( dialog.getBooleanValue( Form.OPEN ) )
        UISupport.selectAndShow( newTestStep );
View Full Code Here

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

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

        project = ( WsdlProject )workspace.getProjectByName( targetProjectName );
        if( project == null )
        {
View Full Code Here

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

  public WsdlTestStep insertTestStep( TestStepConfig stepConfig, int ix, boolean clearIds )
  {
    TestStepConfig newStepConfig = ix == -1 ? getConfig().addNewTestStep() : getConfig().insertNewTestStep( ix );
    newStepConfig.set( stepConfig );
    WsdlTestStep testStep = createTestStepFromConfig( newStepConfig );

    if( !ensureUniqueName( testStep ) )
    {
      testStep.release();
      getConfig().getTestStepList().remove( newStepConfig );
      return null;
    }

    if( clearIds )
      ModelSupport.unsetIds( testStep );

    if( ix == -1 )
      testSteps.add( testStep );
    else
      testSteps.add( ix, testStep );

    testStep.afterLoad();

    if( getTestSuite() != null )
      ( getTestSuite() ).fireTestStepAdded( testStep, ix == -1 ? testSteps.size() - 1 : ix );

    notifyPropertyChanged( "testSteps", null, testStep );
View Full Code Here

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

    for( int c = 0; c < stepConfig.length; c++ )
    {
      TestStepConfig newStepConfig = ix == -1 ? getConfig().addNewTestStep() : getConfig()
          .insertNewTestStep( ix + c );
      newStepConfig.set( stepConfig[c] );
      WsdlTestStep testStep = createTestStepFromConfig( newStepConfig );

      if( !ensureUniqueName( testStep ) )
        return null;

      if( clearIds )
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.