A number of sample SoapUI Projects - see http://www.soapui.org/About-SoapUI/api-example-projects.html
smartbear / soapui-sample-projects Goto Github PK
View Code? Open in Web Editor NEWA number of sample SoapUI Projects
A number of sample SoapUI Projects
A number of sample SoapUI Projects - see http://www.soapui.org/About-SoapUI/api-example-projects.html
most of these samples have been deprecated ie need new URLs & API keys to work
for example youtube is now at
curl \
'https://youtube.googleapis.com/youtube/v3/channels?part=snippet%2CcontentDetails%2Cstatistics&mine=true&key=[YOUR_API_KEY]' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--compressed
see https://developers.google.com/youtube/v3/code_samples/code_snippets?apix=true
<con:soapui-project activeEnvironment="Default" name="Facebook" resourceRoot="" soapui-version="4.5.2" xmlns:con="http://eviware.com/soapui/config">con:settings/<con:interface xsi:type="con:RestService" wadlVersion="http://wadl.dev.java.net/2009/02" name="Graph API" type="rest" basePath="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">con:settings/<con:definitionCache type="TEXT" rootPart=""/>con:endpointscon:endpointhttps://graph.facebook.com</con:endpoint></con:endpoints><con:resource name="user" path="/{user}">con:settings/con:parameterscon:parametercon:nameuser</con:name>con:value${#Project#facebook_user}</con:value>con:styleTEMPLATE</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type>con:default${#Project#facebook_user}</con:default><con:path xsi:nil="true"/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:resource name="picture" path="/picture">con:settings/con:parameters/<con:method name="Method 1" method="GET">con:settings/con:parameters/<con:request name="Request 1" mediaType="application/xml">con:settings/con:endpointhttps://graph.facebook.com</con:endpoint>con:request/con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters/</con:request></con:method></con:resource><con:resource name="feed" path="feed">con:settings/con:parameterscon:parametercon:nameaccess_token</con:name>con:value/con:styleQUERY</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:method name="Method 1" method="GET">con:settings/con:parameters/<con:representation type="FAULT">con:mediaTypetext/javascript; charset=UTF-8</con:mediaType>con:status400</con:status>con:params/<con:element xmlns:feed="https://graph.facebook.com/olensmar/feed">feed:Fault</con:element></con:representation><con:representation type="RESPONSE">con:mediaTypetext/javascript; charset=UTF-8</con:mediaType>con:status200</con:status>con:params/<con:element xmlns:feed="https://graph.facebook.com/olensmar/feed">feed:Response</con:element></con:representation><con:request name="Request 1" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters</con:parameters></con:request></con:method></con:resource><con:method name="Method 1" method="GET">con:settings/con:parameters/<con:representation type="RESPONSE">con:mediaTypetext/javascript; charset=UTF-8</con:mediaType>con:status200</con:status>con:params/</con:representation><con:representation type="FAULT">con:mediaTypetext/javascript; charset=UTF-8</con:mediaType>con:status400</con:status>con:params/</con:representation><con:request name="Request 1" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters/</con:request></con:method></con:resource><con:resource name="group" path="/{group}">con:settings/con:parameterscon:parametercon:namegroup</con:name>con:valuesmartbear</con:value>con:styleTEMPLATE</con:style><con:type xmlns:xs="http://www.w3.org/2001/XMLSchema">xs:string</con:type>con:defaultsmartbear</con:default><con:path xsi:nil="true"/><con:description xsi:nil="true"/></con:parameter></con:parameters><con:resource name="picture" path="/picture">con:settings/con:parameters/<con:method name="Method 1" method="GET">con:settings/con:parameters/<con:representation type="RESPONSE">con:mediaTypeimage/jpeg</con:mediaType>con:status200</con:status>con:params/con:elementdata</con:element></con:representation><con:request name="Request 1" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters/</con:request></con:method></con:resource><con:method name="Method 1" method="GET">con:settings/con:parameters/<con:representation type="RESPONSE">con:mediaTypetext/javascript; charset=UTF-8</con:mediaType>con:status200</con:status>con:params/</con:representation><con:request name="Request 1" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters/</con:request></con:method></con:resource><con:resource name="me" path="/me">con:settings/con:parameterscon:parametercon:nameaccess_token</con:name>con:value/con:styleQUERY</con:style>con:default/</con:parameter></con:parameters><con:method name="Method 1" method="GET">con:settings/con:parameters/<con:representation type="FAULT">con:mediaTypetext/javascript; charset=UTF-8</con:mediaType>con:status400</con:status>con:params/<con:element xmlns:me="https://graph.facebook.com/me">me:Fault</con:element></con:representation><con:representation type="RESPONSE">con:mediaTypetext/javascript; charset=UTF-8</con:mediaType>con:status200</con:status>con:params/<con:element xmlns:me="https://graph.facebook.com/me">me:Response</con:element></con:representation><con:request name="Request 1" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters</con:parameters></con:request></con:method></con:resource></con:interface><con:testSuite name="TestSuite 1">con:settings/con:runTypeSEQUENTIAL</con:runType><con:testCase failOnError="true" failTestCaseOnErrors="true" keepSession="false" maxResults="0" name="TestCase 1" searchProperties="true" id="62897481-5aff-4dc2-a798-5400398ab6ad">con:descriptionSimple test to validate that the User data contains the correct link and the User Feed contains at least 10 entries - would work well as a monitor.
See https://developers.facebook.com/docs/reference/api/</con:description>con:settings/<con:testStep type="restrequest" name="User request">con:settings/<con:config service="Graph API" resourcePath="/{user}" methodName="Method 1" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="User request" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/<con:assertion type="XPath Match" name="Match content of [link]">con:configurationdeclare namespace ns1='https://graph.facebook.com/olensmar';
//ns1:Response[1]/ns1:link[1]/text()http://www.facebook.com/${#Project#facebook_user}falsefalsefalse</con:configuration></con:assertion>con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters/</con:restRequest></con:config></con:testStep><con:testStep type="restrequest" name="Me Request" id="c5bfd5bf-4e9d-44a3-b174-1d80b5982ad4">con:settings/<con:config service="Graph API" resourcePath="/me" methodName="Method 1" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="Me Request" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/<con:assertion type="XPath Match" name="Match content of [link]">con:configurationdeclare namespace ns1='https://graph.facebook.com/me';
//ns1:Response[1]/ns1:link[1]/text()${User request#ResponseAsXml#declare namespace ns1='https://graph.facebook.com/olensmar'; //ns1:Response[1]/ns1:link[1]}falsefalsefalse</con:configuration></con:assertion>con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters</con:parameters></con:restRequest></con:config></con:testStep><con:testStep type="transfer" name="Property Transfer" id="61e93e98-01be-4bbb-b61f-2a1a5f5581f7">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" ignoreEmpty="false" transferToAll="false" useXQuery="false" entitize="false" transferChildNodes="false">con:nameuserid</con:name>con:sourceTypeResponseAsXml</con:sourceType>con:sourceStepUser request</con:sourceStep>con:sourcePathdeclare namespace ns1='https://graph.facebook.com/olensmar';
//ns1:Response[1]/ns1:username[1]</con:sourcePath>con:targetTypeuser</con:targetType>con:targetStepUser Feed</con:targetStep></con:transfers></con:config></con:testStep><con:testStep type="restrequest" name="User Feed">con:settings/<con:config service="Graph API" resourcePath="/{user}/feed" methodName="Method 1" xsi:type="con:RestRequestStep" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:restRequest name="User Feed" mediaType="application/xml">con:settings<con:setting id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings>con:endpointhttps://graph.facebook.com</con:endpoint>con:request/<con:assertion type="XPath Match" name="Check count of [actions]">con:configurationdeclare namespace ns1='https://graph.facebook.com/olensmar/feed';
count( //ns1:Response/ns1:data/ns1:e)>10truefalsefalsefalse</con:configuration></con:assertion>con:credentialscon:authTypeGlobal HTTP Settings</con:authType></con:credentials><con:jmsConfig JMSDeliveryMode="PERSISTENT"/>con:jmsPropertyConfig/con:parameters
<con:entry key="user" value="olensmar"/>
<con:entry key="access_token" value="${#Project#facebook_access_token}"/>
</con:parameters></con:restRequest></con:config></con:testStep>con:properties/con:reportParameters/con:breakPointscon:testStepId61e93e98-01be-4bbb-b61f-2a1a5f5581f7</con:testStepId>con:statusNONE</con:status>con:properties/</con:breakPoints>con:breakPointscon:testStepIdc5bfd5bf-4e9d-44a3-b174-1d80b5982ad4</con:testStepId>con:statusNONE</con:status>con:properties/</con:breakPoints></con:testCase>con:properties/con:reportParameters/</con:testSuite>con:requirements/con:propertiescon:propertycon:namefacebook_user</con:name>con:value/</con:property>con:propertycon:namefacebook_access_token</con:name>con:value/</con:property></con:properties>con:wssContainer/con:databaseConnectionContainer/con:reportingcon:reportTemplates/con:xmlTemplates/con:parameters/</con:reporting>con:sensitiveInformation/</con:soapui-project>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.