Package com.eviware.x.form

Examples of com.eviware.x.form.XForm


        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


        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(builder.finish());
    }

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

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

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

        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",
View Full Code Here

    }

    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

        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 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

        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,
View Full Code Here

    }

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

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

        mainForm.addTextField(XSBTARGET, "Target directory for CLASS and XSB files", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(SRCTARGET, "Target directory for generated JAVA files", XForm.FieldType.PROJECT_FOLDER);
        mainForm.addTextField(JARFILE, "The name of the output JAR that will contain the result of compilation",
                XForm.FieldType.PROJECT_FILE);

        mainForm.addCheckBox(SRCONLY, "(Do not compile JAVA files or jar the output)");
        mainForm.addCheckBox(DOWNLOADS, "(Permit network downloads for imports and includes)");
        mainForm.addCheckBox(NOUPA, "(Do not enforce the unique particle attribution rule)");
        mainForm.addCheckBox(NOPVR, "(Do not enforce the particle valid (restriction) rule)");
        mainForm.addCheckBox(NOANN, "(Ignore annotations)");
        mainForm.addCheckBox(NOVDOC, "(Do not validate contents of <documentation> elements)");
        mainForm.addCheckBox(DEBUG, "(Compile with debug symbols)");

        mainForm.addComboBox(JAVASOURCE, new String[]{"1.5", "1.4"},
                "Generate Java source compatible for the specified Java version");

        mainForm.addTextField(ALLOWMDEF,
                "Ignore multiple defs in given namespaces. Use  ##local  to specify the no-namespace in that list",
                XForm.FieldType.TEXT);
        mainForm.addTextField(CATALOG, "Catalog file to use for resolving external entities",
                XForm.FieldType.PROJECT_FILE);
        mainForm.addTextField(XSDCONFIG, "Path to .xsdconfig file containing type-mapping information",
                XForm.FieldType.PROJECT_FILE);

        mainForm.addCheckBox(VERBOSE, "(Print more informational messages)");

        buildArgsForm(builder, false, "scomp");

        return builder.buildDialog(buildDefaultActions(HelpUrls.XMLBEANS_HELP_URL, modelItem),
                "Specify arguments for XmlBeans 2.X scomp", UISupport.TOOL_ICON);
View Full Code Here

TOP

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

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.