Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.TestStepConfig


    public WsdlTestStep buildTestStep(WsdlTestCase testCase, TestStepConfig config, boolean forLoadTest) {
        return new JdbcRequestTestStep(testCase, config, forLoadTest);
    }

    public TestStepConfig createNewTestStep(WsdlTestCase testCase, String name) {
        TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
        testStepConfig.setType(JDBC_TYPE);
        testStepConfig.setName(name);
        return testStepConfig;
    }
View Full Code Here


     * @param targetTestCase step we were cloned from
     */

    public WsdlTestStep clone(WsdlTestCase targetTestCase, String name) {
        beforeSave();
        TestStepConfig newConfig = (TestStepConfig) getConfig().copy();
        newConfig.setName(name);
        WsdlTestStep result = targetTestCase.addTestStep(newConfig);
        ModelSupport.createNewIds(result);
        return result;
    }
View Full Code Here

     * @param sourceTestStep
     * @return TestStep
     */
    public TestStep cloneForSecurityScan(WsdlTestStep sourceTestStep) {
        WsdlTestStep clonedTestStep = null;
        TestStepConfig testStepConfig = (TestStepConfig) sourceTestStep.getConfig().copy();
        WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory(testStepConfig.getType());
        if (factory != null) {
            clonedTestStep = factory.buildTestStep(securityTest.getTestCase(), testStepConfig, false);
            if (clonedTestStep instanceof Assertable) {
                for (TestAssertion assertion : ((Assertable) clonedTestStep).getAssertionList()) {
                    ((Assertable) clonedTestStep).removeAssertion(assertion);
View Full Code Here

     * @param sourceTestStep
     * @return TestStep
     */
    public static TestStep cloneTestStepForSecurityScan(WsdlTestStep sourceTestStep) {
        WsdlTestStep clonedTestStep = null;
        TestStepConfig testStepConfig = (TestStepConfig) sourceTestStep.getConfig().copy();
        WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory(testStepConfig.getType());
        if (factory != null) {
            clonedTestStep = factory.buildTestStep(sourceTestStep.getTestCase(), testStepConfig, false);
            if (clonedTestStep instanceof Assertable) {
                for (TestAssertion assertion : ((Assertable) clonedTestStep).getAssertionList()) {
                    ((Assertable) clonedTestStep).removeAssertion(assertion);
View Full Code Here

        }
    }

    @Override
    public void afterLoad() {
        TestStepConfig config = getConfig();

        if (config.getConfig() != null) {
            transferStepConfig = (PropertyTransfersStepConfig) config.getConfig().changeType(
                    PropertyTransfersStepConfig.type);
            for (int c = 0; c < transferStepConfig.sizeOfTransfersArray(); c++) {
                transfers.add(new PropertyTransfer(this, transferStepConfig.getTransfersArray(c)));
            }
        } else {
            transferStepConfig = (PropertyTransfersStepConfig) config.addNewConfig().changeType(
                    PropertyTransfersStepConfig.type);
        }

        super.afterLoad();
    }
View Full Code Here

        if (!dialog.show()) {
            return false;
        }

        TestStepConfig config = WsdlMockResponseStepFactory.createConfig(operation, false);
        MockResponseStepConfig mockResponseStepConfig = ((MockResponseStepConfig) config.getConfig());

        config.setName(dialog.getValue(Form.STEP_NAME));
        mockResponseStepConfig.setPath(dialog.getValue(Form.PATH));
        mockResponseStepConfig.setPort(dialog.getIntValue(Form.PORT, 8181));

        String response = operation.createResponse(operation.getSettings().getBoolean(
                WsdlSettings.XML_GENERATION_ALWAYS_INCLUDE_OPTIONAL_ELEMENTS));
View Full Code Here

        return securityCheck.run(cloneForSecurityScan((WsdlTestStep) testStep), runContext, null);
    }

    private TestStep cloneForSecurityScan(WsdlTestStep sourceTestStep) {
        WsdlTestStep clonedTestStep = null;
        TestStepConfig testStepConfig = (TestStepConfig) sourceTestStep.getConfig().copy();
        WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory(testStepConfig.getType());
        if (factory != null) {
            clonedTestStep = factory.buildTestStep(securityTest.getTestCase(), testStepConfig, false);
            if (clonedTestStep instanceof Assertable) {
                for (TestAssertion assertion : ((Assertable) clonedTestStep).getAssertionList()) {
                    ((Assertable) clonedTestStep).removeAssertion(assertion);
View Full Code Here

                        factory.getTestStepName());
            } else {
                name = factory.getTestStepName();
            }
            if (name != null) {
                TestStepConfig newTestStepConfig = factory.createNewTestStep(getModelItem(), name);
                if (newTestStepConfig != null) {
                    WsdlTestStep testStep = getModelItem().insertTestStep(newTestStepConfig, ix);
                    if (testStep != null) {
                        UISupport.selectAndShow(testStep);
                    }
View Full Code Here

    @Override
    public WsdlTestStep clone(WsdlTestCase targetTestCase, String name) {
        beforeSave();

        TestStepConfig config = (TestStepConfig) getConfig().copy();
        ManualTestStep result = (ManualTestStep) targetTestCase.addTestStep(config);

        return result;
    }
View Full Code Here

    private HttpTestRequestStep createHttpRequest(WsdlTestStep testStep2, String url) {
        HttpRequestConfig httpRequest = HttpRequestConfig.Factory.newInstance();
        httpRequest.setEndpoint(HttpUtils.completeUrlWithHttpIfProtocolIsNotHttpOrHttpsOrPropertyExpansion(url));
        httpRequest.setMethod("GET");

        TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
        testStepConfig.setType(HttpRequestStepFactory.HTTPREQUEST_TYPE);
        testStepConfig.setConfig(httpRequest);
        testStepConfig.setName("Separate Request");

        WsdlTestStepFactory factory = WsdlTestStepRegistry.getInstance().getFactory(
                (HttpRequestStepFactory.HTTPREQUEST_TYPE));
        return (HttpTestRequestStep) factory.buildTestStep((WsdlTestCase) testStep2.getTestCase(), testStepConfig,
                false);
View Full Code Here

TOP

Related Classes of com.eviware.soapui.config.TestStepConfig

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.