View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2010 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of version 2.1 of the GNU Lesser General Public License as published by 
6    *  the Free Software Foundation.
7    *
8    *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
9    *  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  /***
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  }