Examples of RequestStepConfig


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

Examples of com.eviware.soapui.config.RequestStepConfig

    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

Examples of com.eviware.soapui.config.RequestStepConfig

    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

Examples of com.eviware.soapui.config.RequestStepConfig

  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

Examples of com.eviware.soapui.config.RequestStepConfig

  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

Examples of com.eviware.soapui.config.RequestStepConfig

    @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

Examples of com.eviware.soapui.config.RequestStepConfig

    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

Examples of com.eviware.soapui.config.RequestStepConfig

    @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

Examples of com.eviware.soapui.config.RequestStepConfig

        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

Examples of com.eviware.soapui.config.RequestStepConfig

        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
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.