Package com.eviware.soapui.support.xml

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


        builder.add("testString", "1234");

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(builder.finish());
        assertEquals((float) 0.123, reader.readFloat("testFloat", 0), 0);
        assertEquals(123, reader.readInt("testInt", 0));
        assertEquals("1234", reader.readString("testString", null));
    }
}
View Full Code Here


    public XPathContainsAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
        super(assertionConfig, assertable, true, true, true, true);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        path = reader.readString("path", null);
        expectedContent = reader.readString("content", null);
        allowWildcards = reader.readBoolean("allowWildcards", false);
        ignoreNamespaceDifferences = reader.readBoolean("ignoreNamspaceDifferences", false);
        ignoreComments = reader.readBoolean("ignoreComments", false);
    }
View Full Code Here

    public XPathContainsAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
        super(assertionConfig, assertable, true, true, true, true);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        path = reader.readString("path", null);
        expectedContent = reader.readString("content", null);
        allowWildcards = reader.readBoolean("allowWildcards", false);
        ignoreNamespaceDifferences = reader.readBoolean("ignoreNamspaceDifferences", false);
        ignoreComments = reader.readBoolean("ignoreComments", false);
    }
View Full Code Here

    public SimpleNotContainsAssertion(TestAssertionConfig assertionConfig, Assertable assertable) {
        super(assertionConfig, assertable, true, true, true, true);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        token = reader.readString("token", null);
        ignoreCase = reader.readBoolean("ignoreCase", false);
        useRegEx = reader.readBoolean("useRegEx", false);
    }

    public String internalAssertResponse(MessageExchange messageExchange, SubmitContext context)
View Full Code Here

     * @param modelItem
     */
    public ResponseSLAAssertion(TestAssertionConfig assertionConfig, Assertable modelItem) {
        super(assertionConfig, modelItem, false, true, false, false);
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        SLA = reader.readString("SLA", "200");
    }

    protected String internalAssertRequest(MessageExchange messageExchange, SubmitContext context)
            throws AssertionException {
        return null;
View Full Code Here

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

        setName(reader.readString(TestStepStatusAssertion.NAME_ELEMENT, "Step Status"));
        minRequests = reader.readInt(TestStepStatusAssertion.MIN_REQUESTS_ELEMENT, 0);
        setTargetStep(reader.readString(TestStepStatusAssertion.TEST_STEP_ELEMENT, ANY_TEST_STEP));
        maxErrors = reader.readInt(MAX_ERRORS_ELEMENT, -1);
    }
View Full Code Here

        XmlObject configuration = assertionConfig.getConfiguration();
        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);

        setName(reader.readString(TestStepStatusAssertion.NAME_ELEMENT, "Step Status"));
        minRequests = reader.readInt(TestStepStatusAssertion.MIN_REQUESTS_ELEMENT, 0);
        setTargetStep(reader.readString(TestStepStatusAssertion.TEST_STEP_ELEMENT, ANY_TEST_STEP));
        maxErrors = reader.readInt(MAX_ERRORS_ELEMENT, -1);
    }

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

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

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);
        setName(reader.readString(NAME_ELEMENT, "Step Average"));
        minRequests = reader.readInt(MIN_REQUESTS_ELEMENT, 100);
        maxAverage = reader.readInt(MAX_AVERAGE_ELEMENT, 1000);
        setTargetStep(reader.readString(TEST_STEP_ELEMENT, ANY_TEST_STEP));
        maxErrors = reader.readInt(MAX_ERRORS_ELEMENT, -1);
        sampleInterval = reader.readInt(SAMPLE_INTERVAL_ELEMENT, 20);
View Full Code Here

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(configuration);
        setName(reader.readString(NAME_ELEMENT, "Step Average"));
        minRequests = reader.readInt(MIN_REQUESTS_ELEMENT, 100);
        maxAverage = reader.readInt(MAX_AVERAGE_ELEMENT, 1000);
        setTargetStep(reader.readString(TEST_STEP_ELEMENT, ANY_TEST_STEP));
        maxErrors = reader.readInt(MAX_ERRORS_ELEMENT, -1);
        sampleInterval = reader.readInt(SAMPLE_INTERVAL_ELEMENT, 20);
    }

    public String assertResult(LoadTestRunner loadTestRunner, LoadTestRunContext context, TestStepResult result,
View Full Code Here

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

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