forked from training-support/FST-M1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathActivity_5.xml
More file actions
143 lines (139 loc) · 7.08 KB
/
Activity_5.xml
File metadata and controls
143 lines (139 loc) · 7.08 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
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project id="0835b2c0-a584-435c-9ebe-913309a6e120" created="3.54.0" activeEnvironment="Default environment" encryptionMode="Not encrypted" name="activity_5" 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="b32cbaa6-254d-488d-81fa-55d9646d753b" 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="f403fc9a-8927-4ca4-bbbf-852f6002b6b7"/>
<con:definitionCache type="TEXT" rootPart=""/>
<con:endpoints>
<con:endpoint>http://ipwhois.app</con:endpoint>
</con:endpoints>
<con:resource name="IP" path="/json/{IP}" id="573384bc-01fe-4df2-869c-2865d9cae473">
<con:settings/>
<con:parameters/>
<con:method name="IP" id="975c24c1-cd72-4f05-977c-17fac3d1a5a2" method="GET">
<con:settings/>
<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:ipw="http://ipwhois.app/">ipw:Response</con:element>
</con:representation>
<con:request name="Request 1" id="8c2228cf-29ff-42a7-a743-7058c2f72103" mediaType="application/json">
<con:settings/>
<con:endpoint>http://ipwhois.app</con:endpoint>
<con:parameters/>
</con:request>
</con:method>
</con:resource>
</con:interface>
<con:testSuite id="f7819409-f892-4a5f-b638-d93413eb0ac6" name="http://ipwhois.app Test Suite">
<con:settings id="7b22efbe-1211-445d-805c-4d01981633bf"/>
<con:runType>SEQUENTIAL</con:runType>
<con:testCase id="a8478074-2711-4e6f-8718-1bc45d086620" 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="Datasource" id="a5f4880c-d6cc-4a26-ba70-8865eff11b37">
<con:settings/>
<con:config xsi:type="con:DataSourceStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<con:dataSource type="Excel">
<con:configuration>
<file>C:/Users/ShireeshaM/Desktop/JAVA SELENIUM/abc.xlsx</file>
<worksheet/>
<cell>A2</cell>
<ignoreEmpty>false</ignoreEmpty>
<evaluateFormulas>false</evaluateFormulas>
</con:configuration>
</con:dataSource>
<con:shared>false</con:shared>
<con:restartShared>false</con:restartShared>
<con:property>IP Address</con:property>
<con:restartOnRun>true</con:restartOnRun>
<con:stopDatasourceExhausted>false</con:stopDatasourceExhausted>
</con:config>
</con:testStep>
<con:testStep type="restrequest" name="Request 1" id="5b556c2f-a14e-4c18-9a0b-ea68da77dc04">
<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="8c2228cf-29ff-42a7-a743-7058c2f72103" 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/</con:originalUri>
<con:assertion type="Valid HTTP Status Codes" id="8c5bfec3-34a8-42bf-9fd7-32db2a87db9a" name="Valid HTTP Status Codes">
<con:settings/>
<con:configuration>
<codes>200</codes>
</con:configuration>
</con:assertion>
<con:assertion type="JsonPath Match" id="a16f2005-1460-4adf-8376-c3282c845df8" name="JSONPath Match">
<con:configuration>
<path>$['message']</path>
<content>"Hi, documentation https://ipwhois.io/documentation"</content>
<allowWildcards>false</allowWildcards>
<ignoreNamspaceDifferences>false</ignoreNamspaceDifferences>
<ignoreComments>false</ignoreComments>
</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:restRequest>
</con:config>
</con:testStep>
<con:testStep type="datasourceloop" name="Data Source Loop" id="6870d02e-d8aa-410b-a3a8-758242c440e3">
<con:settings/>
<con:config>
<dataSourceStep>Datasource</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: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>