Examples of WsdlTestStep


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

     *
     * @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) {
View Full Code Here

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

        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

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

    @Override
    public void moveTestStep(int ix, int offset) {
        if (offset == 0) {
            return;
        }
        WsdlTestStep step = testSteps.get(ix);

        if (ix + offset >= testSteps.size()) {
            offset = testSteps.size() - ix - 1;
        }
View Full Code Here

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

        return result;
    }

    public static MutablePropertyExpansionImpl createMutablePropertyExpansion(String pe, ModelItem modelItem,
                                                                              Object target, String propertyName) {
        WsdlTestStep testStep = null;
        WsdlTestCase testCase = null;
        WsdlTestSuite testSuite = null;
        WsdlProject project = null;
        WsdlMockService mockService = null;
        WsdlMockResponse mockResponse = null;
        TestPropertyHolder holder = null;
        SecurityTest securityTest = null;

        if (modelItem instanceof WsdlTestStep) {
            testStep = (WsdlTestStep) modelItem;
            testCase = testStep.getTestCase();
            testSuite = testCase.getTestSuite();
            project = testSuite.getProject();
        } else if (modelItem instanceof WsdlTestCase) {
            testCase = (WsdlTestCase) modelItem;
            testSuite = testCase.getTestSuite();
View Full Code Here

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

                                                      SecurityScan securityCheck) {
        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) {
View Full Code Here

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

        initCount = getStartStep();

        setStartTime();
        for (; initCount < testCase.getTestStepCount() && isRunning(); initCount++) {
            WsdlTestStep testStep = testCase.getTestStepAt(initCount);
            if (testStep.isDisabled()) {
                continue;
            }

            try {
                testStep.prepare(this, runContext);
            } catch (Exception e) {
                setStatus(Status.FAILED);
                SoapUI.logError(e);
                throw new Exception("Failed to prepare testStep [" + testStep.getName() + "]; " + e.toString());
            }
        }

        int currentStepIndex = startStep;
        runContext.setCurrentStep(currentStepIndex);
View Full Code Here

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

    protected void internalFinally(T2 runContext) {
        WsdlTestCase testCase = getTestCase();

        for (int c = 0; c < initCount && c < testCase.getTestStepCount(); c++) {
            WsdlTestStep testStep = testCase.getTestStepAt(c);
            if (!testStep.isDisabled()) {
                testStep.finish(this, runContext);
            }
        }

        try {
            runTearDownScripts(runContext);
View Full Code Here

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

                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

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

                }
            }

            for (int c = 0; c < testCase.getTestStepCount(); c++) {
                try {
                    WsdlTestStep testStep = testCase.getTestStepAt(c);
                    String fileName = StringUtils.createFileName(testStep.getName(), '_') + ".log";
                    PrintWriter writer = new PrintWriter(new File(folder, fileName));
                    writers.add(writer);
                    addHeaders(writer);
                } catch (FileNotFoundException e) {
                    e.printStackTrace();
View Full Code Here

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

        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 (requiredInterfaces.size() > 0 && targetProject.getInterfaceCount() > 0) {
            Map<String, Interface> bindings = new HashMap<String, Interface>();
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.