Package com.eviware.soapui.impl.support.http

Examples of com.eviware.soapui.impl.support.http.HttpRequestTestStep


      return sourceStep;

    if( testCase == null )
      return null;

    HttpRequestTestStep step = testCase.findPreviousStepOfType( this.testStep, HttpRequestTestStep.class );
    return step == null ? null : step.getName();
  }
View Full Code Here


      return targetStep;

    if( testCase == null )
      return null;

    HttpRequestTestStep step = testCase.findNextStepOfType( this.testStep, HttpRequestTestStep.class );
    return step == null ? null : step.getName();
  }
View Full Code Here

    for( int c = 0; c < testCase.getTestStepCount(); c++ )
    {
      TestStep step = testCase.getTestStepAt( c );
      if( step instanceof HttpRequestTestStep )
      {
        HttpRequestTestStep requestStep = ( HttpRequestTestStep )step;
        Operation operation = requestStep.getTestRequest().getOperation();
        if( operation != null )
        {
          String[] endpoints = operation.getInterface().getEndpoints();
          for( int i = 0; i < endpoints.length; i++ )
          {
            endpointSet.add( endpoints[i] );
          }
        }
        currentEndpointSet.add( requestStep.getTestRequest().getEndpoint() );
      }
    }

    String selected = ( String )UISupport.prompt( "Select endpoint to set for all requests", "Set Endpoint",
        endpointSet.toArray(), currentEndpointSet.size() == 1 ? currentEndpointSet.iterator().next() : USE_CURRENT );

    if( selected == null || selected.equals( USE_CURRENT ) )
      return;

    int cnt = 0;

    for( int c = 0; c < testCase.getTestStepCount(); c++ )
    {
      TestStep step = testCase.getTestStepAt( c );
      if( step instanceof HttpRequestTestStep )
      {
        HttpRequestTestStep requestStep = ( HttpRequestTestStep )step;
        TestRequest testRequest = requestStep.getTestRequest();

        if( testRequest.getEndpoint() == null || !testRequest.getEndpoint().equals( selected ) )
        {
          testRequest.setEndpoint( selected );
          cnt++ ;
View Full Code Here

      propertyChangeSupport.firePropertyChange( TARGET_STEP_PROPERTY, evt.getOldValue(), evt.getNewValue() );
    }

    public TestProperty getSourceProperty()
    {
      HttpRequestTestStep previousStep = ( HttpRequestTestStep )getTestCase().findPreviousStepOfType(
          WsdlGotoTestStep.this, HttpRequestTestStep.class );
      return previousStep == null ? null : previousStep.getProperty( "Response" );
    }
View Full Code Here

        endpointSet.add(USE_CURRENT);

        for (int c = 0; c < testCase.getTestStepCount(); c++) {
            TestStep step = testCase.getTestStepAt(c);
            if (step instanceof HttpRequestTestStep) {
                HttpRequestTestStep requestStep = (HttpRequestTestStep) step;
                Operation operation = requestStep.getTestRequest().getOperation();
                if (operation != null) {
                    String[] endpoints = operation.getInterface().getEndpoints();
                    for (int i = 0; i < endpoints.length; i++) {
                        endpointSet.add(endpoints[i]);
                    }
                }
                currentEndpointSet.add(requestStep.getTestRequest().getEndpoint());
            }
        }

        String selected = (String) UISupport.prompt("Select endpoint to set for all requests", "Set Endpoint",
                endpointSet.toArray(), currentEndpointSet.size() == 1 ? currentEndpointSet.iterator().next() : USE_CURRENT);

        if (selected == null || selected.equals(USE_CURRENT)) {
            return;
        }

        int cnt = 0;

        for (int c = 0; c < testCase.getTestStepCount(); c++) {
            TestStep step = testCase.getTestStepAt(c);
            if (step instanceof HttpRequestTestStep) {
                HttpRequestTestStep requestStep = (HttpRequestTestStep) step;
                TestRequest testRequest = requestStep.getTestRequest();

                if (testRequest.getEndpoint() == null || !testRequest.getEndpoint().equals(selected)) {
                    testRequest.setEndpoint(selected);
                    cnt++;
                }
View Full Code Here

            conditionConfig.setTargetStep(evt.getNewValue().toString());
            propertyChangeSupport.firePropertyChange(TARGET_STEP_PROPERTY, evt.getOldValue(), evt.getNewValue());
        }

        public TestProperty getSourceProperty() {
            HttpRequestTestStep previousStep = (HttpRequestTestStep) getTestCase().findPreviousStepOfType(
                    WsdlGotoTestStep.this, HttpRequestTestStep.class);
            return previousStep == null ? null : previousStep.getProperty("Response");
        }
View Full Code Here

        if (testCase == null) {
            return null;
        }

        HttpRequestTestStep step = testCase.findPreviousStepOfType(this.testStep, HttpRequestTestStep.class);
        return step == null ? null : step.getName();
    }
View Full Code Here

        if (testCase == null) {
            return null;
        }

        HttpRequestTestStep step = testCase.findNextStepOfType(this.testStep, HttpRequestTestStep.class);
        return step == null ? null : step.getName();
    }
View Full Code Here

    }
  }

  @Override
  public boolean configure() {
    HttpRequestTestStep parent = (HttpRequestTestStep) this.getParent();
    HttpResponse response = parent.getHttpRequest().getResponse();
    String namespaces = "";
    if (response != null) {
      String xmlContent = response.getContentAsXml();
      try {
        namespaces = XmlUtils.declareXPathNamespaces(xmlContent);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.support.http.HttpRequestTestStep

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.