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


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

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

  {
    AMFRequestTestStepConfig testRequestConfig = AMFRequestTestStepConfig.Factory.newInstance();

    testRequestConfig.setEndpoint( me.getEndpoint() );

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

          new ModelItemNames<Operation>( interfaces.get( 0 ).getOperationList() ).getNames() );

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

      TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
      testStepConfig.setType( MOCKRESPONSE_TYPE );
      testStepConfig.setName( dialog.getValue( CreateForm.NAME ) );

      MockResponseStepConfig config = MockResponseStepConfig.Factory.newInstance();
      config.setInterface( dialog.getValue( CreateForm.INTERFACE ) );
      config.setOperation( dialog.getValue( CreateForm.OPERATION ) );
      config.setPort( dialog.getIntValue( CreateForm.PORT, 8080 ) );
      config.setPath( dialog.getValue( CreateForm.PATH ) );
      config.addNewResponse();
      config.getResponse().addNewResponseContent();

      if( dialog.getBooleanValue( CreateForm.CREATE_RESPONSE ) )
      {
        WsdlInterface iface = ( WsdlInterface )project.getInterfaceByName( config.getInterface() );
        String response = iface.getOperationByName( config.getOperation() ).createResponse(
            project.getSettings().getBoolean( WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ) );

        CompressedStringSupport.setString( config.getResponse().getResponseContent(), response );
      }

      testStepConfig.addNewConfig().set( config );
      return testStepConfig;
    }
    finally
    {
      WsdlMockResponseStepFactory.project = null;
View Full Code Here

      return createFromDialog( operation.getInterface().getProject(), request.getName() + " Response" );
    }
    else
    {
      TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
      testStepConfig.setType( MOCKRESPONSE_TYPE );
      testStepConfig.setName( "Mock Response" );

      MockResponseStepConfig config = MockResponseStepConfig.Factory.newInstance();
      config.setInterface( operation.getInterface().getName() );
      config.setOperation( operation.getName() );
      MockResponseConfig response = config.addNewResponse();
      response.addNewResponseContent();

      if( request != null && request.getResponse() != null )
      {
        CompressedStringSupport.setString( response.getResponseContent(), request.getResponse()
            .getContentAsString() );
      }

      testStepConfig.addNewConfig().set( config );

      return testStepConfig;
    }
  }
View Full Code Here

        XmlBeansRestParamsTestPropertyHolder tempParams = new XmlBeansRestParamsTestPropertyHolder( testCase,
            httpRequest.addNewParameters() );
        tempParams.addParameters( params );
        tempParams.release();

        TestStepConfig testStep = TestStepConfig.Factory.newInstance();
        testStep.setType( HTTPREQUEST_TYPE );
        testStep.setConfig( httpRequest );
        testStep.setName( dialog.getValue( Form.STEPNAME ) );

        return testStep;
      }
      else
      {
View Full Code Here

        httpRequest.addNewParameters() );
    tempParams.addParameters( params );

    httpRequest.setEndpoint( HttpUtils.ensureEndpointStartsWithProtocol( endpoint ) );

    TestStepConfig testStep = TestStepConfig.Factory.newInstance();
    testStep.setType( HTTPREQUEST_TYPE );
    testStep.setConfig( httpRequest );
    testStep.setName( name );

    return testStep;
  }
View Full Code Here

    testRequestConfig.setParameters( parametersConfig );

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

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

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

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

      testRequestConfig.setCredentials( ( CredentialsConfig )request.getConfig().getCredentials().copy() );
    }

    testRequestConfig.setWssPasswordType( request.getConfig().getWssPasswordType() );

    TestStepConfig testStep = TestStepConfig.Factory.newInstance();
    testStep.setType( REQUEST_TYPE );
    testStep.setConfig( requestStepConfig );

    return testStep;
  }
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.