1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.model.testsuite;
14
15 import java.util.List;
16
17 /***
18 * Runs a TestCase
19 *
20 * @author Ole.Matzura
21 */
22
23 public interface TestCaseRunner extends TestRunner
24 {
25 /***
26 * Gets the TestCase being run
27 *
28 * @return the TestCase being run
29 */
30
31 public TestCase getTestCase();
32
33 /***
34 * Gets the accumulated results so far; each TestStep returns a
35 * TestStepResult when running.
36 *
37 * @return the accumulated results so far
38 */
39
40 public List<TestStepResult> getResults();
41
42 /***
43 * Transfers execution of this TestRunner to the TestStep with the specified
44 * index in the TestCase
45 */
46
47 public void gotoStep( int index );
48
49 /***
50 * Transfers execution of this TestRunner to the TestStep with the specified
51 * name in the TestCase
52 */
53
54 public void gotoStepByName( String stepName );
55
56 /***
57 * Runs the specified TestStep and returns the result
58 */
59
60 public TestStepResult runTestStepByName( String name );
61
62 /***
63 * Returns the context used by this runner
64 */
65
66 public TestCaseRunContext getRunContext();
67 }