Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.TestStepConfig


        return;

      String name = UISupport.prompt( "Specify name for new step", "Insert Step", factory.getTestStepName() );
      if( name != null )
      {
        TestStepConfig newTestStepConfig = factory.createNewTestStep( testCase, name );
        if( newTestStepConfig != null )
        {
          WsdlTestStep testStep = testCase.addTestStep( newTestStepConfig );
          UISupport.selectAndShow( testStep );
        }
View Full Code Here


  }

  private 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 insertTestStep( stepConfig, -1, true );
  }

  public WsdlTestStep addTestStep( String type, String name )
  {
    TestStepConfig newStepConfig = WsdlTestStepRegistry.getInstance().getFactory( type )
        .createNewTestStep( this, name );
    if( newStepConfig != null )
    {
      return addTestStep( newStepConfig );
    }
View Full Code Here

      return null;
  }

  public WsdlTestStep addTestStep( String type, String name, String endpoint, String method )
  {
    TestStepConfig newStepConfig = ( ( HttpRequestStepFactory )WsdlTestStepRegistry.getInstance().getFactory( type ) )
        .createNewTestStep( this, name, endpoint, method );
    if( newStepConfig != null )
    {
      return addTestStep( newStepConfig );
    }
View Full Code Here

      return null;
  }

  public WsdlTestStep insertTestStep( String type, String name, int index )
  {
    TestStepConfig newStepConfig = WsdlTestStepRegistry.getInstance().getFactory( type )
        .createNewTestStep( this, name );
    if( newStepConfig != null )
    {
      return insertTestStep( newStepConfig, index, false );
    }
View Full Code Here

  }

  public WsdlTestStep importTestStep( WsdlTestStep testStep, String name, int index, boolean createCopy )
  {
    testStep.beforeSave();
    TestStepConfig newStepConfig = ( TestStepConfig )testStep.getConfig().copy();
    newStepConfig.setName( name );

    WsdlTestStep result = insertTestStep( newStepConfig, index, createCopy );
    if( result == null )
      return null;
View Full Code Here

    return insertTestStep( stepConfig, ix, true );
  }

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

  {
    WsdlTestStep[] result = new WsdlTestStep[stepConfig.length];

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

      String name = UISupport.prompt( "Specify name for new step", ix == -1 ? "Add Step" : "Insert Step", factory
          .getTestStepName() );
      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

public class MoveXmlTestCase extends TestCase
{
  public void testMoveXml() throws Exception
  {
    TestCaseConfig testCase = TestCaseConfig.Factory.newInstance();
    TestStepConfig step1 = testCase.addNewTestStep();
    TestStepConfig step2 = testCase.addNewTestStep();
    TestStepConfig step3 = testCase.addNewTestStep();

    List<TestStepConfig> testSteps = testCase.getTestStepList();
    assertEquals( 3, testSteps.size() );
    assertEquals( testSteps.get( 0 ), step1 );
    assertEquals( testSteps.get( 1 ), step2 );
    assertEquals( testSteps.get( 2 ), step3 );

    XmlCursor cursor1 = step3.newCursor();
    XmlCursor cursor2 = step2.newCursor();

    cursor1.moveXml( cursor2 );

    cursor1.dispose();
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.