Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.TestStepConfig


    HttpRequestConfig httpRequest = HttpRequestConfig.Factory.newInstance();
    httpRequest.setMethod( HttpMethodType.GET.toString() );

    httpRequest.setEndpoint( endpoint );

    TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
    testStepConfig.setType( HttpRequestStepFactory.HTTPREQUEST_TYPE );
    testStepConfig.setConfig( httpRequest );
    testStepConfig.setName( name );
    HttpTestRequestStep testStep = ( HttpTestRequestStep )targetTestCase.addTestStep( testStepConfig );

    desktopPanel = ( HttpTestRequestDesktopPanel )UISupport.selectAndShow( testStep );
    HttpTestRequest testRequest = null;
    try
View Full Code Here


    {
      name = UISupport.prompt( "Specify unique name of TestStep", "Rename TestStep", name );
      if( StringUtils.isNullOrEmpty( name ) )
        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

      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 )
      {
        int ix = testCase.getIndexOfTestStep( testStep );
        testStep = testCase.insertTestStep( newTestStepConfig, ix + 1);
        if( testStep != null )
View Full Code Here

    dialog.getFormField( Form.CLOSE_EDITOR ).setEnabled( desktop != null && desktop.hasDesktopPanel( mockResponse ) );

    if( !dialog.show() )
      return;

    TestStepConfig config = WsdlMockResponseStepFactory.createConfig( mockResponse.getMockOperation().getOperation(),
        false );
    MockResponseStepConfig mockResponseStepConfig = ( ( MockResponseStepConfig )config.getConfig() );

    config.setName( dialog.getValue( Form.STEP_NAME ) );
    mockResponseStepConfig.setPath( dialog.getValue( Form.PATH ) );
    mockResponseStepConfig.setPort( dialog.getIntValue( Form.PORT, mockService.getPort() ) );

    mockResponse.beforeSave();
    mockResponseStepConfig.getResponse().set( mockResponse.getConfig() );
View Full Code Here

    dialog.setValue( Form.PATH, "/" + operation.getName() );

    if( !dialog.show() )
      return false;

    TestStepConfig config = WsdlMockResponseStepFactory.createConfig( operation, false );
    MockResponseStepConfig mockResponseStepConfig = ( ( MockResponseStepConfig )config.getConfig() );

    config.setName( dialog.getValue( Form.STEP_NAME ) );
    mockResponseStepConfig.setPath( dialog.getValue( Form.PATH ) );
    mockResponseStepConfig.setPort( dialog.getIntValue( Form.PORT, 8181 ) );

    String response = operation.createResponse( operation.getSettings().getBoolean(
        WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ) );
View Full Code Here

    requestStepConfig.setService( request.getOperation().getInterface().getName() );
    requestStepConfig.setResourcePath( request.getOperation().getFullPath() );
    requestStepConfig.setMethodName( request.getRestMethod().getName() );
    requestStepConfig.addNewRestRequest().set( request.getConfig().copy() );

    TestStepConfig testStep = TestStepConfig.Factory.newInstance();
    testStep.setType( RESTREQUEST_TYPE );
    testStep.setConfig( requestStepConfig );
    testStep.setName( stepName );

    return testStep;
  }
View Full Code Here

          entry.setValue( property.getDefaultValue() );
        }
      }
    }

    TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
    testStepConfig.setType( RESTREQUEST_TYPE );
    testStepConfig.setConfig( requestStepConfig );
    testStepConfig.setName( name );

    return testStepConfig;
  }
View Full Code Here

    // set parameters

    String requestContent = me.getRequestContent();
    testRequestConfig.addNewRequest().setStringValue( requestContent );

    TestStepConfig testStep = TestStepConfig.Factory.newInstance();
    testStep.setType( RESTREQUEST_TYPE );
    testStep.setConfig( testRequestConfig );
    testStep.setName( stepName );
    return testStep;
  }
View Full Code Here

    return new JdbcRequestTestStep( testCase, config, forLoadTest );
  }

  public TestStepConfig createNewTestStep( WsdlTestCase testCase, String name )
  {
    TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
    testStepConfig.setType( JDBC_TYPE );
    testStepConfig.setName( name );
    return testStepConfig;
  }
View Full Code Here

    return new WsdlGroovyScriptTestStep( testCase, config, forLoadTest );
  }

  public TestStepConfig createNewTestStep( WsdlTestCase testCase, String name )
  {
    TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
    testStepConfig.setType( GROOVY_TYPE );
    testStepConfig.setName( name );
    return testStepConfig;
  }
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.