Examples of XFormDialogBuilder


Examples of com.eviware.x.form.XFormDialogBuilder

    if( modelItem == null )
      return null;

    proVersion = isProVersion( modelItem );

    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Launch LoadTestRunner" );

    mainForm = builder.createForm( "Basic" );
    mainForm.addComboBox( TESTSUITE, new String[] {}, "The TestSuite to run" ).addFormFieldListener(
        new XFormFieldListener()
        {

          public void valueChanged( XFormField sourceField, String newValue, String oldValue )
          {
            updateCombos();
          }
        } );

    mainForm.addComboBox( TESTCASE, new String[] {}, "The TestCase to run" ).addFormFieldListener(
        new XFormFieldListener()
        {

          public void valueChanged( XFormField sourceField, String newValue, String oldValue )
          {
            updateCombos();
          }
        } );
    mainForm.addComboBox( LOADTEST, new String[] {}, "The LoadTest to run" );
    mainForm.addSeparator();

    XFormTextField path = mainForm.addTextField( TESTRUNNERPATH, "Folder containing TestRunner.bat to use",
        XForm.FieldType.FOLDER );
    path.setValue( System.getProperty( "soapui.home", "" ) );
    mainForm.addCheckBox( SAVEPROJECT, "Saves project before running" ).setEnabled( !modelItem.isRemote() );
    mainForm.addCheckBox( SAVEAFTER, "Sets to save the project file after tests have been run" );
    mainForm.addCheckBox( ADDSETTINGS, "Adds global settings to command-line" );
    mainForm.addSeparator();
    mainForm.addTextField( PROJECTPASSWORD, "Set project password", XForm.FieldType.PASSWORD );
    mainForm.addTextField( SOAPUISETTINGSPASSWORD, "Set soapui-settings.xml password", XForm.FieldType.PASSWORD );

    advForm = builder.createForm( "Overrides" );
    advForm.addComboBox( ENDPOINT, new String[] { "" }, "endpoint to forward to" );
    advForm.addTextField( HOSTPORT, "Host:Port to use for requests", XForm.FieldType.TEXT );
    advForm.addTextField( LIMIT, "Limit for LoadTest", XForm.FieldType.TEXT );
    advForm.addTextField( THREADCOUNT, "ThreadCount for LoadTest", XForm.FieldType.TEXT );
    advForm.addSeparator();
    advForm.addTextField( USERNAME, "The username to set for all requests", XForm.FieldType.TEXT );
    advForm.addTextField( PASSWORD, "The password to set for all requests", XForm.FieldType.PASSWORD );
    advForm.addTextField( DOMAIN, "The domain to set for all requests", XForm.FieldType.TEXT );
    advForm.addComboBox( WSSTYPE, new String[] { "", "Text", "Digest" }, "The username to set for all requests" );

    reportForm = builder.createForm( "Reports" );
    createReportTab();

    propertyForm = builder.createForm( "Properties" );
    propertyForm.addComponent( GLOBALPROPERTIES, createTextArea() );
    propertyForm.addComponent( SYSTEMPROPERTIES, createTextArea() );
    propertyForm.addComponent( PROJECTPROPERTIES, createTextArea() );

    setToolsSettingsAction( null );
    buildArgsForm( builder, false, "TestRunner" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.TESTRUNNER_HELP_URL, modelItem ),
        "Specify arguments for launching soapUI LoadTestRunner", UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return values;
  }

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

    XForm mainForm = builder.createForm( "Basic" );
    addWSDLFields( mainForm, modelItem );

    mainForm.addTextField( OUTPUT, "The root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( MAPPING, "mapping file to generate", XForm.FieldType.PROJECT_FILE );
    mainForm.addCheckBox( UNWRAP, "unwrap doc-literal operations" );

    mainForm.addNameSpaceTable( NAMESPACE_MAPPING, modelItem );

    mainForm.addSeparator( "webservices.xml generation options" );
    ejbLinkField = mainForm.addTextField( EJB_LINK, "The ejb-jar.xml ejb-link for Stateless Session Bean endpoints",
        XForm.FieldType.TEXT );
    ejbLinkField.addFormFieldListener( new XFormFieldListener()
    {
      public void valueChanged( XFormField sourceField, String newValue, String oldValue )
      {
        servletLinkField.setEnabled( newValue.length() == 0 );
        appendField.setEnabled( newValue.length() > 0 );
      }
    } );

    servletLinkField = mainForm.addTextField( SERVLET_LINK,
        "The web.xml servlet-link that is used by Java Service Endpoints (WAR)", XForm.FieldType.TEXT );
    servletLinkField.addFormFieldListener( new XFormFieldListener()
    {
      public void valueChanged( XFormField sourceField, String newValue, String oldValue )
      {
        ejbLinkField.setEnabled( newValue.length() == 0 );
        appendField.setEnabled( newValue.length() > 0 );
      }
    } );

    appendField = mainForm.addCheckBox( APPEND, "append to existing file" );
    appendField.setEnabled( false );
    buildArgsForm( builder, false, "wstools" );

    ActionList actions = buildDefaultActions( HelpUrls.WSTOOLS_HELP_URL, modelItem );
    actions.addAction( new JBossWSShowConfigFileAction( "JBossWS Wsdl2Java",
        "Contents of generated wsconfig.xml file", modelItem ) );
    return builder.buildDialog( actions, "Specify arguments for JBossWS wstools wsdl2java functionality",
        UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    super( "Oracle Proxy Artifacts", "Generates Oracle Proxy artifacts using the wsa.jar utility" );
  }

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

    XForm mainForm = builder.createForm( "Basic" );
    addWSDLFields( mainForm, modelItem );

    mainForm.addTextField( OUTPUT, "The root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( PACKAGE, "The target package for generated classes", XForm.FieldType.JAVA_PACKAGE );

    buildArgsForm( builder, true, "wsa" );

    ActionList actions = buildDefaultActions( HelpUrls.ORACLEWSA_HELP_URL, modelItem );
    return builder.buildDialog( actions, "Specify arguments for Oracle wsa.jar genProxy functionality",
        UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    if( modelItem == null )
      return null;

    proVersion = isProVersion( modelItem );

    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "Launch TestRunner" );

    mainForm = builder.createForm( "Basic" );
    mainForm.addComboBox( TESTSUITE, new String[] {}, "The TestSuite to run" ).addFormFieldListener(
        new XFormFieldListener()
        {

          public void valueChanged( XFormField sourceField, String newValue, String oldValue )
          {
            List<String> testCases = new ArrayList<String>();
            String tc = mainForm.getComponentValue( TESTCASE );

            if( newValue.equals( ALL_VALUE ) )
            {
              for( TestSuite testSuite : testSuites )
              {
                for( TestCase testCase : testSuite.getTestCaseList() )
                {
                  if( !testCases.contains( testCase.getName() ) )
                    testCases.add( testCase.getName() );
                }
              }
            }
            else
            {
              TestSuite testSuite = getModelItem().getTestSuiteByName( newValue );
              if( testSuite != null )
                testCases.addAll( Arrays.asList( ModelSupport.getNames( testSuite.getTestCaseList() ) ) );
            }

            testCases.add( 0, ALL_VALUE );
            mainForm.setOptions( TESTCASE, testCases.toArray() );

            if( testCases.contains( tc ) )
            {
              mainForm.getFormField( TESTCASE ).setValue( tc );
            }
          }
        } );

    mainForm.addComboBox( TESTCASE, new String[] {}, "The TestCase to run" );
    mainForm.addSeparator();

    mainForm.addCheckBox( ENABLEUI, "Enables UI components in scripts" );
    mainForm.addTextField( TESTRUNNERPATH, "Folder containing TestRunner.bat to use", XForm.FieldType.FOLDER );
    mainForm.addCheckBox( SAVEPROJECT, "Saves project before running" ).setEnabled( !modelItem.isRemote() );
    mainForm.addCheckBox( ADDSETTINGS, "Adds global settings to command-line" );
    mainForm.addSeparator();
    mainForm.addTextField( PROJECTPASSWORD, "Set project password", XForm.FieldType.PASSWORD );
    mainForm.addTextField( SOAPUISETTINGSPASSWORD, "Set soapui-settings.xml password", XForm.FieldType.PASSWORD );
    mainForm.addCheckBox( IGNOREERRORS, "Do not stop if error occurs, ignore them" );
    mainForm.addCheckBox( SAVEAFTER, "Sets to save the project file after tests have been run" );

    advForm = builder.createForm( "Overrides" );
    advForm.addComboBox( ENDPOINT, new String[] { "" }, "endpoint to forward to" );
    advForm.addTextField( HOSTPORT, "Host:Port to use for requests", XForm.FieldType.TEXT );
    advForm.addSeparator();
    advForm.addTextField( USERNAME, "The username to set for all requests", XForm.FieldType.TEXT );
    advForm.addTextField( PASSWORD, "The password to set for all requests", XForm.FieldType.PASSWORD );
    advForm.addTextField( DOMAIN, "The domain to set for all requests", XForm.FieldType.TEXT );
    advForm.addComboBox( WSSTYPE, new String[] { "", "Text", "Digest" }, "The username to set for all requests" );

    reportForm = builder.createForm( "Reports" );
    reportForm.addCheckBox( PRINTREPORT, "Prints a summary report to the console" );
    reportForm.addCheckBox( EXPORTJUNITRESULTS, "Exports results to a JUnit-Style report" );
    reportForm.addCheckBox( EXPORTALL, "Exports all results (not only errors)" );
    reportForm.addTextField( ROOTFOLDER, "Folder to export to", XForm.FieldType.FOLDER );
    reportForm.addSeparator();
    reportForm.addCheckBox( COVERAGE, "Generate WSDL Coverage report (soapUI Pro only)" ).setEnabled( proVersion );
    reportForm.addCheckBox( OPEN_REPORT, "Opens generated report(s) in browser (soapUI Pro only)" ).setEnabled(
        proVersion );
    reportForm.addTextField( GENERATEREPORTSEACHTESTCASE, "Report to Generate (soapUI Pro only)",
        XForm.FieldType.TEXT ).setEnabled( proVersion );
    reportForm.addTextField( REPORTFORMAT, "Choose report format(s), comma-separated (soapUI Pro only)",
        XForm.FieldType.TEXT ).setEnabled( proVersion );

    propertyForm = builder.createForm( "Properties" );
    propertyForm.addComponent( GLOBALPROPERTIES, createTextArea() );
    propertyForm.addComponent( SYSTEMPROPERTIES, createTextArea() );
    propertyForm.addComponent( PROJECTPROPERTIES, createTextArea() );

    setToolsSettingsAction( null );
    buildArgsForm( builder, false, "TestRunner" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.TESTRUNNER_HELP_URL, modelItem ),
        "Specify arguments for launching soapUI TestRunner", UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return values;
  }

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

    XForm wsdl2hAdvForm = builder.createForm( "wsdl2h" );

    wsdl2hAdvForm.addCheckBox( WSDL2H, null );
    addWSDLFields( wsdl2hAdvForm, modelItem );

    wsdl2hAdvForm.addTextField( WSDL2H_OUTPUT, "name of output file", XForm.FieldType.PROJECT_FILE );

    XForm soapcpp2AdvForm = builder.createForm( "soapcpp2" );

    soapcpp2AdvForm.addCheckBox( SOAPCPP2, null );

    wsdl2hAdvForm.addCheckBox( GENERATE_INDEXED_STRUCT, null );
    wsdl2hAdvForm.addCheckBox( GENERATE_C_SOURCE, null );
    wsdl2hAdvForm.addCheckBox( DOM, null );
    wsdl2hAdvForm.addCheckBox( DONT_QUALIFY_ENUM_NAMES, null );
    wsdl2hAdvForm.addCheckBox( FLAT_CPP_CLASS_HIERARCHY, null );
    wsdl2hAdvForm.addCheckBox( GLOBAL_TOP_LEVEL_DECLARATIONS, null );
    wsdl2hAdvForm.addTextField( PATH, "use path to find files", XForm.FieldType.PROJECT_FOLDER );
    wsdl2hAdvForm.addCheckBox( INCLUDE_LICENSE_INFORMATION, null );
    wsdl2hAdvForm.addCheckBox( USE_XSD_H, null );
    wsdl2hAdvForm.addTextField( BASE_NAMESPACE_PREFIX_INSTEAD_OF_NS,
        "use name as the base namespace prefix name instead of ns", XForm.FieldType.TEXT );
    wsdl2hAdvForm.addTextField( BASE_NAMESPACE_PREFIX_FOR_SERVICE_NS,
        "use name as the base namespace prefix name for service namespaces", XForm.FieldType.TEXT );

    wsdl2hAdvForm.addCheckBox( POLYMORPHIC_TYPES, null );
    wsdl2hAdvForm.addTextField( PROXY_HOST_PORT, "connect via proxy host and port (host:port)", XForm.FieldType.TEXT );
    wsdl2hAdvForm.addCheckBox( NO_STL, null );
    wsdl2hAdvForm.addTextField( TYPE_MAP_FILE, "use type map file instead of the default file typemap.dat",
        XForm.FieldType.PROJECT_FILE );
    wsdl2hAdvForm.addCheckBox( NO_UNIONS, null );
    wsdl2hAdvForm.addCheckBox( VERBOSE, null );
    wsdl2hAdvForm.addCheckBox( WRAP_RESPONSE_STRUCT, null );
    wsdl2hAdvForm.addCheckBox( NO_ANY, null );
    wsdl2hAdvForm.addCheckBox( TYPEDEF_SYNONYMS, null );

    soapcpp2AdvForm.addCheckBox( SOAP_11, null );
    soapcpp2AdvForm.addCheckBox( SOAP_12, null );
    soapcpp2AdvForm.addCheckBox( CLIENT_SIDE, null );
    soapcpp2AdvForm.addCheckBox( SERVER_SIDE, null );
    soapcpp2AdvForm.addCheckBox( NO_LIB, null );
    soapcpp2AdvForm.addCheckBox( SOAP_ACTION, null );
    soapcpp2AdvForm.addCheckBox( GENERATE_C_SOURCE_CPP, null );
    // soapcpp2AdvForm.addTextField(SAVE_PATH, "", XForm.FieldType.DIRECTORY);
    soapcpp2AdvForm.addCheckBox( SOAP_RPC, null );
    soapcpp2AdvForm.addCheckBox( SERVICE_PROXIES, null );
    soapcpp2AdvForm.addTextField( IMPORT_PATH, "use path(s) for #import", XForm.FieldType.PROJECT_FOLDER );
    soapcpp2AdvForm.addCheckBox( GENERATE_LINKABLE_MODULES, null );
    soapcpp2AdvForm.addCheckBox( GENERATE_MATLAB_CODE, null );
    soapcpp2AdvForm.addCheckBox( SERVICE_NAME, null );
    soapcpp2AdvForm.addTextField( NAME_PREFIX, "save files with new prefix name instead of 'soap'",
        XForm.FieldType.TEXT );
    soapcpp2AdvForm.addCheckBox( XSI_TYPED, null );
    soapcpp2AdvForm.addCheckBox( NO_GEN_WSDL_SCHEMA, null );
    soapcpp2AdvForm.addCheckBox( NO_GEN_SAMPLE_XML, null );

    return builder.buildDialog( buildDefaultActions( HelpUrls.GSOAP_HELP_URL, modelItem ),
        "Specify arguments for GSoap wsdl2h and soap2cpp", UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    super( "XFire 1.X Stubs", "Generates XFire 1.X stubs using the wsgen utility" );
  }

  protected XFormDialog buildDialog( Interface modelItem )
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "XFire 1.X Stubs" );

    XForm mainForm = builder.createForm( "Basic" );
    addWSDLFields( mainForm, modelItem );

    mainForm.addTextField( OUTPUT, "Root directory for all emitted files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( PACKAGE, "Package for generated classes", XForm.FieldType.JAVA_PACKAGE ).setRequired(
        true, "Package is required" );
    XFormField bindingCombo = mainForm.addComboBox( BINDING, new String[] { "jaxb", "xmlbeans" },
        "Binding framework to use" );

    XFormTextField cpField = mainForm.addTextField( CLASSPATH, "Classpath to generated xmlbeans for binding",
        XForm.FieldType.PROJECT_FILE );
    XFormTextField extBindingsField = mainForm.addTextField( EXTERNAL_BINDINGS, "External jaxb binding file(s)",
        XForm.FieldType.PROJECT_FILE );
    bindingCombo.addComponentEnabler( cpField, "xmlbeans" );
    bindingCombo.addComponentEnabler( extBindingsField, "jaxb" );

    mainForm.addTextField( PROFILE, "Profile to use for generating artifacts", XForm.FieldType.TEXT );
    mainForm.addTextField( BASE_URI, "Base URI to use", XForm.FieldType.URL );
    mainForm.addCheckBox( OVERWRITE, null );
    mainForm.addCheckBox( EXPLICIT_ANNOTATION, null );
    mainForm.addCheckBox( SERVER_STUBS, null );

    buildArgsForm( builder, true, "WsGen" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.XFIRE_HELP_URL, modelItem ),
        "Specify arguments for XFire 1.X WsGen", UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    super( "JAX-RPC Artifacts", "Generates JAX-RPC artifacts using wscompile" );
  }

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

    XForm mainForm = builder.createForm( "Basic" );
    addWSDLFields( mainForm, modelItem );

    mainForm
        .addTextField( PACKAGE, "the package of the classes generated by wscompile", XForm.FieldType.JAVA_PACKAGE );
    mainForm.addTextField( OUTPUT, "where to place generated output files", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addCheckBox( KEEP, "(Keep generated files)" );
    mainForm.addTextField( MAPPING, "Generate a J2EE mapping.xml file", XForm.FieldType.PROJECT_FILE );
    mainForm.addTextField( MODEL, "Write the internal model to the given file", XForm.FieldType.PROJECT_FILE );
    mainForm.addTextField( SOURCE, "Where to place generated source files", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( NONCLASS, "Where to place non-class generated files", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addCheckBox( OPTIMIZE, "(Optimize generated code)" );
    mainForm.addCheckBox( DEBUG, "(Generate debugging info)" );
    mainForm.addComboBox( SOURCE_VERSION, new String[] { "1.0.1", "1.0.3", "1.1", "1.1.1", "1.1.2" },
        "Generate code for the specified JAX-RPC SI version" );
    mainForm.addTextField( SECURITY, "Security configuration file to generate security code",
        XForm.FieldType.PROJECT_FILE );
    mainForm.addTextField( PROXY, "Specify a HTTP proxy server", XForm.FieldType.URL );

    XForm featuresForm = builder.createForm( "Features" );

    featuresForm.addCheckBox( DATAHANDLERONLY, "(Always map attachments to the DataHandler type)" );
    featuresForm.addCheckBox( DONOTUNWRAP, "(Disable unwrapping of document/literal wrapper elements in WSI mode)" );
    featuresForm.addCheckBox( EXPLICITCONTEXT, "(Turn on explicit service context mapping)" );
    featuresForm.addCheckBox( JAXBENUMTYPE, "(Map anonymous enumeration to its base type)" );
    featuresForm.addCheckBox( NODATABINDING, "(Turn off data binding for literal encoding)" );
    featuresForm.addCheckBox( NOENCODEDTYPES, "(Turn off encoding type information)" );
    featuresForm.addCheckBox( NOMULTIREFS, "(Turn off support for multiple references)" );
    featuresForm.addCheckBox( NORPCSTRUCTURES, "(Do not generate RPC structures)" );
    featuresForm.addCheckBox( NOVALIDATION, "(Turn off full validation of imported WSDL documents)" );
    featuresForm.addCheckBox( RESOLVEIDREF, "(Resolve xsd:IDREF)" );
    featuresForm.addCheckBox( SEARCHSCHEMA, "(Search schema aggressively for types)" );
    featuresForm.addCheckBox( SERIALIZEINTERFACES, "(Turn on direct serialization of interface types)" );
    featuresForm.addCheckBox( STRICT, "(Generate code strictly compliant with JAXRPC spec)" );
    featuresForm.addCheckBox( UNWRAP, "(Enable unwrapping of document/literal wrapper elements in WSI mode)" );
    featuresForm.addCheckBox( WSI,
        "(Enable WSI-Basic Profile features, to be used for document/literal and rpc/literal)" );

    XForm advForm = builder.createForm( "Advanced" );
    advForm.addNameSpaceTable( NAMESPACE_MAPPING, modelItem );

    buildArgsForm( builder, false, "wscompile" );

    ActionList actions = buildDefaultActions( HelpUrls.WSCOMPILE_HELP_URL, modelItem );
    actions.addAction( new WSCompileShowConfigFileAction( "JAX-RPC wscompile",
        "Contents of generated config.xml file", modelItem ) );

    return builder.buildDialog( actions, "Specify arguments for JAX-RPC wscompile", UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    super( "JBossWS JAX-WS Artifacts", "Generates JAX-WS artifacts using JBossWS wsconsume" );
  }

  protected XFormDialog buildDialog( Interface modelItem )
  {
    XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "JBossWS JAX-WS Artifacts" );

    XForm mainForm = builder.createForm( "Basic" );
    addWSDLFields( mainForm, modelItem );

    mainForm.addTextField( OUTPUT, "target directory for generated files.", XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( PACKAGE, "target package nam", XForm.FieldType.JAVA_PACKAGE );
    mainForm.addTextField( SOURCE_OUTPUT, "target directory for generated source files",
        XForm.FieldType.PROJECT_FOLDER );
    mainForm.addTextField( CATALOG, "catalog file to resolve external entity references",
        XForm.FieldType.PROJECT_FILE );
    mainForm.addTextField( BINDING_FILES, "comma-separated list of external JAX-WS or JAXB binding files",
        XForm.FieldType.TEXT );
    mainForm.addTextField( WSDLLOCATION, "@WebService.wsdlLocation and @WebServiceClient.wsdlLocation value",
        XForm.FieldType.TEXT );

    mainForm.addCheckBox( KEEP, "(keep generated files)" );
    mainForm.addCheckBox( STACKTRACE, "(show stacktrace for errors)" );

    buildArgsForm( builder, false, "wsconsume" );

    return builder.buildDialog( buildDefaultActions( HelpUrls.JBOSSWS_WSCONSUME_HELP_URL, modelItem ),
        "Specify arguments for JBossWS wsconsume", UISupport.TOOL_ICON );
  }
View Full Code Here

Examples of com.eviware.x.form.XFormDialogBuilder

    return testStep;
  }

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

    mainForm.addTextField( STEP_NAME, "Name of TestRequest Step", 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)" );

    dialog = builder.buildDialog( builder.buildOkCancelActions(), "Specify options for creating the TestRequest",
        UISupport.OPTIONS_ICON );

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

Examples of com.eviware.x.form.XFormDialogBuilder

  public void perform( WsdlTestCase testCase, Object param )
  {
    if( dialog == null )
    {
      XFormDialogBuilder builder = XFormFactory.createDialogBuilder( "TestCase Options" );
      form = builder.createForm( "Basic" );
      form.addCheckBox( SEARCH_PROPERTIES, "Search preceding TestSteps for property values" );
      form.addCheckBox( KEEP_SESSION, "Maintain HTTP session" );
      form.addCheckBox( FAIL_ON_ERROR, "Fail on error" ).addFormFieldListener( new XFormFieldListener()
      {

        public void valueChanged( XFormField sourceField, String newValue, String oldValue )
        {
          form.getFormField( FAIL_TESTCASE_ON_ERROR ).setEnabled( !Boolean.parseBoolean( newValue ) );
        }
      } );

      form.addCheckBox( FAIL_TESTCASE_ON_ERROR, "Fail TestCase if it has failed TestSteps" );
      form.addCheckBox( DISCARD_OK_RESULTS, "Discards successful TestStep results to preserve memory" );
      form.addTextField( SOCKET_TIMEOUT, "Socket timeout in milliseconds", FieldType.TEXT );
      form.addTextField( TESTCASE_TIMEOUT, "Timeout in milliseconds for entire TestCase", FieldType.TEXT );
      form.addTextField( MAXRESULTS, "Maximum number of TestStep results to keep in memory during a run",
          FieldType.TEXT );

      wsrmForm = builder.createForm( "WS-RM" );
      wsrmForm.addCheckBox( WS_RM_ENABLED, "Use WS-Reliable Messaging" );
      wsrmForm.addComboBox( WS_RM_VERSION, new String[] { WsrmVersionTypeConfig.X_1_0.toString(),
          WsrmVersionTypeConfig.X_1_1.toString(), WsrmVersionTypeConfig.X_1_2.toString() },
          "The  property for managing WS-RM version" );
      wsrmForm.addTextField( WS_RM_ACK_TO, "Acknowledgments To", FieldType.TEXT );
      wsrmForm.addTextField( WS_RM_EXPIRES, "Expires after", FieldType.TEXT );

      amfForm = builder.createForm( "AMF" );
      amfForm.addCheckBox( AMF_AUTHORISATION_ENABLE, "Enable AMF Session" ).addFormFieldListener(
          new AMFXFormFieldListener() );
      amfForm.addTextField( AMF_ENDPOINT, "AMF Authorization endpoint", FieldType.TEXT );
      amfForm.addTextField( AMF_LOGIN, "AMF Authorization usernmae", FieldType.TEXT );
      amfForm.addTextField( AMF_PASSWORD, "AMF Authorization password", FieldType.PASSWORD );

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

    StringToStringMap values = new StringToStringMap();
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.