-
Notifications
You must be signed in to change notification settings - Fork 0
/
Flickr-soapui-project.xml
51 lines (50 loc) · 19.8 KB
/
Flickr-soapui-project.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<con:soapui-project activeEnvironment="Default" name="Flickr" resourceRoot="" soapui-version="5.6.0" id="947b13a5-aeee-4f05-a4cf-c1f0d5e2dc67" abortOnError="false" runType="SEQUENTIAL" xmlns:con="http://eviware.com/soapui/config"><con:settings/><con:interface xsi:type="con:RestService" wadlVersion="http://wadl.dev.java.net/2009/02" name="Flickr" type="rest" basePath="" id="f8559193-5193-44d2-a3c0-0bd3b79b86e8" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:settings/><con:definitionCache type="TEXT" rootPart=""/><con:endpoints><con:endpoint>http://api.flickr.com</con:endpoint></con:endpoints><con:resource name="services" path="services" id="3a4d509f-6956-4b0e-b787-4b8309818e60"><con:settings/><con:parameters><con:parameter required="true"><con:name>method</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:option>flickr.photos.search</con:option><con:option>flickr.groups.search</con:option><con:option>flickr.people.findByUsername</con:option><con:option>flickr.places.find</con:option><con:option>flickr.cameras.getBrands</con:option><con:option>flickr.interestingness.getList</con:option></con:parameter><con:parameter required="true"><con:name>api_key</con:name><con:value>${#Project#ApiKey}</con:value><con:style>QUERY</con:style><con:default>${#Project#ApiKey}</con:default></con:parameter></con:parameters><con:resource name="rest" path="rest" id="87351b95-3b32-4445-b5b4-040281a3b679"><con:settings/><con:parameters><con:parameter><con:name>format</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:option>json</con:option><con:option>php_serial</con:option><con:option>xmlrpc</con:option><con:option>soap</con:option><con:option>rest</con:option></con:parameter><con:parameter><con:name>nojsoncallback</con:name><con:value/><con:style>QUERY</con:style><con:default/><con:option>1</con:option></con:parameter></con:parameters><con:method name="Photo Search" method="GET" id="f70cbc9e-fe9e-42f3-a937-f865748d2be3"><con:settings/><con:parameters><con:parameter><con:name>text</con:name><con:value/><con:style>QUERY</con:style><con:default/></con:parameter></con:parameters><con:representation type="FAULT"><con:mediaType>text/html; charset=UTF-8</con:mediaType><con:status>404</con:status><con:params/><con:element>html</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>text/xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element>rsp</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>text/javascript; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/></con:representation><con:representation type="RESPONSE"><con:mediaType>application/soap+xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element xmlns:soap="http://www.w3.org/2003/05/soap-envelope">soap:Envelope</con:element></con:representation><con:request name="Request 1" mediaType="application/xml" id="91e283bd-bd90-4e7f-bb2b-9553e8fcaf44"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="text" value="soapui"/>
<con:entry key="method" value="flickr.photos.search"/>
<con:entry key="format" value="rest"/>
</con:parameters></con:request></con:method><con:method name="Group Search" method="GET" id="8eefee73-57b0-450c-a865-0db545c79284"><con:settings/><con:parameters><con:parameter><con:name>text</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:path xsi:nil="true"/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:representation type="RESPONSE"><con:mediaType>text/xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element>rsp</con:element></con:representation><con:request name="Request 1" mediaType="application/xml" id="98657d84-d55a-4647-b80f-f9347d3c6adf"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="text" value="leica"/>
<con:entry key="method" value="flickr.groups.search"/>
</con:parameters></con:request></con:method><con:method name="Find User" method="GET" id="6767290f-b9ff-4933-ade8-c74beaf796f6"><con:settings/><con:parameters><con:parameter><con:name>username</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:path xsi:nil="true"/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:representation type="RESPONSE"><con:mediaType>text/xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element>rsp</con:element></con:representation><con:request name="Request 1" mediaType="application/xml" id="25f5ffd4-44e7-404e-8d05-7c780e40a625"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="username" value="olensmar"/>
<con:entry key="method" value="flickr.people.findByUsername"/>
</con:parameters></con:request></con:method><con:method name="Find Places" method="GET" id="731469bb-c59c-4944-961b-eee32a97888f"><con:settings/><con:parameters><con:parameter><con:name>query</con:name><con:value/><con:style>QUERY</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type><con:default/><con:path xsi:nil="true"/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:representation type="RESPONSE"><con:mediaType>text/xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element>rsp</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>application/json</con:mediaType><con:status>200</con:status><con:params/><con:element xmlns:rest="http://api.flickr.com/services/rest">rest:Response</con:element></con:representation><con:request name="Request 1" mediaType="application/xml" id="0a8b48de-bf53-4e12-8566-a54d140aa706"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="query" value="stockholm"/>
<con:entry key="method" value="flickr.places.find"/>
</con:parameters></con:request></con:method><con:method name="Get Cameras" method="GET" id="0143af0f-4525-4506-872e-a32451478cd1"><con:settings/><con:parameters/><con:representation type="RESPONSE"><con:mediaType>text/xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element>rsp</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>text/javascript; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/></con:representation><con:representation type="RESPONSE"><con:mediaType>text/plain; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element>data</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>application/soap+xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element xmlns:soap="http://www.w3.org/2003/05/soap-envelope">soap:Envelope</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>application/json</con:mediaType><con:status>200</con:status><con:params/><con:element xmlns:rest="http://api.flickr.com/services/rest">rest:Response</con:element></con:representation><con:request name="Request 1" mediaType="application/xml" id="6378e6b4-7022-4c0a-b7ea-80194348ec47"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="nojsoncallback" value="1"/>
<con:entry key="method" value="flickr.cameras.getBrands"/>
<con:entry key="format" value="php_serial"/>
</con:parameters></con:request></con:method><con:method name="Interestingness" method="GET" id="f3f69875-7b8d-4ac9-a9e8-7b3365318dc9"><con:settings/><con:parameters/><con:representation type="RESPONSE"><con:mediaType>text/xml; charset=utf-8</con:mediaType><con:status>200</con:status><con:params/><con:element>rsp</con:element></con:representation><con:representation type="RESPONSE"><con:mediaType>application/json</con:mediaType><con:status>200</con:status><con:params/><con:element xmlns:rest="http://api.flickr.com/services/rest">rest:Response</con:element></con:representation><con:request name="Request 1" mediaType="application/xml" id="5818a549-73d6-4b89-bc47-6764dcaf44de"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="nojsoncallback" value="1"/>
<con:entry key="method" value="flickr.interestingness.getList"/>
<con:entry key="format" value="json"/>
</con:parameters></con:request></con:method></con:resource></con:resource></con:interface><con:testSuite name="TestSuite" id="2ef46ac1-53d8-423b-a855-58a42c7619e2"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="TestCase" searchProperties="true" id="731ad4bf-e60d-450a-ac48-9ddacccfe4b7"><con:description>Basic tests for Flickr API - including both authenticated and anonymous resources:
- First request makes sure the interestingness list always contains 100 entries (which it won't when a new day starts)
- Send request makes sure the specified user can be found
- Third request checks that "Nikon" is in the list of cameras
- Fourth request checks that there are photos available for "Stockholm"
see http://www.flickr.com/services/api/</con:description><con:settings><con:setting id="IncludeOverview">true</con:setting><con:setting id="IncludeResults">true</con:setting><con:setting id="FlowLayout">false</con:setting><con:setting id="ErrorDetails">true</con:setting><con:setting id="IncludeCoverage">true</con:setting></con:settings><con:testStep type="restrequest" name="Interestingness Request - JSON" id="6c4c1cc6-9920-49b1-bc5f-315c8807a238"><con:settings/><con:config service="Flickr" resourcePath="/services/rest" methodName="Interestingness" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Interestingness Request - JSON" mediaType="application/xml" id="648f30a2-650d-4666-8a6a-03266ff443e1"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>https://api.flickr.com</con:endpoint><con:request/><con:originalUri>https://api.flickr.com/services/rest</con:originalUri><con:assertion type="JsonPath Match" id="86b32d0f-0d67-4755-9006-60adddb55a1f" name="JsonPath Match 1"><con:configuration><path>photos.perpage</path><content>100</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="JsonPath Match" id="09652842-1481-4ab1-afb0-04b5a8c020ca" name="JsonPath Match 2"><con:configuration><path>stat</path><content>ok</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="JsonPath Count" id="aabb8e3f-7cd3-4a9b-a923-ff8a897c3656" name="JsonPath Count"><con:configuration><path>photos.photo</path><content>100</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="JsonPath Match" id="de9f2379-27b8-4c01-b8b0-416b763196db" name="JsonPath Match 3"><con:configuration><path>photos.photo[5].title</path><content>Living in Obscurity</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="JsonPath Match" id="0bc71488-24d3-4cb4-89d0-656526e8a1b3" name="JsonPath Match 4"><con:configuration><path>photos.photo[?(@.title=='meadow memories')].owner</path><content>[127257756@N06]</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="JsonPath Match" id="b310a574-ba26-4c2d-a8aa-dc32e63b0fa7" name="JsonPath Match 5"><con:configuration><path>photos.photo[?(@.title=='meadow memories')].id</path><content>[50671421272]</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:assertion type="JsonPath Existence Match" id="cc422f08-a54e-4b98-9127-b9fb604d84af" name="JsonPath Existence Match"><con:configuration><path>photos.photo[*].id</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="nojsoncallback" value="1"/>
<con:entry key="method" value="flickr.interestingness.getList"/>
<con:entry key="format" value="json"/>
</con:parameters></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Find User Request - REST" id="da011dbd-cac0-4b0f-aaff-223cdf71a4a0"><con:settings/><con:config service="Flickr" resourcePath="/services/rest" methodName="Find User" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Find User Request - REST" mediaType="application/xml" id="c9b190b4-a91f-43d9-b68c-49da00f03445"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:assertion type="XPath Match" name="Match content of [rsp]" id="e253e9cb-fa1d-4fac-9adf-7634491676cf"><con:configuration><path>//rsp[1]</path><content><![CDATA[<rsp stat="ok">
<user id="42340368@N08" nsid="42340368@N08">
<username>olensmar</username>
</user>
</rsp>]]></content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="username" value="olensmar"/>
<con:entry key="method" value="flickr.people.findByUsername"/>
<con:entry key="format" value="rest"/>
</con:parameters></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Get Cameras - SOAP" id="2d3e43ec-87e8-4aff-87d1-5e497d82b71c"><con:settings/><con:config service="Flickr" resourcePath="/services/rest" methodName="Get Cameras" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Get Cameras - SOAP" mediaType="application/xml" id="3cba9836-6ef5-49f5-8e68-5c9324a8fe30"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:assertion type="Simple Contains" name="Contains" id="81b6224b-3ccd-4503-97a4-cc52f30f8fa4"><con:configuration><token><brand id="nikon" name="Nikon" /></token><ignoreCase>false</ignoreCase><useRegEx>false</useRegEx></con:configuration></con:assertion><con:credentials><con:selectedAuthProfile>Basic</con:selectedAuthProfile><con:addedBasicAuthenticationTypes>Basic</con:addedBasicAuthenticationTypes><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="nojsoncallback" value="1"/>
<con:entry key="method" value="flickr.cameras.getBrands"/>
<con:entry key="format" value="soap"/>
</con:parameters></con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Find Places - JSON" id="d924ded0-8188-4bf0-82b9-d26366de992c"><con:settings/><con:config service="Flickr" resourcePath="/services/rest" methodName="Find Places" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Find Places - JSON" mediaType="application/xml" accept="" id="2398269a-0514-40b3-9b22-7d05b1597a0a"><con:settings><con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:endpoint>http://api.flickr.com</con:endpoint><con:request/><con:assertion type="XPath Match" name="Check for existance of [e]" id="49e1801b-1040-4e56-8cb5-fbfb94584168"><con:configuration><path>declare namespace ns1='http://api.flickr.com/services/rest';
exists( //ns1:Response/ns1:places/ns1:place/ns1:e)</path><content>true</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences><ignoreComments>false</ignoreComments></con:configuration></con:assertion><con:credentials><con:authType>Global HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/><con:jmsPropertyConfig/><con:parameters>
<con:entry key="query" value="stockholm"/>
<con:entry key="nojsoncallback" value="1"/>
<con:entry key="method" value="flickr.places.find"/>
<con:entry key="format" value="json"/>
</con:parameters></con:restRequest></con:config></con:testStep><con:properties><con:property><con:name>temp</con:name><con:value/></con:property></con:properties><con:reportParameters/></con:testCase><con:properties/><con:reportParameters/></con:testSuite><con:requirements/><con:properties><con:property><con:name>ApiKey</con:name><con:value>f692090903dda08f53ce32bb338e0f40</con:value></con:property></con:properties><con:wssContainer/><con:databaseConnectionContainer/><con:oAuth2ProfileContainer/><con:oAuth1ProfileContainer/><con:reporting><con:reportTemplates/><con:xmlTemplates/><con:parameters/></con:reporting><con:sensitiveInformation/></con:soapui-project>