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

Examples of com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestInterface


    return true;
  }

  public JPanel buildOverviewPanel( RestTestRequestStep testStep )
  {
    RestTestRequestInterface request = testStep.getTestRequest();
    JPropertiesTable<RestTestRequestInterface> table = new JPropertiesTable<RestTestRequestInterface>(
        "REST TestRequest Properties" );

    // basic properties
    table.addProperty( "Name", "name", true );
    table.addProperty( "Description", "description", true );
    // table.addProperty( "Message Size", "contentLength", false );
    table.addProperty( "Encoding", "encoding", new String[] { null, "UTF-8", "iso-8859-1" } );

    if( request.getOperation() == null )
    {
      table.addProperty( "Path", "path", true );
    }
    else
    {
      table.addProperty( "Endpoint", "endpoint", request.getInterface() == null ? new String[0] : request
          .getInterface().getEndpoints() );
      table.addProperty( "Service", "serviceName" );
      table.addProperty( "Resource", "path" );
      table.addProperty( "Method", "restMethodName" );
    }

    table.addProperty( "Timeout", "timeout", true );

    table.addProperty( "Bind Address", "bindAddress", true );
    table.addProperty( "Follow Redirects", "followRedirects", JPropertiesTable.BOOLEAN_OPTIONS );

    StringList keystores = new StringList( request.getTestStep().getTestCase().getTestSuite().getProject()
        .getWssContainer().getCryptoNames() );
    keystores.add( "" );
    table.addProperty( "SSL Keystore", "sslKeystore", keystores.toStringArray() );

    table.addProperty( "Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS );
View Full Code Here


    public boolean hasDesktopPanel() {
        return true;
    }

    public JPanel buildOverviewPanel(RestTestRequestStep testStep) {
        RestTestRequestInterface request = testStep.getTestRequest();
        JPropertiesTable<RestTestRequestInterface> table = new JPropertiesTable<RestTestRequestInterface>(
                "REST TestRequest Properties");

        // basic properties
        table.addProperty("Name", "name", true);
        table.addProperty("Description", "description", true);
        // table.addProperty( "Message Size", "contentLength", false );
        table.addProperty("Encoding", "encoding", new String[]{null, "UTF-8", "iso-8859-1"});

        if (request.getOperation() == null) {
            table.addProperty("Path", "path", true);
        } else {
            table.addProperty("Endpoint", "endpoint", request.getInterface() == null ? new String[0] : request
                    .getInterface().getEndpoints());
            table.addProperty("Service", "serviceName");
            table.addProperty("Resource", "path");
            table.addProperty("Method", "restMethodName");
        }

        table.addProperty("Timeout", "timeout", true);

        table.addProperty("Bind Address", "bindAddress", true);
        table.addProperty("Follow Redirects", "followRedirects", JPropertiesTable.BOOLEAN_OPTIONS);

        StringList keystores = new StringList(request.getTestStep().getTestCase().getTestSuite().getProject()
                .getWssContainer().getCryptoNames());
        keystores.add("");
        table.addProperty("SSL Keystore", "sslKeystore", keystores.toStringArray());

        table.addProperty("Strip whitespaces", "stripWhitespaces", JPropertiesTable.BOOLEAN_OPTIONS);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestInterface

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.