-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsoapui-test-project.xml
More file actions
215 lines (215 loc) · 10.1 KB
/
soapui-test-project.xml
File metadata and controls
215 lines (215 loc) · 10.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project id="f4fd9f8b-8379-4427-8574-f7201deb7862" activeEnvironment="Default" name="soapui-test-project" resourceRoot="" soapui-version="5.3.0" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config">
<con:settings>
<con:setting id="com.eviware.soapui.impl.wsdl.actions.iface.tools.soapui.LoadTestRunnerAction@values-local"><![CDATA[<xml-fragment xmlns:con="http://eviware.com/soapui/config">
<con:entry key="Environment" value="Default"/>
<con:entry key="Global Properties" value=""/>
<con:entry key="TestSuite" value="TestSuite"/>
<con:entry key="Report to Generate" value=""/>
<con:entry key="Password" value=""/>
<con:entry key="TestRunner Path" value="/Applications/SoapUI-5.3.0.app/Contents/Resources/app/bin"/>
<con:entry key="Tool Args" value=""/>
<con:entry key="LoadTest" value="LoadTest 1"/>
<con:entry key="Host:Port" value=""/>
<con:entry key="user-settings.xml Password" value=""/>
<con:entry key="WSS Password Type" value=""/>
<con:entry key="Save Project" value="false"/>
<con:entry key="System Properties" value=""/>
<con:entry key="Domain" value=""/>
<con:entry key="Open Report" value="false"/>
<con:entry key="Project Properties" value=""/>
<con:entry key="Print Report Statistics" value="false"/>
<con:entry key="Project Password" value=""/>
<con:entry key="Report Format(s)" value=""/>
<con:entry key="TestCase" value="TestCase"/>
<con:entry key="Username" value=""/>
<con:entry key="Root Folder" value=""/>
<con:entry key="Add Settings" value="false"/>
<con:entry key="Save After" value="false"/>
<con:entry key="Endpoint" value=""/>
<con:entry key="ThreadCount" value=""/>
<con:entry key="Limit" value=""/>
</xml-fragment>]]></con:setting>
</con:settings>
<con:interface xsi:type="con:RestService" id="0f5f5263-2489-492e-972c-f99565c600a7" wadlVersion="http://wadl.dev.java.net/2009/02" name="BaseApiEndpoint" type="rest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:settings/>
<con:definitionCache type="TEXT" rootPart=""/>
<con:endpoints/>
<con:resource name="${#Project#apiEndpoint}" path="/soapui-runner/api/test-data/soapui.json" id="1302addb-5ec6-46c3-9d5f-12d155aa5e17">
<con:settings/>
<con:parameters/>
<con:method name="GET" id="6381ed28-9163-4240-b684-b7ad3d80eee5" method="GET">
<con:settings/>
<con:parameters/>
<con:representation type="RESPONSE">
<con:mediaType xsi:nil="true"/>
<con:status>0</con:status>
<con:params/>
<con:element>data</con:element>
</con:representation>
<con:representation type="RESPONSE">
<con:mediaType xsi:nil="true"/>
<con:status>0</con:status>
<con:params/>
<con:element>data</con:element>
</con:representation>
<con:representation type="FAULT">
<con:mediaType xsi:nil="true"/>
<con:status>404</con:status>
<con:params/>
<con:element>data</con:element>
</con:representation>
<con:representation type="RESPONSE">
<con:mediaType xsi:nil="true"/>
<con:status>0</con:status>
<con:params/>
<con:element>data</con:element>
</con:representation>
<con:representation type="RESPONSE">
<con:mediaType xsi:nil="true"/>
<con:status>0</con:status>
<con:params/>
<con:element>data</con:element>
</con:representation>
<con:representation type="RESPONSE">
<con:mediaType xsi:nil="true"/>
<con:status>0</con:status>
<con:params/>
<con:element>data</con:element>
</con:representation>
<con:representation type="RESPONSE">
<con:mediaType>application/json; charset=utf-8</con:mediaType>
<con:status>200</con:status>
<con:params/>
<con:element xmlns:loc="http://localhost/">loc:Response</con:element>
</con:representation>
<con:request name="Request" id="29e173c3-1fd9-47a7-bec9-b49babe06ed2" mediaType="application/json">
<con:settings>
<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting>
</con:settings>
<con:endpoint>${#Project#apiEndpoint}</con:endpoint>
<con:request/>
<con:originalUri>https://daggerok.github.io/soapui-runner/api/test-data/soapui.json</con:originalUri>
<con:credentials>
<con:authType>No Authorization</con:authType>
</con:credentials>
<con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
<con:jmsPropertyConfig/>
<con:parameters/>
<con:parameterOrder/>
</con:request>
</con:method>
</con:resource>
</con:interface>
<con:testSuite id="437f1514-d6c4-4dd5-b88f-91f13185ac55" name="TestSuite">
<con:settings/>
<con:runType>SEQUENTIAL</con:runType>
<con:testCase id="61c97943-7be8-4f60-b01e-a3dc3a5ef7ba" failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="TestCase" searchProperties="true">
<con:settings/>
<con:testStep type="restrequest" name="GetRequest" id="1d4c2fce-ceb2-4c7c-8eac-a59ac2c44ef0">
<con:settings/>
<con:config service="BaseApiEndpoint" resourcePath="/soapui-runner/api/test-data/soapui.json" methodName="GET" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:restRequest name="GetRequest" id="29e173c3-1fd9-47a7-bec9-b49babe06ed2" mediaType="application/json">
<con:settings>
<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting>
</con:settings>
<con:endpoint>${#Project#apiEndpoint}</con:endpoint>
<con:request/>
<con:originalUri>http://localhost/</con:originalUri>
<con:assertion type="Valid HTTP Status Codes" id="8c9474c2-25d9-4051-a7c4-cb1510b359da" name="Valid HTTP Status Codes">
<con:configuration>
<codes>200</codes>
</con:configuration>
</con:assertion>
<con:assertion type="Invalid HTTP Status Codes" id="fdaf073d-33b0-4f16-9e76-923e93d94d0f" name="Invalid HTTP Status Codes: 400, 500">
<con:configuration>
<codes>500,400</codes>
</con:configuration>
</con:assertion>
<con:assertion type="Simple Contains" id="1004a0d8-0507-4d55-879c-44bb9900429c" name="Contains name in the response">
<con:configuration>
<token>name</token>
<ignoreCase>false</ignoreCase>
<useRegEx>false</useRegEx>
</con:configuration>
</con:assertion>
<con:assertion type="JsonPath Count" id="212c2065-75e9-4dfc-b45b-bf165ec8e7f8" name="JsonPath Count: 1 $.[?(@name==Ukraine)]">
<con:configuration>
<path>$.[?(@name==Ukraine)]</path>
<content>1</content>
<allowWildcards>false</allowWildcards>
<ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
<ignoreComments>false</ignoreComments>
</con:configuration>
</con:assertion>
<con:assertion type="JsonPath Count" id="624753b9-3962-45b6-a773-6da4d5b8ec15" name="JsonPath Count: total 249 objects in response">
<con:configuration>
<path>$..name</path>
<content>249</content>
<allowWildcards>false</allowWildcards>
<ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
<ignoreComments>false</ignoreComments>
</con:configuration>
</con:assertion>
<con:credentials>
<con:authType>No Authorization</con:authType>
</con:credentials>
<con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
<con:jmsPropertyConfig/>
<con:parameters/>
<con:parameterOrder/>
</con:restRequest>
</con:config>
</con:testStep>
<con:loadTest id="5b48846a-247b-407e-b478-5c17c0180083" name="LoadTest 1">
<con:settings/>
<con:threadCount>2</con:threadCount>
<con:startDelay>0</con:startDelay>
<con:sampleInterval>250</con:sampleInterval>
<con:calculateTPSOnTimePassed>true</con:calculateTPSOnTimePassed>
<con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange>
<con:historyLimit>-1</con:historyLimit>
<con:testLimit>5</con:testLimit>
<con:limitType>TIME</con:limitType>
<con:loadStrategy>
<con:type>Simple</con:type>
<con:config>
<testDelay>2000</testDelay>
<randomFactor>1.0</randomFactor>
</con:config>
</con:loadStrategy>
<con:assertion type="Step Status" name="Step Status">
<con:configuration>
<name>Step Status</name>
<min-requests>0</min-requests>
<test-step>GetRequest</test-step>
<max-errors>0</max-errors>
</con:configuration>
</con:assertion>
<con:assertion type="Max Errors" name="Max Errors">
<con:configuration>
<name>Max Errors</name>
<max-absolute-errors>0</max-absolute-errors>
<max-relative-errors>0.0</max-relative-errors>
<test-step>GetRequest</test-step>
</con:configuration>
</con:assertion>
<con:maxAssertionErrors>100</con:maxAssertionErrors>
<con:cancelExcessiveThreads>true</con:cancelExcessiveThreads>
<con:strategyInterval>500</con:strategyInterval>
</con:loadTest>
<con:properties/>
</con:testCase>
<con:properties/>
</con:testSuite>
<con:properties>
<con:property>
<con:name>apiEndpoint</con:name>
<con:value>https://daggerok.github.io</con:value>
</con:property>
</con:properties>
<con:wssContainer/>
<con:oAuth2ProfileContainer/>
<con:oAuth1ProfileContainer/>
<con:sensitiveInformation/>
</con:soapui-project>