View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2007 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 com.eviware.soapui.model.ModelItem;
16  
17  /***
18   * A TestStep in a TestCase
19   * 
20   * @author Ole.Matzura
21   */
22  
23  public interface TestStep extends ModelItem
24  {
25  	public final static String DISABLED_PROPERTY = TestStep.class.getName() + "@disabled";
26  	public final static String LABEL_PROPERTY = TestStep.class.getName() + "@label";
27  	
28     public TestCase getTestCase();
29  
30     public void prepare( TestRunner testRunner, TestRunContext testRunContext ) throws Exception;
31     
32     public void finish( TestRunner testRunner, TestRunContext testRunContext );
33     
34  	public boolean cancel();
35  
36  	public TestStepResult run( TestRunner testRunner, TestRunContext testRunContext );
37  	
38  	public String [] getPropertyNames();
39  	
40  	public void setPropertyValue( String name, String value );
41  	
42  	public String getPropertyValue( String name );
43  	
44  	public TestStepProperty getProperty( String name );
45  	
46  	public boolean isDisabled();
47  	
48  	public String getLabel();
49  }