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

Examples of com.eviware.soapui.impl.wsdl.teststeps.HttpTestRequest$PropertyChangeNotifier


            HttpTestRequestStep test = ( HttpTestRequestStep )testCase.insertTestStep(
                httpRequestStepFactory.createConfig( me, "Monitor Request " + ( row + 1 ) ), -1 );

            test.getTestRequest().setRequestHeaders( excludeHeaders( me.getRequestHeaders() ) );

            HttpTestRequest request = ( HttpTestRequest )test.getHttpRequest();

            request.setEndpoint( me.getTargetUrl().toString() );
            // request.setIncomingWss( incomingRequestWss );
            String existingMediaType = me.getResponseHeaders().get( "Content-Type", "" );
            if( !StringUtils.isNullOrEmpty( existingMediaType ) )
            {
              request.setMediaType( existingMediaType );
            }
            if( "application/octet-stream".equals( existingMediaType )
                || "application/x-amf".equals( existingMediaType ) )
            {
              request.attachBinaryData( me.getRequestContent().getBytes(), existingMediaType );
            }
            else
            {
              request.setRequestContent( me.getRequestContent() );
              test.getTestRequest().setRequestContent( me.getRequestContent() );
            }
            Attachment[] requestAttachments = me.getRequestAttachments();
            if( requestAttachments != null )
            {
              for( Attachment attachment : requestAttachments )
              {
                request.importAttachment( attachment );
              }
            }
            // }

          }
View Full Code Here


        RecordedRequest recordedRequest = map.get( arg0.getUrl() );
        if( recordedRequest != null )
        {
          if( httpHtmlResponseView != null && httpHtmlResponseView.isRecordHttpTrafic() )
          {
            HttpTestRequest httpTestRequest = ( HttpTestRequest )( httpHtmlResponseView.getDocument()
                .getRequest() );
            WsdlTestCase testCase = httpTestRequest.getTestStep().getTestCase();
            int count = testCase.getTestStepList().size();

            String url2 = recordedRequest.getUrl();
            try
            {
View Full Code Here

    testStepConfig.setConfig( httpRequest );
    testStepConfig.setName( name );
    HttpTestRequestStep testStep = ( HttpTestRequestStep )targetTestCase.addTestStep( testStepConfig );

    desktopPanel = ( HttpTestRequestDesktopPanel )UISupport.selectAndShow( testStep );
    HttpTestRequest testRequest = null;
    try
    {
      testRequest = testStep.getTestRequest();
      WsdlSubmit<HttpRequest> submitRequest = testRequest.submit( new WsdlTestRunContext( testStep ), true );

      if( startRecording )
      {
        submitRequest.waitUntilFinished();
        HttpHtmlResponseView htmlResponseView = ( HttpHtmlResponseView )desktopPanel.getResponseEditor().getViews()
View Full Code Here

    testStepConfig.setConfig( httpRequest );
    testStepConfig.setName( name );
    HttpTestRequestStep testStep = ( HttpTestRequestStep )targetTestCase.addTestStep( testStepConfig );

    desktopPanel = ( HttpTestRequestDesktopPanel )UISupport.selectAndShow( testStep );
    HttpTestRequest testRequest = null;
    try
    {
      testRequest = testStep.getTestRequest();
      WsdlSubmit<HttpRequest> submitRequest = testRequest.submit( new WsdlTestRunContext( testStep ), true );
      if( startRecording )
      {
        submitRequest.waitUntilFinished();
        HttpHtmlResponseView htmlResponseView = ( HttpHtmlResponseView )desktopPanel.getResponseEditor().getViews()
            .get( 2 );
View Full Code Here

                        HttpTestRequestStep test = (HttpTestRequestStep) testCase.insertTestStep(
                                httpRequestStepFactory.createConfig(me, "Monitor Request " + (row + 1)), -1);

                        test.getTestRequest().setRequestHeaders(excludeProxyHeaders(me.getRequestHeaders()));

                        HttpTestRequest request = (HttpTestRequest) test.getHttpRequest();

                        request.setEndpoint(me.getTargetUrl().toString());
                        // request.setIncomingWss( incomingRequestWss );
                        String existingMediaType = me.getResponseHeaders().get("Content-Type", "");
                        if (!StringUtils.isNullOrEmpty(existingMediaType)) {
                            request.setMediaType(existingMediaType);
                        }
                        if ("application/octet-stream".equals(existingMediaType)
                                || "application/x-amf".equals(existingMediaType)) {
                            request.attachBinaryData(me.getRequestContent().getBytes(), existingMediaType);
                        } else {
                            request.setRequestContent(me.getRequestContent());
                            test.getTestRequest().setRequestContent(me.getRequestContent());
                        }
                        Attachment[] requestAttachments = me.getRequestAttachments();
                        if (requestAttachments != null) {
                            for (Attachment attachment : requestAttachments) {
                                request.importAttachment(attachment);
                            }
                        }
                        // }

                    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.teststeps.HttpTestRequest$PropertyChangeNotifier

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.