Package com.eviware.soapui.support.xml

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationReader.readString()


        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);
        setName(reader.readString(TestStepMaxAssertion.NAME_ELEMENT, "Step Maximum"));
        minRequests = reader.readInt(TestStepMaxAssertion.MIN_REQUESTS_ELEMENT, 100);
        maxValue = reader.readInt(TestStepMaxAssertion.MAX_VALUE_ELEMENT, 1000);
        setTargetStep(reader.readString(TestStepMaxAssertion.TEST_STEP_ELEMENT, TestStepMaxAssertion.ANY_TEST_STEP));
        maxErrors = reader.readInt(MAX_ERRORS_ELEMENT, -1);
    }

    public String assertResult(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
                               TestCaseRunner testRunner, TestCaseRunContext runContext) {
View Full Code Here


        init();
    }

    private void init() {
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        codes = reader.readString(CODES, "");
    }

    @Override
    protected String internalAssertResponse(MessageExchange messageExchange, SubmitContext context)
            throws AssertionException {
View Full Code Here

    private void init(LoadTestAssertionConfig assertionConfig) {
        XmlObject configuration = assertionConfig.getConfiguration();
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);

        setName(reader.readString(MaxErrorsAssertion.NAME_ELEMENT, "Max Errors"));
        maxAbsoluteErrors = reader.readInt(MAX_ABSOLUTE_ERRORS_ELEMENT, 100);
        maxRelativeErrors = reader.readFloat(MAX_RELATIVE_ERRORS_ELEMENT, (float) 0.2);
        setTargetStep(reader.readString(TEST_STEP_ELEMENT, ALL_TEST_STEPS));
    }
View Full Code Here

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);

        setName(reader.readString(MaxErrorsAssertion.NAME_ELEMENT, "Max Errors"));
        maxAbsoluteErrors = reader.readInt(MAX_ABSOLUTE_ERRORS_ELEMENT, 100);
        maxRelativeErrors = reader.readFloat(MAX_RELATIVE_ERRORS_ELEMENT, (float) 0.2);
        setTargetStep(reader.readString(TEST_STEP_ELEMENT, ALL_TEST_STEPS));
    }

    public String getDescription() {
        return "testStep: " + getTargetStep() + ", maxAbsoluteErrors: " + maxAbsoluteErrors + ", maxRelativeErrors; "
                + maxRelativeErrors;
View Full Code Here

    private void init(LoadTestAssertionConfig assertionConfig) {
        XmlObject configuration = assertionConfig.getConfiguration();

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);
        setName(reader.readString(TestStepTpsAssertion.NAME_ELEMENT, "Step TPS"));
        minRequests = reader.readInt(TestStepTpsAssertion.MIN_REQUESTS_ELEMENT, 100);
        minValue = reader.readInt(TestStepTpsAssertion.MIN_VALUE_ELEMENT, 10);
        setTargetStep(reader.readString(TestStepTpsAssertion.TEST_STEP_ELEMENT, TestStepTpsAssertion.ANY_TEST_STEP));
        maxErrors = reader.readInt(MAX_ERRORS_ELEMENT, -1);
    }
View Full Code Here

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);
        setName(reader.readString(TestStepTpsAssertion.NAME_ELEMENT, "Step TPS"));
        minRequests = reader.readInt(TestStepTpsAssertion.MIN_REQUESTS_ELEMENT, 100);
        minValue = reader.readInt(TestStepTpsAssertion.MIN_VALUE_ELEMENT, 10);
        setTargetStep(reader.readString(TestStepTpsAssertion.TEST_STEP_ELEMENT, TestStepTpsAssertion.ANY_TEST_STEP));
        maxErrors = reader.readInt(MAX_ERRORS_ELEMENT, -1);
    }

    public String assertResult(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
                               TestCaseRunner testRunner, TestCaseRunContext runContext) {
View Full Code Here

        scriptEngine = SoapUIScriptEngineRegistry.create(this);
    }

    private void init() {
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        script = reader.readString(GROOVY_SCRIPT, "");
        checkResponse = reader.readBoolean(CHECK_RESPONSE, true);
        checkSeparateHTML = reader.readBoolean(CHECK_SEPARATE_HTML, false);
        groovyEditorModel.setScript(script);
    }
View Full Code Here

        init();
    }

    private void init() {
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        codes = reader.readString(CODES, "");
    }

    @Override
    protected String internalAssertResponse(MessageExchange messageExchange, SubmitContext context)
            throws AssertionException {
View Full Code Here

        }, this));
    }

    private void readConfig(TestStepConfig config) {
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(config.getConfig());
        delayString = reader.readString("delay", DEFAULT_DELAY);
    }

    @Override
    public String getLabel() {
        String str = running ? super.getName() + " [" + (delay - timeWaited) + "ms]" : super.getName() + " ["
View Full Code Here

        return logger;
    }

    private void readConfig(TestStepConfig config) {
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(config.getConfig());
        scriptText = reader.readString(SCRIPT_PROPERTY, "");
    }

    private void saveScript(TestStepConfig config) {
        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add(SCRIPT_PROPERTY, scriptText);
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.