Package com.eviware.soapui.impl.wsdl.teststeps

Examples of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep


        WsdlTestSuite testSuite = project.addNewTestSuite("TestSuite");
        testSuite.addProperty("testSuiteId").setValue("234");
        WsdlTestCase testCase = testSuite.addNewTestCase("TestCase");
        testCase.addProperty("testCaseId").setValue("345");

        WsdlTestStep testStep = testCase.addTestStep(GroovyScriptStepFactory.GROOVY_TYPE, "GroovyScript");

        MockTestRunner mockTestRunner = new MockTestRunner(testCase, Logger.getLogger("testing"));
        MockTestRunContext context = new MockTestRunContext(mockTestRunner, testStep);

        PropertyExpansionUtils.getGlobalProperties().setPropertyValue("testSuiteId", "testing");
View Full Code Here


            // to another project project?
            if (!targetProjectName.equals(project.getName())) {
                // get required interfaces
                for (int y = 0; y < testCase.getTestStepCount(); y++) {
                    WsdlTestStep testStep = testCase.getTestStepAt(y);
                    requiredInterfaces.addAll(testStep.getRequiredInterfaces());
                }

                project = (WsdlProject) workspace.getProjectByName(targetProjectName);
                if (project == null) {
                    targetProjectName = UISupport.prompt("Enter name for new Project", "Clone TestCase", "");
View Full Code Here

        sources.add(parent.getTestCase());
        properties.add(parent.getTestCase().getPropertyNames());

        for (int c = 0; c < parent.getTestCase().getTestStepCount(); c++) {
            WsdlTestStep testStep = parent.getTestCase().getTestStepAt(c);
            if (testStep == parent) {
                continue;
            }

            sources.add(testStep);
            properties.add(testStep.getPropertyNames());
        }

    }
View Full Code Here

                        "Move Test Step")) {
                    return false;
                }
            }

            final WsdlTestStep result = target.importTestStep(source, name, defaultPosition, false);
            if (result == null) {
                return false;
            }
            source.getTestCase().removeTestStep(source);
        }
View Full Code Here

        for (int i = 0; i < testSuite.getTestCaseCount(); i++) {
            WsdlTestCase testCase = testSuite.getTestCaseAt(i);

            for (int y = 0; y < testCase.getTestStepCount(); y++) {
                WsdlTestStep testStep = testCase.getTestStepAt(y);
                requiredInterfaces.addAll(testStep.getRequiredInterfaces());
            }
        }

        if (!DragAndDropSupport.importRequiredInterfaces(target, requiredInterfaces, title)) {
            return null;
View Full Code Here

            Set<Interface> requiredInterfaces = new HashSet<Interface>();

            // get required interfaces
            for (TestCase testCase : testSuite.getTestCaseList()) {
                for (int y = 0; y < testCase.getTestStepCount(); y++) {
                    WsdlTestStep testStep = (WsdlTestStep) testCase.getTestStepAt(y);
                    requiredInterfaces.addAll(testStep.getRequiredInterfaces());
                }
            }

            if (DragAndDropSupport.importRequiredInterfaces(target, requiredInterfaces, "Move TestSuite")) {
                WsdlTestSuite importedTestSuite = target.importTestSuite(testSuite, testSuite.getName(), position, true,
View Full Code Here

            Set<Interface> requiredInterfaces = new HashSet<Interface>();

            // get required interfaces
            for (TestCase testCase : testSuite.getTestCaseList()) {
                for (int y = 0; y < testCase.getTestStepCount(); y++) {
                    WsdlTestStep testStep = (WsdlTestStep) testCase.getTestStepAt(y);
                    requiredInterfaces.addAll(testStep.getRequiredInterfaces());
                }
            }

            if (DragAndDropSupport.importRequiredInterfaces(target, requiredInterfaces, "Move TestSuite")) {
                return target.importTestSuite(testSuite, testSuite.getName(), position, true, null);
View Full Code Here

        } else {
            Set<Interface> requiredInterfaces = new HashSet<Interface>();

            // get required interfaces
            for (int y = 0; y < testCase.getTestStepCount(); y++) {
                WsdlTestStep testStep = testCase.getTestStepAt(y);
                requiredInterfaces.addAll(testStep.getRequiredInterfaces());
            }

            if (DragAndDropSupport.importRequiredInterfaces(target.getProject(), requiredInterfaces, "Copy TestCase")) {
                return target.importTestCase(testCase, name, position, true, true, true);
            }
View Full Code Here

                "Move TestCase")) {
            Set<Interface> requiredInterfaces = new HashSet<Interface>();

            // get required interfaces
            for (int y = 0; y < testCase.getTestStepCount(); y++) {
                WsdlTestStep testStep = testCase.getTestStepAt(y);
                requiredInterfaces.addAll(testStep.getRequiredInterfaces());
            }

            if (DragAndDropSupport.importRequiredInterfaces(target.getProject(), requiredInterfaces, "Move TestCase")) {
                WsdlTestCase importedTestCase = target.importTestCase(testCase, testCase.getName(), position, true, true,
                        false);
View Full Code Here

        sources.add(parent.getTestCase());
        properties.add(parent.getTestCase().getPropertyNames());

        for (int c = 0; c < parent.getTestCase().getTestStepCount(); c++) {
            WsdlTestStep testStep = parent.getTestCase().getTestStepAt(c);
            if (testStep == parent) {
                continue;
            }

            sources.add(testStep);
            properties.add(testStep.getPropertyNames());
        }

    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.teststeps.WsdlTestStep

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.