View Javadoc

1   /*
2    *  soapUI, copyright (C) 2006 eviware.com 
3    *
4    *  soapUI is free software; you can redistribute it and/or modify it under the 
5    *  terms of the GNU Lesser General Public License as published by the Free Software Foundation; 
6    *  either version 2.1 of the License, or (at your option) any later version.
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 com.eviware.soapui.model.ModelItem;
16  import com.eviware.soapui.model.project.Project;
17  
18  /***
19   * A TestSuite holding a number of TestCases
20   * 
21   * @author Ole.Matzura
22   */
23  
24  public interface TestSuite extends ModelItem
25  {
26  	public final static String RUNTYPE_PROPERTY = ModelItem.class.getName() + "@runtype";
27  	
28     public Project getProject();
29     
30     public int getTestCaseCount();
31     
32     public TestCase getTestCaseAt( int index );
33     
34     public TestCase getTestCaseByName( String testCaseName );
35     
36     public void addTestSuiteListener( TestSuiteListener listener );
37     
38     public void removeTestSuiteListener( TestSuiteListener listener );
39     
40     public enum TestSuiteRunType { PARALLEL, SEQUENTIAL };
41     
42     public TestSuiteRunType getRunType();
43  }