Package com.eviware.x.form

Examples of com.eviware.x.form.XFormDialogBuilder


        setConfiguration(builder.finish());
    }

    private void buildDialog() {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Step Maximum Assertion");
        XForm form = builder.createForm("Basic");

        form.addTextField(TestStepMaxAssertion.NAME_FIELD, "Name of this assertion", FieldType.TEXT);
        form.addTextField(TestStepMaxAssertion.MINIMUM_REQUESTS_FIELD, "Minimum steps before asserting", FieldType.TEXT);
        form.addTextField(TestStepMaxAssertion.MAX_VALUE_FIELD, "Maximum allowed step time", FieldType.TEXT);
        form.addTextField(TestStepMaxAssertion.MAX_ERRORS_FIELD, "Maximum number of errors before failing",
                FieldType.TEXT);
        form.addComboBox(TestStepMaxAssertion.TEST_STEP_FIELD, new String[0], "TestStep to assert");

        dialog = builder.buildDialog(
                builder.buildOkCancelHelpActions(HelpUrls.STEP_MAXIMUM_LOAD_TEST_ASSERTION_HELP_URL),
                "Specify options for this Step Maximum Assertion", UISupport.OPTIONS_ICON);
    }
View Full Code Here


        setConfiguration(createConfiguration());
        return true;
    }

    private void buildDialog() {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Valid HTTP status codes Assertion");
        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(CODES, "Comma-separated acceptable status codes", XForm.FieldType.TEXTAREA).setWidth(40);

        // TODO : update help URL
        dialog = builder.buildDialog(
                builder.buildOkCancelHelpActions(HelpUrls.SECURITY_VALID_HTTP_CODES_ASSERTION_HELP), "Specify codes",
                UISupport.OPTIONS_ICON);
    }
View Full Code Here

        return false;
    }

    private void buildDialog() {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Max Errors Assertion");
        XForm form = builder.createForm("Basic");

        form.addTextField(NAME_FIELD, "Name of this assertion", FieldType.TEXT);
        form.addTextField(MAX_ABSOLUTE_ERRORS_FIELD, "Maximum number of errors before failing", FieldType.TEXT);
        form.addTextField(MAX_RELATIVE_ERRORS_FIELD, "Relative maximum number of errors before failing (0-1)",
                FieldType.TEXT);
        form.addComboBox(TEST_STEP_FIELD, new String[0], "TestStep to assert");

        dialog = builder.buildDialog(
                builder.buildOkCancelHelpActions(HelpUrls.MAX_ERRORS_LOAD_TEST_ASSERTION_HELP_URL),
                "Specify options for this Max Errors Assertion", UISupport.OPTIONS_ICON);
    }
View Full Code Here

        setConfiguration(createConfiguration());
        return true;
    }

    private void buildDialog() {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder("Invalid HTTP status codes Assertion");
        XForm mainForm = builder.createForm("Basic");

        mainForm.addTextField(CODES, "Comma-separated not acceptable status codes", XForm.FieldType.TEXTAREA).setWidth(
                40);

        // TODO : update help URL
        dialog = builder.buildDialog(
                builder.buildOkCancelHelpActions(HelpUrls.SECURITY_INVALID_HTTP_CODES_ASSERTION_HELP), "Specify codes",
                UISupport.OPTIONS_ICON);
    }
View Full Code Here

        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

        return values;
    }

    protected XFormDialog buildDialog(Interface modelItem) {
        XFormDialogBuilder builder = XFormFactory.createDialogBuilder(messages.get("Dialog.Title"));

        XForm mainForm = builder.createForm(messages.get("Dialog.Basic.Label"));
        addWSDLFields(mainForm, modelItem);

        mainForm.addTextField(OUTPUT, messages.get("Dialog.Basic.Output"), XForm.FieldType.PROJECT_FOLDER);
        mainForm.addCheckBox(SERVER_SIDE, messages.get("Dialog.Basic.ServerSide"));
        mainForm.addCheckBox(ALL, messages.get("Dialog.Basic.All"));

        mainForm.addComboBox(DEPLOY_SCOPE, new String[]{"none", "Application", "Session", "Request"},
                messages.get("Axis1XWSDL2JavaAction.Dialog.Basic.AddScope"));

        mainForm.addComboBox(SKELETON_DEPLOY, new String[]{"none", "true", "false"},
                messages.get("Dialog.Basic.DeploySkeleton"));

        mainForm.addCheckBox(NO_IMPORTS, messages.get("Dialog.Basic.NoImports"));
        mainForm.addCheckBox(NO_WRAPPED, messages.get("Dialog.Basic.NoWrapped"));
        mainForm.addCheckBox(TEST_CASE, messages.get("Dialog.Basic.TestCase"));
        mainForm.addCheckBox(HELPER_GEN, messages.get("Dialog.Basic.HelperGen"));
        mainForm.addCheckBox(WRAP_ARRAYS, messages.get("Dialog.Basic.WrapArrays"));

        XForm advForm = builder.createForm(messages.get("Dialog.Advanced.Label"));
        advForm.addComboBox(TYPE_MAPPING_VERSION, new String[]{"1.2", "1.1"},
                messages.get("Dialog.Advanced.TypeMappingVersion"));

        advForm.addTextField(IMPLCLASS, messages.get("Dialog.Advanced.ImplClass"), XForm.FieldType.JAVA_CLASS);
        advForm.addTextField(FACTORY, messages.get("Dialog.Advanced.Factory"), XForm.FieldType.JAVA_CLASS);

        advForm.addTextField(PACKAGE, messages.get("Dialog.Advanced.Package"), XForm.FieldType.JAVA_PACKAGE);
        advForm.addNameSpaceTable(NAMESPACE_MAPPING, modelItem);

        advForm.addTextField(USERNAME, messages.get("Dialog.Advanced.Username"), XForm.FieldType.TEXT);
        advForm.addTextField(PASSWORD, messages.get("Dialog.Advanced.Password"), XForm.FieldType.PASSWORD);

        buildArgsForm(builder, true, "WSDL2Java"); //$NON-NLS-1$

        return builder.buildDialog(buildDefaultActions(HelpUrls.AXIS1X_HELP_URL, modelItem),
                messages.get("Dialog.Description"), UISupport.TOOL_ICON);
    }
View Full Code Here

        super("Options", "Sets options for this SecurityTest");
    }

    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.SECURITYTESTEDITOR_HELP_URL),
                    "Specify general options for this SecurityTest", UISupport.OPTIONS_ICON);
        }

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

        setConfiguration(createConfiguration());
        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

        setConfiguration(createConfiguration());
        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

        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

TOP

Related Classes of com.eviware.x.form.XFormDialogBuilder

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.