Package com.eviware.soapui.config

Examples of com.eviware.soapui.config.TestStepConfig


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

        TestStepConfig config = (TestStepConfig) getConfig().copy();
        RequestStepConfig stepConfig = (RequestStepConfig) config.getConfig().changeType(RequestStepConfig.type);

        while (stepConfig.getRequest().sizeOfAttachmentArray() > 0) {
            stepConfig.getRequest().removeAttachment(0);
        }

        config.setName(name);
        stepConfig.getRequest().setName(name);

        WsdlTestRequestStep result = (WsdlTestRequestStep) targetTestCase.addTestStep(config);
        testRequest.copyAttachmentsTo(result.getTestRequest());
View Full Code Here


    }

    public WsdlTestStep addTestStep(String type, String name) {
        WsdlTestStepFactory testStepFactory = WsdlTestStepRegistry.getInstance().getFactory(type);
        if (testStepFactory != null) {
            TestStepConfig newStepConfig = testStepFactory.createNewTestStep(this, name);
            if (newStepConfig != null) {
                return addTestStep(newStepConfig);
            }
        }
View Full Code Here

    }

    public WsdlTestStep addTestStep(String type, String name, String endpoint, String method) {
        WsdlTestStepFactory requestStepFactory = WsdlTestStepRegistry.getInstance().getFactory(type);
        if (requestStepFactory instanceof HttpRequestStepFactory) {
            TestStepConfig newStepConfig = ((HttpRequestStepFactory) requestStepFactory).createNewTestStep(this, name, endpoint, method);
            if (newStepConfig != null) {
                return addTestStep(newStepConfig);
            }
        }
View Full Code Here

    }

    public WsdlTestStep insertTestStep(String type, String name, int index) {
        WsdlTestStepFactory testStepFactory = WsdlTestStepRegistry.getInstance().getFactory(type);
        if (testStepFactory != null) {
            TestStepConfig newStepConfig = testStepFactory.createNewTestStep(this, name);
            if (newStepConfig != null) {
                return insertTestStep(newStepConfig, index, false);
            }
        }
View Full Code Here

        return null;
    }

    public WsdlTestStep importTestStep(WsdlTestStep testStep, String name, int index, boolean createCopy) {
        testStep.beforeSave();
        TestStepConfig newStepConfig = (TestStepConfig) testStep.getConfig().copy();
        newStepConfig.setName(name);

        WsdlTestStep result = insertTestStep(newStepConfig, index, createCopy);
        if (result == null) {
            return null;
        }
View Full Code Here

    public WsdlTestStep insertTestStep(TestStepConfig stepConfig, int ix) {
        return insertTestStep(stepConfig, ix, true);
    }

    public WsdlTestStep insertTestStep(TestStepConfig stepConfig, int ix, boolean clearIds) {
        TestStepConfig newStepConfig = ix == -1 ? getConfig().addNewTestStep() : getConfig().insertNewTestStep(ix);
        newStepConfig.set(stepConfig);
        WsdlTestStep testStep = createTestStepFromConfig(newStepConfig);

        if (!ensureUniqueName(testStep)) {
            testStep.release();
            getConfig().getTestStepList().remove(newStepConfig);
View Full Code Here

    public WsdlTestStep[] insertTestSteps(TestStepConfig[] stepConfig, int ix, boolean clearIds) {
        WsdlTestStep[] result = new WsdlTestStep[stepConfig.length];

        for (int c = 0; c < stepConfig.length; c++) {
            TestStepConfig newStepConfig = ix == -1 ? getConfig().addNewTestStep() : getConfig()
                    .insertNewTestStep(ix + c);
            newStepConfig.set(stepConfig[c]);
            WsdlTestStep testStep = createTestStepFromConfig(newStepConfig);

            if (!ensureUniqueName(testStep)) {
                return null;
            }
View Full Code Here

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

        TestStepConfig config = WsdlMockResponseStepFactory.createConfig(mockResponse.getMockOperation().getOperation(),
                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, mockService.getPort()));

        mockResponse.beforeSave();
        mockResponseStepConfig.getResponse().set(mockResponse.getConfig());
View Full Code Here

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

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

        return result;
    }
View Full Code Here

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

    public TestStepConfig createNewTestStep(WsdlTestCase testCase, String name) {
        TestStepConfig testStepConfig = TestStepConfig.Factory.newInstance();
        testStepConfig.setType(AMF_REQUEST_TYPE);
        testStepConfig.setName(name);
        return testStepConfig;
    }
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.