1
2
3
4
5
6
7
8
9
10
11
12
13 package com.eviware.soapui.impl.wsdl.teststeps;
14
15 import java.beans.PropertyChangeEvent;
16 import java.util.List;
17 import java.util.Map;
18
19 import com.eviware.soapui.config.RestRequestStepConfig;
20 import com.eviware.soapui.impl.rest.RestMethod;
21 import com.eviware.soapui.impl.rest.RestResource;
22 import com.eviware.soapui.impl.support.AbstractHttpRequest;
23 import com.eviware.soapui.impl.wsdl.AbstractWsdlModelItem;
24 import com.eviware.soapui.impl.wsdl.teststeps.assertions.TestAssertionRegistry.AssertableType;
25 import com.eviware.soapui.model.iface.Interface;
26 import com.eviware.soapui.model.propertyexpansion.PropertyExpansion;
27 import com.eviware.soapui.model.testsuite.AssertionsListener;
28 import com.eviware.soapui.model.testsuite.OperationTestStep;
29 import com.eviware.soapui.model.testsuite.TestAssertion;
30 import com.eviware.soapui.model.testsuite.TestCaseRunContext;
31 import com.eviware.soapui.model.testsuite.TestCaseRunner;
32 import com.eviware.soapui.model.testsuite.TestStep;
33 import com.eviware.soapui.model.testsuite.TestStepResult;
34 import com.eviware.soapui.support.resolver.ResolveContext;
35
36 public interface RestTestRequestStepInterface extends HttpTestRequestStepInterface, OperationTestStep
37 {
38 public RestRequestStepConfig getRequestStepConfig();
39
40 public String getService();
41
42 public String getResourcePath();
43
44 public RestMethod getRestMethod();
45
46 public RestResource getResource();
47
48 public void release();
49
50 public void propertyChange( PropertyChangeEvent evt );
51
52 public boolean dependsOn( AbstractWsdlModelItem<?> modelItem );
53
54 public void setResource( RestResource operation );
55
56 public RestTestRequestInterface getTestRequest();
57
58 public Interface getInterface();
59
60 public TestStep getTestStep();
61
62 public void resolve( ResolveContext<?> context );
63
64 public PropertyExpansion[] getPropertyExpansions();
65
66 public AbstractHttpRequest<?> getHttpRequest();
67
68 public TestAssertion addAssertion( String type );
69
70 public void addAssertionsListener( AssertionsListener listener );
71
72 public TestAssertion cloneAssertion( TestAssertion source, String name );
73
74 public String getAssertableContent();
75
76 public AssertableType getAssertableType();
77
78 public TestAssertion getAssertionByName( String name );
79
80 public List<TestAssertion> getAssertionList();
81
82 public AssertionStatus getAssertionStatus();
83
84 public void removeAssertion( TestAssertion assertion );
85
86 public void removeAssertionsListener( AssertionsListener listener );
87
88 public Map<String, TestAssertion> getAssertions();
89
90 public WsdlMessageAssertion getAssertionAt( int index );
91
92 public int getAssertionCount();
93
94 public String getDefaultAssertableContent();
95
96 public TestStepResult run( TestCaseRunner runner, TestCaseRunContext runContext );
97
98 }