forked from training-support/FST-M1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActivity_6.xml
More file actions
231 lines (227 loc) · 11.2 KB
/
Activity_6.xml
File metadata and controls
231 lines (227 loc) · 11.2 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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project id="1adea126-e8bc-49cd-88fe-e38d4d66b4ce" created="3.53.0" activeEnvironment="Default environment" encryptionMode="Not encrypted" name="API_Activity_6" resourceRoot="" projectVersion="" updated="3.54.0 2024-07-17T11:22:49Z" xmlns:con="http://eviware.com/soapui/config">
<con:settings/>
<con:interface xsi:type="con:RestService" id="e0383e64-2184-45ef-952a-fca9574f4974" wadlVersion="http://wadl.dev.java.net/2009/02" name="http://ipwhois.app" type="rest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:settings id="c3b5d01b-9bea-43bd-a9c9-caad131de43f"/>
<con:definitionCache type="TEXT" rootPart=""/>
<con:endpoints>
<con:endpoint>http://ipwhois.app</con:endpoint>
</con:endpoints>
<con:resource name="IP" path="/json/{IP}" id="cb5adae5-f259-494e-859d-cf66f83213b3">
<con:settings/>
<con:parameters/>
<con:method name="IP" id="b42a9ec4-85e7-4b46-b213-d26ab02928bd" method="GET">
<con:settings/>
<con:parameters>
<con:parameter required="true">
<con:name>IP</con:name>
<con:value>IP</con:value>
<con:style>TEMPLATE</con:style>
<con:default>IP</con:default>
<con:path xsi:nil="true"/>
<con:description xsi:nil="true"/>
</con:parameter>
</con:parameters>
<con:representation type="RESPONSE">
<con:mediaType>application/json; charset=utf-8</con:mediaType>
<con:status>200</con:status>
<con:params/>
<con:element xmlns:ns="http://ipwhois.app/json/76.67.122.80">ns:Response</con:element>
</con:representation>
<con:request name="Request 1" id="cd31cd84-d724-47e6-ac93-24c377364646" mediaType="application/json">
<con:settings/>
<con:endpoint>http://ipwhois.app</con:endpoint>
<con:credentials>
<con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
<con:authType>No Authorization</con:authType>
</con:credentials>
<con:parameters>
<con:entry key="IP" value="IP"/>
</con:parameters>
<con:parameterOrder>
<con:entry>IP</con:entry>
</con:parameterOrder>
</con:request>
</con:method>
</con:resource>
</con:interface>
<con:testSuite id="09a04b11-1f83-41b7-987b-e651bf0e74cb" name="http://ipwhois.app Test Suite">
<con:settings id="510443ca-5c27-48a5-8ce3-0b41e328da49"/>
<con:runType>SEQUENTIAL</con:runType>
<con:testCase id="3c6b0300-1fc5-4dde-abf4-c333035c3282" discardOkResults="false" failOnError="false" failTestCaseOnErrors="true" keepSession="false" name="http://ipwhois.app Test Case 1" searchProperties="true" timeout="0">
<con:settings/>
<con:testStep type="datasource" name="Data Source" id="7eb2874a-2180-4df6-8793-7322ef99788e">
<con:settings/>
<con:config xsi:type="con:DataSourceStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:dataSource type="Data Generator">
<con:configuration>
<generatedDataCount>10</generatedDataCount>
<generatorsTotalNumber>1</generatorsTotalNumber>
<lastSelectedProperty>0</lastSelectedProperty>
<GeneratorType0>COMP</GeneratorType0>
<PropertyName0>IP</PropertyName0>
<repetitionCountIP>0</repetitionCountIP>
<repeatValuesIP>false</repeatValuesIP>
<ComputerAddressTypeIP>IPv4</ComputerAddressTypeIP>
<escapeSpaceSequence/>
</con:configuration>
</con:dataSource>
<con:shared>false</con:shared>
<con:restartShared>false</con:restartShared>
<con:property>IP</con:property>
<con:restartOnRun>true</con:restartOnRun>
<con:stopDatasourceExhausted>false</con:stopDatasourceExhausted>
</con:config>
</con:testStep>
<con:testStep type="datasink" name="Data Sink" id="41bf6b72-9832-4c2d-a49c-4aa7d565794f">
<con:settings/>
<con:config xsi:type="con:DataSinkStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:dataSink type="JDBC">
<con:configuration>
<driver>com.mysql.jdbc.Driver</driver>
<connstr>jdbc:mysql://db4free.net:3306/fstm1db?user=fstm1db&password=PASS_VALUE</connstr>
<pass>6Y6NowPybq</pass>
<Connection><None></Connection>
<query>insert into coordinates(city_name,latitude,longitude) values (?,?,?);</query>
<stored-procedure>false</stored-procedure>
</con:configuration>
</con:dataSink>
<con:properties>
<con:property>
<con:name>city_name</con:name>
<con:value>São Paulo</con:value>
</con:property>
<con:property>
<con:name>latitude</con:name>
<con:value>-23.5505199</con:value>
</con:property>
<con:property>
<con:name>longitude</con:name>
<con:value>-46.6333094</con:value>
</con:property>
</con:properties>
</con:config>
</con:testStep>
<con:testStep type="restrequest" name="Request 1" id="45f4b881-4de3-44e7-bc1e-83ea2f16213c">
<con:settings/>
<con:config service="http://ipwhois.app" resourcePath="/json/{IP}" methodName="IP" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:restRequest name="Request 1" id="cd31cd84-d724-47e6-ac93-24c377364646" mediaType="application/json">
<con:settings>
<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting>
</con:settings>
<con:endpoint>http://ipwhois.app</con:endpoint>
<con:request/>
<con:originalUri>http://ipwhois.app/json/76.67.122.80</con:originalUri>
<con:assertion type="Valid HTTP Status Codes" id="3b76cdb8-04fd-48c3-ad67-54d4505aed58" name="Valid HTTP Status Codes">
<con:settings/>
<con:configuration>
<codes>200</codes>
</con:configuration>
</con:assertion>
<con:credentials>
<con:selectedAuthProfile>No Authorization</con:selectedAuthProfile>
<con:authType>No Authorization</con:authType>
</con:credentials>
<con:jmsConfig JMSDeliveryMode="PERSISTENT"/>
<con:parameters>
<con:entry key="IP" value="${Data Source#IP}"/>
</con:parameters>
<con:parameterOrder>
<con:entry>IP</con:entry>
</con:parameterOrder>
</con:restRequest>
</con:config>
</con:testStep>
<con:testStep type="transfer" name="PropertyTransfer 1" id="2f53099c-60d6-463b-a23d-9eee09237836">
<con:settings/>
<con:config xsi:type="con:PropertyTransfersStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true">
<con:name>city</con:name>
<con:sourceType>Response</con:sourceType>
<con:sourceStep>Request 1</con:sourceStep>
<con:sourcePath>$['city']</con:sourcePath>
<con:targetType>city_name</con:targetType>
<con:targetStep>Data Sink</con:targetStep>
<con:targetPath/>
<con:type>JSONPATH</con:type>
<con:upgraded>true</con:upgraded>
</con:transfers>
<con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true">
<con:name>latitude</con:name>
<con:sourceType>Response</con:sourceType>
<con:sourceStep>Request 1</con:sourceStep>
<con:sourcePath>$['latitude']</con:sourcePath>
<con:targetType>latitude</con:targetType>
<con:targetStep>Data Sink</con:targetStep>
<con:targetPath/>
<con:type>JSONPATH</con:type>
<con:targetTransferType>JSONPATH</con:targetTransferType>
<con:upgraded>true</con:upgraded>
</con:transfers>
<con:transfers setNullOnMissingSource="true" transferTextContent="true" failOnError="true">
<con:name>longitude</con:name>
<con:sourceType>Response</con:sourceType>
<con:sourceStep>Request 1</con:sourceStep>
<con:sourcePath>$['longitude']</con:sourcePath>
<con:targetType>longitude</con:targetType>
<con:targetStep>Data Sink</con:targetStep>
<con:targetPath/>
<con:type>JSONPATH</con:type>
<con:targetTransferType>JSONPATH</con:targetTransferType>
<con:upgraded>true</con:upgraded>
</con:transfers>
</con:config>
</con:testStep>
<con:testStep type="datasourceloop" name="Data Source Loop" id="b9d9decd-bd4e-4911-be63-2bcb04f5de2d">
<con:settings/>
<con:config>
<dataSourceStep>Data Source</dataSourceStep>
<targetStep>Request 1</targetStep>
<discardResults>true</discardResults>
</con:config>
</con:testStep>
<con:properties/>
<con:reportParameters/>
</con:testCase>
<con:properties/>
<con:reportParameters/>
</con:testSuite>
<con:requirements/>
<con:properties/>
<con:wssContainer/>
<con:databaseConnectionContainer/>
<con:jmsConnectionContainer/>
<con:oAuth2ProfileContainer/>
<con:oAuth1ProfileContainer/>
<con:reporting>
<con:xmlTemplates/>
<con:parameters/>
</con:reporting>
<con:eventHandlers type="RequestFilter.filterRequest" name="RequestFilter.filterRequest">
<con:script>// Sample event script to add custom HTTP header to all outgoing REST, SOAP and HTTP(S) calls
// This code is often used for adding custom authentication to ReadyAPI functional tests
// If hardcoding the token, uncomment and change line 5
// token = '4567'
// If your token is parameterized in Project level custom property, uncomment line 8
// token = request.parent.testCase.testSuite.project.getProperty('auth_token').getValue()
// To modify all outgoing calls, remove comments from lines 11 to 16
// headers = request.requestHeaders
// if (headers.containsKey('auth_token2') == false) {
// headers.put('auth_token2', token)
// request.requestHeaders = headers
// }</con:script>
</con:eventHandlers>
<con:eventHandlers type="TestRunListener.afterStep" name="TestRunListener.afterStep">
<con:script>// Save all test step results into files
// Change the directory path in line 5 to a location where you want to store details
// then uncomment lines 5 to 10
// filePath = 'C:\\tempOutputDirectory\\'
// fos = new java.io.FileOutputStream(filePath + testStepResult.testStep.label + '.txt', true)
// pw = new java.io.PrintWriter(fos)
// testStepResult.writeTo(pw)
// pw.close()
// fos.close()</con:script>
</con:eventHandlers>
<con:authRepository/>
<con:tags/>
</con:soapui-project>