View Javadoc

1   /*
2    *  soapUI, copyright (C) 2004-2009 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.impl.wsdl.teststeps;
14  
15  import java.beans.PropertyChangeListener;
16  import java.util.List;
17  
18  import javax.swing.ImageIcon;
19  
20  import com.eviware.soapui.config.TestStepConfig;
21  import com.eviware.soapui.impl.support.AbstractHttpRequest;
22  import com.eviware.soapui.impl.support.http.HttpRequestTestStep;
23  import com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem;
24  import com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase;
25  import com.eviware.soapui.model.ModelItem;
26  import com.eviware.soapui.model.propertyexpansion.PropertyExpansionContainer;
27  import com.eviware.soapui.model.testsuite.Assertable;
28  import com.eviware.soapui.model.testsuite.TestCaseRunContext;
29  import com.eviware.soapui.model.testsuite.TestCaseRunner;
30  import com.eviware.soapui.model.testsuite.TestStep;
31  import com.eviware.soapui.model.testsuite.TestStepResult;
32  import com.eviware.soapui.support.resolver.ResolveContext;
33  
34  public interface HttpTestRequestStepInterface extends PropertyChangeListener, PropertyExpansionContainer, Assertable,
35  		HttpRequestTestStep, ModelItem
36  {
37  	public WsdlTestStep clone( WsdlTestCase targetTestCase, String name );
38  
39  	public void release();
40  
41  	public void resetConfigOnMove( TestStepConfig config );
42  
43  	public ImageIcon getIcon();
44  
45  	public HttpTestRequestInterface<?> getTestRequest();
46  
47  	public void setName( String name );
48  
49  	public TestStepResult run( TestCaseRunner runner, TestCaseRunContext runContext );
50  
51  	public boolean cancel();
52  
53  	public boolean dependsOn( AbstractWsdlModelItem<?> modelItem );
54  
55  	public void beforeSave();
56  
57  	public String getDescription();
58  
59  	public void setDescription( String description );
60  
61  	public List<? extends ModelItem> getChildren();
62  
63  	public AbstractHttpRequest<?> getHttpRequest();
64  
65  	public TestStep getTestStep();
66  
67  	public void prepare( TestCaseRunner testRunner, TestCaseRunContext testRunContext ) throws Exception;
68  
69  	public String getDefaultSourcePropertyName();
70  
71  	public String getDefaultTargetPropertyName();
72  
73  	public void resolve( ResolveContext<?> context );
74  
75  	public WsdlTestCase getTestCase();
76  
77  }