01: /*
02: * soapUI, copyright (C) 2004-2007 eviware.com
03: *
04: * soapUI is free software; you can redistribute it and/or modify it under the
05: * terms of version 2.1 of the GNU Lesser General Public License as published by
06: * the Free Software Foundation.
07: *
08: * soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
09: * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: * See the GNU Lesser General Public License for more details at gnu.org.
11: */
12:
13: package com.eviware.soapui.model.testsuite;
14:
15: import java.util.List;
16:
17: import com.eviware.soapui.model.ModelItem;
18: import com.eviware.soapui.model.support.PropertiesMap;
19:
20: /**
21: * A TestCase holding a number of TestSteps
22: *
23: * @author Ole.Matzura
24: */
25:
26: public interface TestCase extends ModelItem {
27: public final static String STATUS_PROPERTY = TestCase.class
28: .getName()
29: + "@status";
30:
31: public TestSuite getTestSuite();
32:
33: public TestStep getTestStepAt(int index);
34:
35: public int getIndexOfTestStep(TestStep testStep);
36:
37: public int getTestStepCount();
38:
39: public List<TestStep> getTestStepList();
40:
41: public LoadTest getLoadTestAt(int index);
42:
43: public LoadTest getLoadTestByName(String loadTestName);
44:
45: public int getIndexOfLoadTest(LoadTest loadTest);
46:
47: public int getLoadTestCount();
48:
49: public TestRunner run(PropertiesMap contextProperties, boolean async);
50:
51: public void addTestRunListener(TestRunListener listener);
52:
53: public void removeTestRunListener(TestRunListener listener);
54:
55: public int getTestStepIndexByName(String stepName);
56:
57: public TestStep findPreviousStepOfType(TestStep referenceStep,
58: Class<? extends TestStep> stepClass);
59:
60: public TestStep findNextStepOfType(TestStep referenceStep,
61: Class<? extends TestStep> stepClass);
62:
63: public void moveTestStep(int index, int offset);
64:
65: public TestStep getTestStepByName(String stepName);
66: }
|