Package com.eviware.soapui.support.xml

Examples of com.eviware.soapui.support.xml.XmlObjectConfigurationReader


        if (config.getConfiguration() == null) {
            config.addNewConfiguration();
        }

        load(new XmlObjectConfigurationReader(config.getConfiguration()));
    }
View Full Code Here


    public static final String DESCRIPTION = "Searches for the existence of a string token in the property value, supports regular expressions. Applicable to any property. ";

    public SimpleContainsAssertion(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);
    }
View Full Code Here

    public static final String DESCRIPTION = "Validates that the last received message is compliant with the associated WSDL or WADL schema definition. Applicable to SOAP and REST TestSteps.";

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

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        definition = reader.readString("definition", null);
    }
View Full Code Here

    private String oldScriptText;

    public GroovyScriptAssertion(TestAssertionConfig assertionConfig, Assertable modelItem) {
        super(assertionConfig, modelItem, true, true, true, false);

        XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(getConfiguration());
        scriptText = reader.readString("scriptText", "");

        scriptEngine = SoapUIScriptEngineRegistry.create(this);
        scriptEngine.setScript(scriptText);
    }
View Full Code Here

        XmlObjectConfigurationBuilder builder = new XmlObjectConfigurationBuilder();
        builder.add("testFloat", (float) 0.123);
        builder.add("testInt", 123);
        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 static final String DESCRIPTION = "Searches for the non-existence of a string token in the property value, supports regular expressions. Applicable to any property.";

    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);
    }
View Full Code Here

     * @param assertionConfig
     * @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");
    }
View Full Code Here

    public SimpleLoadStrategy(XmlObject config, WsdlLoadTest loadTest) {
        super(STRATEGY_TYPE, loadTest);

        if (config != null) {
            XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(config);
            testDelay = reader.readInt("testDelay", DEFAULT_TEST_DELAY);
            randomFactor = reader.readFloat("randomFactor", DEFAULT_RANDOM_FACTOR);
        }
    }
View Full Code Here

    public ThreadCountChangeLoadStrategy(XmlObject config, WsdlLoadTest loadTest) {
        super(STRATEGY_TYPE, loadTest);

        if (config != null) {
            XmlObjectConfigurationReader reader = new XmlObjectConfigurationReader(config);
            startThreadCount = reader.readInt("startThreadCount", DEFAULT_START_THREAD_COUNT);
            endThreadCount = reader.readInt("endThreadCount", DEFAULT_END_THREAD_COUNT);
        }
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.support.xml.XmlObjectConfigurationReader

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.