Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.RequestStepConfig


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

  public static TestStepConfig createConfig( WsdlRequest request, String stepName )
  {
    RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

    requestStepConfig.setInterface( request.getOperation().getInterface().getName() );
    requestStepConfig.setOperation( request.getOperation().getName() );

    WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

    testRequestConfig.setName( stepName );
    testRequestConfig.setEncoding( request.getEncoding() );
    testRequestConfig.setEndpoint( request.getEndpoint() );
    testRequestConfig.addNewRequest().setStringValue( request.getRequestContent() );
View Full Code Here


    return testStep;
  }

  public static TestStepConfig createConfig( WsdlOperation operation, String stepName )
  {
    RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

    requestStepConfig.setInterface( operation.getInterface().getName() );
    requestStepConfig.setOperation( operation.getName() );

    WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();
    testRequestConfig.addNewWsaConfig();

    testRequestConfig.setName( stepName );
    testRequestConfig.setEncoding( "UTF-8" );
    String[] endpoints = operation.getInterface().getEndpoints();
View Full Code Here

    String name;
    name = values.get( STEP_NAME );

    String requestContent = operation.createRequest( values.getBoolean( CREATE_OPTIONAL_ELEMENTS_IN_REQUEST ) );

    RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

    requestStepConfig.setInterface( operation.getInterface().getName() );
    requestStepConfig.setOperation( operation.getName() );

    WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

    testRequestConfig.setName( name );
    testRequestConfig.setEncoding( "UTF-8" );
    String[] endpoints = operation.getInterface().getEndpoints();
    if( endpoints.length > 0 )
View Full Code Here

  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() );

    return result;
View Full Code Here

  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() );

    return result;
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());

        return result;
View Full Code Here

    public WsdlTestStep buildTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) {
        return new WsdlTestRequestStep(testCase, config, forLoadTest);
    }

    public static TestStepConfig createConfig(WsdlRequest request, String stepName) {
        RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

        requestStepConfig.setInterface(request.getOperation().getInterface().getName());
        requestStepConfig.setOperation(request.getOperation().getName());

        WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

        testRequestConfig.setName(stepName);
        testRequestConfig.setEncoding(request.getEncoding());
        testRequestConfig.setEndpoint(request.getEndpoint());
        testRequestConfig.addNewRequest().setStringValue(request.getRequestContent());
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());

        return result;
View Full Code Here

        return testStep;
    }

    public static TestStepConfig createConfig(WsdlOperation operation, String stepName) {
        RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

        requestStepConfig.setInterface(operation.getInterface().getName());
        requestStepConfig.setOperation(operation.getName());

        WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();
        testRequestConfig.addNewWsaConfig();

        testRequestConfig.setName(stepName);
        testRequestConfig.setEncoding("UTF-8");
        String[] endpoints = operation.getInterface().getEndpoints();
View Full Code Here

        String name;
        name = values.get(STEP_NAME);

        String requestContent = operation.createRequest(values.getBoolean(CREATE_OPTIONAL_ELEMENTS_IN_REQUEST));

        RequestStepConfig requestStepConfig = RequestStepConfig.Factory.newInstance();

        requestStepConfig.setInterface(operation.getInterface().getName());
        requestStepConfig.setOperation(operation.getName());

        WsdlRequestConfig testRequestConfig = requestStepConfig.addNewRequest();

        testRequestConfig.setName(name);
        testRequestConfig.setEncoding("UTF-8");
        String[] endpoints = operation.getInterface().getEndpoints();
        if (endpoints.length > 0) {
View Full Code Here

TOP

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

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.