Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.TestStepConfig


   * @return TestStep
   */
  public TestStep cloneForSecurityScan( WsdlTestStep sourceTestStep )
  {
    WsdlTestStep clonedTestStep = null;
    TestStepConfig testStepConfig = ( TestStepConfig )sourceTestStep.getConfig().copy();
    WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory( testStepConfig.getType() );
    if( factory != null )
    {
      clonedTestStep = factory.buildTestStep( securityTest.getTestCase(), testStepConfig, false );
      if( clonedTestStep instanceof Assertable )
      {
View Full Code Here


   * @return TestStep
   */
  public static TestStep cloneTestStepForSecurityScan( WsdlTestStep sourceTestStep )
  {
    WsdlTestStep clonedTestStep = null;
    TestStepConfig testStepConfig = ( TestStepConfig )sourceTestStep.getConfig().copy();
    WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory( testStepConfig.getType() );
    if( factory != null )
    {
      clonedTestStep = factory.buildTestStep( sourceTestStep.getTestCase(), testStepConfig, false );
      if( clonedTestStep instanceof Assertable )
      {
View Full Code Here

  }

  @Override
  public void afterLoad()
  {
    TestStepConfig config = getConfig();

    if( config.getConfig() != null )
    {
      transferStepConfig = ( PropertyTransfersStepConfig )config.getConfig().changeType(
          PropertyTransfersStepConfig.type );
      for( int c = 0; c < transferStepConfig.sizeOfTransfersArray(); c++ )
      {
        transfers.add( new PropertyTransfer( this, transferStepConfig.getTransfersArray( c ) ) );
      }
    }
    else
    {
      transferStepConfig = ( PropertyTransfersStepConfig )config.addNewConfig().changeType(
          PropertyTransfersStepConfig.type );
    }

    super.afterLoad();
  }
View Full Code Here

  @Override
  public WsdlTestStep clone( WsdlTestCase targetTestCase, String name )
  {
    beforeSave();

    TestStepConfig config = ( TestStepConfig )getConfig().copy();
    ManualTestStep result = ( ManualTestStep )targetTestCase.addTestStep( config );

    return result;
  }
View Full Code Here

  {
    HttpRequestConfig httpRequest = HttpRequestConfig.Factory.newInstance();
    httpRequest.setEndpoint( HttpUtils.ensureEndpointStartsWithProtocol( url ) );
    httpRequest.setMethod( "GET" );

    TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
    testStepConfig.setType( HttpRequestStepFactory.HTTPREQUEST_TYPE );
    testStepConfig.setConfig( httpRequest );
    testStepConfig.setName( "Separate Request" );

    WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory(
        ( HttpRequestStepFactory.HTTPREQUEST_TYPE ) );
    return ( HttpTestRequestStep )factory.buildTestStep( ( WsdlTestCase )testStep2.getTestCase(), testStepConfig,
        false );
View Full Code Here

  @Override
  public WsdlTestStep clone( WsdlTestCase targetTestCase, String name )
  {
    beforeSave();

    TestStepConfig config = ( TestStepConfig )getConfig().copy();
    RequestStepConfig stepConfig = ( RequestStepConfig )config.getConfig().changeType( RequestStepConfig.type );

    while( stepConfig.getRequest().sizeOfAttachmentArray() > 0 )
      stepConfig.getRequest().removeAttachment( 0 );

    config.setName( name );
    stepConfig.getRequest().setName( name );

    WsdlTestRequestStep result = ( WsdlTestRequestStep )targetTestCase.addTestStep( config );
    testRequest.copyAttachmentsTo( result.getTestRequest() );
View Full Code Here

  @Override
  public WsdlTestStep clone( WsdlTestCase targetTestCase, String name )
  {
    beforeSave();

    TestStepConfig config = ( TestStepConfig )getConfig().copy();
    AMFRequestTestStep result = ( AMFRequestTestStep )targetTestCase.addTestStep( config );

    return result;
  }
View Full Code Here

  @Override
  public WsdlTestStep clone( WsdlTestCase targetTestCase, String name )
  {
    beforeSave();

    TestStepConfig config = ( TestStepConfig )getConfig().copy();
    JdbcRequestTestStep result = ( JdbcRequestTestStep )targetTestCase.addTestStep( config );

    return result;
  }
View Full Code Here

  }

  @Override
  public void afterLoad()
  {
    TestStepConfig config = getConfig();

    if( config.getConfig() == null )
    {
      gotoStepConfig = ( GotoStepConfig )config.addNewConfig().changeType( GotoStepConfig.type );
    }
    else
    {
      gotoStepConfig = ( GotoStepConfig )config.getConfig().changeType( GotoStepConfig.type );
      for( int c = 0; c < gotoStepConfig.sizeOfConditionArray(); c++ )
      {
        conditions.add( new GotoCondition( gotoStepConfig.getConditionArray( c ) ) );
      }
    }
View Full Code Here

  @Override
  public WsdlTestStep clone( WsdlTestCase targetTestCase, String name )
  {
    beforeSave();

    TestStepConfig config = ( TestStepConfig )getConfig().copy();
    RequestStepConfig stepConfig = ( RequestStepConfig )config.getConfig().changeType( RequestStepConfig.type );

    while( stepConfig.getRequest().sizeOfAttachmentArray() > 0 )
      stepConfig.getRequest().removeAttachment( 0 );

    config.setName( name );
    stepConfig.getRequest().setName( name );

    WsdlTestRequestStep result = ( WsdlTestRequestStep )targetTestCase.addTestStep( config );
    testRequest.copyAttachmentsTo( result.getTestRequest() );
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.TestStepConfig

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.