Package com.eviware.soapui.impl.wsdl.teststeps

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlMockResponseTestStep$InternalMockRunListener


    mockResponseStepConfig.setPort( dialog.getIntValue( Form.PORT, mockService.getPort() ) );

    mockResponse.beforeSave();
    mockResponseStepConfig.getResponse().set( mockResponse.getConfig() );

    WsdlMockResponseTestStep testStep = ( WsdlMockResponseTestStep )testCase.insertTestStep( config, -1 );
    if( testStep == null )
      return;

    if( dialog.getBooleanValue( Form.ADD_SCHEMA_ASSERTION ) )
      testStep.addAssertion( SchemaComplianceAssertion.ID );

    UISupport.selectAndShow( testStep );

    if( dialog.getBooleanValue( Form.CLOSE_EDITOR ) && desktop != null )
    {
View Full Code Here


    String response = operation.createResponse( operation.getSettings().getBoolean(
        WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS ) );
    CompressedStringSupport.setString( mockResponseStepConfig.addNewResponse().addNewResponseContent(), response );

    WsdlMockResponseTestStep testStep = ( WsdlMockResponseTestStep )testCase.addTestStep( config );

    if( dialog.getBooleanValue( Form.ADD_SCHEMA_ASSERTION ) )
      testStep.addAssertion( SchemaComplianceAssertion.ID );

    UISupport.selectAndShow( testStep );

    if( dialog.getBooleanValue( Form.SHOW_TESTCASE ) )
    {
View Full Code Here

              .setResponse( ( ( AbstractHttpRequestInterface<?> )testRequestStep.getTestRequest() )
                  .getResponse() );
        }
        else if( testStep instanceof WsdlMockResponseTestStep )
        {
          WsdlMockResponseTestStep mockResponseStep = ( WsdlMockResponseTestStep )testStep;
          exchange = new WsdlMockResponseMessageExchange( mockResponseStep.getMockResponse() );
        }

        try
        {
          setScriptText( editor.getEditArea().getText() );
View Full Code Here

        "/mockResponseStep.gif" );
  }

  public WsdlTestStep buildTestStep( WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest )
  {
    return new WsdlMockResponseTestStep( testCase, config, forLoadTest );
  }
View Full Code Here

    {
      String response = request.getResponse().getContentAsString();
      CompressedStringSupport.setString( responseContent, response );
    }

    WsdlMockResponseTestStep testStep = ( WsdlMockResponseTestStep )testCase.addTestStep( config );

    if( dialog.getBooleanValue( Form.ADD_SCHEMA_ASSERTION ) )
      testStep.addAssertion( SchemaComplianceAssertion.ID );

    UISupport.selectAndShow( testStep );

    if( dialog.getBooleanValue( Form.CLOSE_REQUEST ) && desktop != null )
    {
View Full Code Here

        String response = operation.createResponse(operation.getSettings().getBoolean(
                WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS));
        CompressedStringSupport.setString(mockResponseStepConfig.addNewResponse().addNewResponseContent(), response);

        WsdlMockResponseTestStep testStep = (WsdlMockResponseTestStep) testCase.addTestStep(config);

        if (dialog.getBooleanValue(Form.ADD_SCHEMA_ASSERTION)) {
            testStep.addAssertion(SchemaComplianceAssertion.ID);
        }

        UISupport.selectAndShow(testStep);

        if (dialog.getBooleanValue(Form.SHOW_TESTCASE)) {
View Full Code Here

        mockResponseStepConfig.setPort(dialog.getIntValue(Form.PORT, mockService.getPort()));

        mockResponse.beforeSave();
        mockResponseStepConfig.getResponse().set(mockResponse.getConfig());

        WsdlMockResponseTestStep testStep = (WsdlMockResponseTestStep) testCase.insertTestStep(config, -1);
        if (testStep == null) {
            return;
        }

        if (dialog.getBooleanValue(Form.ADD_SCHEMA_ASSERTION)) {
            testStep.addAssertion(SchemaComplianceAssertion.ID);
        }

        UISupport.selectAndShow(testStep);

        if (dialog.getBooleanValue(Form.CLOSE_EDITOR) && desktop != null) {
View Full Code Here

        } else if (request.getResponse() != null) {
            String response = request.getResponse().getContentAsString();
            CompressedStringSupport.setString(responseContent, response);
        }

        WsdlMockResponseTestStep testStep = (WsdlMockResponseTestStep) testCase.addTestStep(config);

        if (dialog.getBooleanValue(Form.ADD_SCHEMA_ASSERTION)) {
            testStep.addAssertion(SchemaComplianceAssertion.ID);
        }

        UISupport.selectAndShow(testStep);

        if (dialog.getBooleanValue(Form.CLOSE_REQUEST) && desktop != null) {
View Full Code Here

        super(MOCKRESPONSE_TYPE, "SOAP Mock Response", "Waits for a request and returns the specified response",
                "/mockResponseStep.gif");
    }

    public WsdlTestStep buildTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) {
        return new WsdlMockResponseTestStep(testCase, config, forLoadTest);
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.teststeps.WsdlMockResponseTestStep$InternalMockRunListener

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.