Package com.eviware.soapui.model.testsuite

Examples of com.eviware.soapui.model.testsuite.TestCase


        }

        for (int c = 0; c < iface.getProject().getTestSuiteCount(); c++) {
            TestSuite testSuite = iface.getProject().getTestSuiteAt(c);
            for (int i = 0; i < testSuite.getTestCaseCount(); i++) {
                TestCase testCase = testSuite.getTestCaseAt(i);
                if (!SoapUI.getTestMonitor().hasRunningTest(testCase)) {
                    continue;
                }

                for (int j = 0; j < testCase.getTestStepCount(); j++) {
                    WsdlTestStep testStep = (WsdlTestStep) testCase.getTestStepAt(j);
                    if (testStep.dependsOn(iface)) {
                        return true;
                    }
                }
            }
View Full Code Here


    public static boolean hasDependingTests(AbstractInterface<?> iface) {
        for (int c = 0; c < iface.getProject().getTestSuiteCount(); c++) {
            TestSuite testSuite = iface.getProject().getTestSuiteAt(c);
            for (int i = 0; i < testSuite.getTestCaseCount(); i++) {
                TestCase testCase = testSuite.getTestCaseAt(i);

                for (int j = 0; j < testCase.getTestStepCount(); j++) {
                    WsdlTestStep testStep = (WsdlTestStep) testCase.getTestStepAt(j);
                    if (testStep.dependsOn(iface)) {
                        return true;
                    }
                }
            }
View Full Code Here

                                }
                            }
                        }
                    }
                } else {
                    TestCase testCase = null;
                    try {
                        testCase = getModelItem().getTestSuiteByName(mainForm.getComponentValue(TESTSUITE))
                                .getTestCaseByName(mainForm.getComponentValue(TESTCASE));
                    } catch (NullPointerException npe) {
                    }
                    if (testCase != null) {
                        securityTests.addAll(Arrays.asList(ModelSupport.getNames(testCase.getSecurityTestList())));
                    }
                }

                securityTests.add(0, ALL_VALUE);
                mainForm.setOptions(SECURITY_TEST_NAME, securityTests.toArray());
View Full Code Here

        // start by listening to all testcases.. (since one testcase can call
        // another)
        for (int c = 0; c < project.getTestSuiteCount(); c++) {
            TestSuite suite = project.getTestSuiteAt(c);
            for (int i = 0; i < suite.getTestCaseCount(); i++) {
                TestCase tc = suite.getTestCaseAt(i);
                if ((testSuite == null || suite.getName().equals(suite.getName())) && testCase != null
                        && tc.getName().equals(testCase)) {
                    testCasesToRun.add(tc);
                }

                addListeners(tc);
            }
View Full Code Here

        if (result.getStatus() == SecurityResult.ResultStatus.FAILED || isExportAll()) {
            try {
                String exportSeparator = System.getProperty(SOAPUI_EXPORT_SEPARATOR, "-");

                TestCase tc = currentStep.getTestCase();

                String nameBase = StringUtils.createFileName(securityTestName, '_') + exportSeparator
                        + StringUtils.createFileName(securityScanName, '_') + exportSeparator
                        + StringUtils.createFileName(tc.getTestSuite().getName(), '_') + exportSeparator
                        + StringUtils.createFileName(tc.getName(), '_') + exportSeparator
                        + StringUtils.createFileName(currentStep.getName(), '_') + "-" + count.longValue() + "-"
                        + result.getStatus();

                WsdlTestCaseRunner callingTestCaseRunner = (WsdlTestCaseRunner) runContext
                        .getProperty("#CallingTestCaseRunner#");

                if (callingTestCaseRunner != null) {
                    WsdlTestCase ctc = callingTestCaseRunner.getTestCase();
                    WsdlRunTestCaseTestStep runTestCaseTestStep = (WsdlRunTestCaseTestStep) runContext
                            .getProperty("#CallingRunTestCaseStep#");

                    nameBase = StringUtils.createFileName(securityTestName, '_') + exportSeparator
                            + StringUtils.createFileName(ctc.getTestSuite().getName(), '_') + exportSeparator
                            + StringUtils.createFileName(ctc.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(runTestCaseTestStep.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(tc.getTestSuite().getName(), '_') + exportSeparator
                            + StringUtils.createFileName(tc.getName(), '_') + exportSeparator
                            + StringUtils.createFileName(currentStep.getName(), '_') + "-" + count.longValue() + "-"
                            + result.getStatus();
                }

                String absoluteOutputFolder = getAbsoluteOutputFolder(ModelSupport.getModelItemProject(tc));
View Full Code Here

    private void unmonitorTestSuite(TestSuite testSuite) {
        testSuite.removeTestSuiteListener(testSuiteListener);

        for (int j = 0; j < testSuite.getTestCaseCount(); j++) {
            TestCase testCase = testSuite.getTestCaseAt(j);
            unmonitorTestCase(testCase);
        }
    }
View Full Code Here

        public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
                                                      boolean cellHasFocus) {
            Component result = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);

            if (value instanceof TestCase) {
                TestCase item = (TestCase) value;
                setIcon(item.getIcon());
                setText(item.getName());
            }

            return result;
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.model.testsuite.TestCase

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.