Examples of XFormDialogBuilder


Examples of com.eviware.x.form.XFormDialogBuilder

    return builder.finish();
  }

  private void buildDialog()
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Contains Assertion" );
    XForm mainForm = builder.createForm( "Basic" );

    mainForm.addTextField( CONTENT, "Content to check for", XForm.FieldType.TEXTAREA ).setWidth( 40 );
    mainForm.addCheckBox( IGNORE_CASE, "Ignore case in comparison" );
    mainForm.addCheckBox( USE_REGEX, "Use token as Regular Expression" );

    dialog = builder.buildDialog( builder.buildOkCancelHelpActions( HelpUrls.SIMPLE_CONTAINS_HELP_URL ),
        "Specify options", UISupport.OPTIONS_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return true;
  }

  private void buildDialog()
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "WS-A properties to assert" );
    XForm mainForm = builder.createForm( "Basic" );
    mainForm.addCheckBox( ASSERT_ACTION, "Check if 'wsa:Action' exists and has the right value" );
    mainForm.addCheckBox( ASSERT_TO, "Check if 'wsa:To' exists" );
    // mainForm.addCheckBox(ASSERT_REPLY_TO, "Check if 'wsa:ReplyTo' exists");
    // mainForm.addCheckBox(ASSERT_MESSAGE_ID,
    // "Check if 'wsa:MessageId' exists");
    mainForm.addCheckBox( ASSERT_RELATES_TO, "Check if 'wsa:RelatesTo' exists and is equal to request MessageID" );
    mainForm.addCheckBox( ASSERT_REPLY_TO_REF_PARAMS, "Check if 'wsa:ReplyTo' ReferenceParameters exist" );
    mainForm.addCheckBox( ASSERT_FAULT_TO_REF_PARAMS, "Check if 'wsa:FaultTo' ReferenceParameters exist" );

    dialog = builder.buildDialog( builder.buildOkCancelHelpActions( HelpUrls.SIMPLE_CONTAINS_HELP_URL ),
        "Specify options", UISupport.OPTIONS_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return true;
  }

  private void buildDialog()
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Ws-a properties to assert" );
    XForm mainForm = builder.createForm( "Basic" );
    mainForm.addCheckBox( ASSERT_ACTION, "Check if 'wsa:Action' exists" );
    mainForm.addCheckBox( ASSERT_TO, "Check if 'wsa:To' exists" );
    mainForm.addCheckBox( ASSERT_REPLY_TO, "Check if 'wsa:ReplyTo' exists" );
    mainForm.addCheckBox( ASSERT_MESSAGE_ID, "Check if 'wsa:MessageId' exists" );
    // mainForm.addCheckBox(ASSERT_RELATES_TO,
    // "Check if 'wsa:RelatesTo' exists");
    // mainForm.addCheckBox(ASSERT_REPLY_TO_REF_PARAMS,
    // "Check if 'wsa:ReplyTo' ReferenceParameters exist");
    // mainForm.addCheckBox(ASSERT_FAULT_TO_REF_PARAMS,
    // "Check if 'wsa:FaultTo' ReferenceParameters exist");

    dialog = builder.buildDialog( builder.buildOkCancelHelpActions( HelpUrls.SIMPLE_CONTAINS_HELP_URL ),
        "Specify options", UISupport.OPTIONS_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

  public void perform( SecurityTest securityTest, Object param )
  {
    if( dialog == null )
    {
      XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "SecurityTest Options" );
      form = builder.createForm( "Basic" );
      form.addCheckBox( FAIL_ON_ERROR, "Fail on error" ).addFormFieldListener( new XFormFieldListener()
      {

        public void valueChanged( XFormField sourceField, String newValue, String oldValue )
        {
          form.getFormField( FAIL_SECURITYTEST_ON_ERROR ).setEnabled( !Boolean.parseBoolean( newValue ) );
        }
      } );
      form.addCheckBox( FAIL_SECURITYTEST_ON_ERROR, "Fail SecurityTest if it has failed TestSteps" );

      dialog = builder.buildDialog( builder.buildOkCancelHelpActions( HelpUrls.TESTCASEOPTIONS_HELP_URL ),
          "Specify general options for this SecurityTest", UISupport.OPTIONS_ICON );
    }

    StringToStringMap values = new StringToStringMap();
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return testStep;
  }

  private void buildDialog()
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Add Request to TestCase" );
    XForm mainForm = builder.createForm( "Basic" );

    mainForm.addTextField( STEP_NAME, "Name of TestStep", XForm.FieldType.URL ).setWidth( 30 );

    closeRequestCheckBox = mainForm.addCheckBox( CLOSE_REQUEST, "(closes the current window for this request)" );
    mainForm.addCheckBox( SHOW_TESTCASE, "(opens the TestCase editor for the target TestCase)" );
    mainForm.addCheckBox( SHOW_REQUEST, "(opens the Request editor for the created TestStep)" );

    dialog = builder.buildDialog( builder.buildOkCancelActions(),
        "Specify options for adding the request to a TestCase", UISupport.OPTIONS_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return builder.finish();
  }

  private void buildDialog()
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "NotContains Assertion" );
    XForm mainForm = builder.createForm( "Basic" );

    mainForm.addTextField( CONTENT, "Content to check for", XForm.FieldType.TEXTAREA ).setWidth( 40 );
    mainForm.addCheckBox( IGNORE_CASE, "Ignore case in comparison" );
    mainForm.addCheckBox( USE_REGEX, "Use token as Regular Expression" );

    dialog = builder.buildDialog( builder.buildOkCancelHelpActions( HelpUrls.SIMPLE_NOT_CONTAINS_HELP_URL ),
        "Specify options", UISupport.OPTIONS_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    super( "WADL2Java", "Generates java code from WADL" );
  }

  protected XFormDialog buildDialog( Interface modelItem )
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "WADL2Java" );

    XForm mainForm = builder.createForm( "Basic" );

    mainForm.addTextField( OUTPUT, "Root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( PACKAGE, "Default Package for generated classes", XForm.FieldType.JAVA_PACKAGE );

    mainForm.addCheckBox( AUTOMATIC_PACKAGE_NAMES, "Generates starting point code for a client mainline" );
    mainForm.addTextField( JAXB_CUSTOMIZATION, "Space-separated list of JAXWS or JAXB binding files",
        XForm.FieldType.TEXT );

    buildArgsForm( builder, true, "wadl2java" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.WADL2JAVA_HELP_URL, modelItem ),
        "Specify arguments for reference wadl2java", UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return true;
  }

  private void buildDialog()
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Add Request to TestCase" );
    XForm mainForm = builder.createForm( "Basic" );

    mainForm.addTextField( STEP_NAME, "Name of TestStep", XForm.FieldType.URL ).setWidth( 30 );

    mainForm.addCheckBox( ADD_SOAP_RESPONSE_ASSERTION, "(adds validation that response is a SOAP message)" );
    mainForm.addCheckBox( ADD_SCHEMA_ASSERTION, "(adds validation that response complies with its schema)" );
    mainForm.addCheckBox( ADD_SOAP_FAULT_ASSERTION, "(adds validation that response is not a SOAP Fault)" );
    mainForm.addCheckBox( CREATE_OPTIONAL_ELEMENTS_IN_REQUEST, "(creates optional content in sample request)" );

    dialog = builder.buildDialog( builder.buildOkCancelActions(),
        "Specify options for adding a new request to a TestCase", UISupport.OPTIONS_ICON );

    dialogValues.put( ADD_SOAP_RESPONSE_ASSERTION, Boolean.TRUE.toString() );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

      }
    }

    private void buildBasicDialog()
    {
      XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Basic Authentication" );
      XForm mainForm = builder.createForm( "Basic" );
      mainForm.addLabel( "Info", "" );
      mainForm.addTextField( "Username", "Username for authentication", XForm.FieldType.TEXT );
      mainForm.addTextField( "Password", "Password for authentication", XForm.FieldType.PASSWORD );

      basicDialog = builder.buildDialog( builder.buildOkCancelActions(), "Specify Basic Authentication Credentials",
          UISupport.OPTIONS_ICON );
    }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

          UISupport.OPTIONS_ICON );
    }

    private void buildNtDialog()
    {
      XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "NT Authentication" );
      XForm mainForm = builder.createForm( "Basic" );
      mainForm.addLabel( "Info", "" );
      mainForm.addTextField( "Username", "Username for authentication", XForm.FieldType.TEXT );
      mainForm.addTextField( "Password", "Password for authentication", XForm.FieldType.PASSWORD );
      mainForm.addTextField( "Domain", "NT Domain for authentication", XForm.FieldType.TEXT );

      ntDialog = builder.buildDialog( builder.buildOkCancelActions(), "Specify NT Authentication Credentials",
          UISupport.OPTIONS_ICON );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.