Functional Web Services Testing Made Easy with SoapUI - Part 1

4. Now it’s time to run these requests to ensure that they actually work. Double click on Request 1. An editor will open up for the LatLonListZipCode request. Enter the zip code for your city. I did 20904 for Silver Spring. Click the Green button on the Request 1 editor and you should be able to see the response on the right hand side of the editor.

Try a few more requests with the following data:


a. NDFDgenByDay Request 1

<ndf:NDFDgenByDay soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<latitude xsi:type="xsd:decimal">39.0138</latitude>
<longitude xsi:type="xsd:decimal">-77.0242</longitude>
<startDate xsi:type="xsd:date">2008-05-07</startDate>
<numDays xsi:type="xsd:integer">1</numDays>
<format xsi:type="dwml:formatType" xmlns:dwml="http://www.weather.gov/forecasts/xml/DWMLgen/schema/DWML.xsd">12 hourly</format>
</ndf:NDFDgenByDay>
b. NDFDgenByDayLatLonList Request 1
 <ndf:NDFDgenByDayLatLonList soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<listLatLon xsi:type="dwml:listLatLonType" xmlns:dwml="http://www.weather.gov/forecasts/xml/DWMLgen/schema/DWML.xsd">39.0138,-77.0242</listLatLon>
<startDate xsi:type="xsd:date">2008-05-07</startDate>
<numDays xsi:type="xsd:integer">1</numDays>
<format xsi:type="dwml:formatType" xmlns:dwml="http://www.weather.gov/forecasts/xml/DWMLgen/schema/DWML.xsd">12 hourly</format>
</ndf:NDFDgenByDayLatLonList>

Subtitle: 
Functional Web Services testing using SoapUI
Article Type: 
How-to
Article Resources: 
0
Average: 4.2 (5 votes)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Comments

Revathi_12 replied on Fri, 2008/11/14 - 12:19am

How to integrate our own API with SoapUI?

Pls let me know ASAP

Meera Subbarao replied on Fri, 2008/11/14 - 12:30pm

Do you mean Groovy API?

Revathi_12 replied on Tue, 2008/11/18 - 1:55am

Hi meera I found the way to add our API with SoapUI.

Now I want to know how to add multiple Xpath match assertion in a single click? Because SoapUI allows us to add assertion one by one, if we need to compare 100's of parameters from actual and expected its very tedious.

Meera Subbarao replied on Tue, 2008/11/18 - 7:13am

I am not sure you can add multiple assertions in one click. My suggestion would be to use Groovy, parse the response and assert the results. It might be possible to do with the SoapUI Pro version, I have not used one though.

saritamohaptra replied on Wed, 2009/01/21 - 3:59am

Hi Meera, I went through your replies, and it is really usefull , I understood well becasue I am working on SOAP UI currently.. but I am unable to open the attachments,

 

and I am really interested to know about the groovy scripts... being from non developent background I wanted to know how user friendy it is...want to now about the jmeter reports through SOPA ui,,,please send some user guide if you have....

Meera Subbarao replied on Wed, 2009/02/04 - 6:20pm in response to: saritamohaptra

If you know Java, you shouldn't have a problem using Groovy. On the other hand, if you are learning it for the first time. there are many Groovy books available. One such book is "Groovy in Action".

Let me know if you need anything else.

 

bullparade replied on Fri, 2009/04/03 - 10:20am

Hello Meera, In SoapUI, is it possible to take a single request message, and create a test case that loops through a list of different data values and populates those data values into each new request? Using your NOAA wsdl for example; using the LatLonListZipCode request message, somehow loop this request with several thousand different zipcodes from an external file - how do we accomplish this? Sounds like it requires groovy? If this is the case, can you provide a snippet or example? Thanks!

mikey-B replied on Wed, 2009/04/08 - 1:15pm

Hi Meera - I am new to the SOA world with a lot to learn in order to be effective with SoapUI.  Thanks in advance for your contributions here.  It seems that what you are presenting is right in line with my initial needs.  Much to learn!  I have finished Part 1 - Where is Part II?  Did I miss link somewhere?

AnandKiran replied on Mon, 2009/04/13 - 3:42am

Hi Meera,

               Do you haev any idea about how to run different test suites in a project with a single click using groovy . 

Thanks 

With Regards 

Anand Kiran G

naniblr9 replied on Wed, 2009/08/26 - 8:38am

Hi Meera,

 

UR ARTICLES ARE GOOD for practising SOA testing with SOAPUI tool.

I am working as Test Engineer, I want to learn SOA testing,Can you please send me information regarding Deployment of .WAR file in JBoss application server,

Currently i am using JDK1.4 and JBOSS4 softwares in my laptop,i placed .WAR file (which contain web services)in  FOLLOWING PATH IE "C:\jboss-4.0.1sp1\server\default\deploy\HLRWebservices.War"

I tried to run Jboss server in command prompt ie C:\jboss-4.0.1sp1\server\default\deploy> RUN <Enter>

I opened IE and typed localhost:8080/HLRWebservices/Services-----I am getting HTTP 404 error,

can u please give me some more information how to deploy in Jboss and start services and see it in IE with above port number in my laptop.

 

PLEASE KINDLY HELP ME TO RUN WEB SERVICES

aisarosenbaum replied on Thu, 2009/10/15 - 12:12pm

First, great site!

SoapUI is an awesome tool.  The GUI works great.  But I'm not very good with Java and I'm having trouble executing test cases from the command line.

I do:

$> testrunner.sh -e <hostname> -r <name-project.xml> -c "Testcase"

After a long wait, I get:

================================
=
= SOAPUI_HOME = /home/todd/downloads/soapui-3.0.1
=
================================
soapUI 3.0.1 TestCase Runner
Configuring log4j from [/home/todd/eviware/soapUI-3.0.1/bin/soapui-log4j.xml]
Exception in thread "main" java.lang.NoClassDefFoundError: com.eviware.soapui.SoapUI
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at com.eviware.soapui.support.log.SoapUIAppender.append(SoapUIAppender.java:34)
   at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
   at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
   at org.apache.log4j.Category.callAppenders(Category.java:203)
   at org.apache.log4j.Category.forcedLog(Category.java:388)
   at org.apache.log4j.Category.error(Category.java:302)
   at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:80)
   at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:104)

Like I said, the GUI works fine.  How do I fix this?

TIA,

Todd

radhakrishna@th... replied on Sun, 2009/10/18 - 6:36am

Dear, I need to propose functional testing, test automation, security testing and performance testing approaches and effective tools to one of my clients, for the same I am preparing Questionnaire to get the current set-up data.. I want to know what are the good questions to access his current web services development environment ? you can reach me on radhakrishna@thatavarti.com

sunrise1 replied on Mon, 2009/10/26 - 3:28am

I need to propose functional testing, test automation, nike shoes russia security testing and performance testing approaches and effective tools to one of my clients, for the same I am preparing Questionnaire to get the current set-up data..

Sandeep Koli replied on Fri, 2009/11/20 - 7:21am

Hi, I had imported SoapUI Plugin in two eclipse Within existing project i am implementing the SoapUI for webservice testing Can U help me for same. Thanks, Sandeep koli

Sandeep Koli replied on Fri, 2009/11/20 - 7:24am

Hi, I had imported SoapUI Plugin into the Existing J2EE project, With the existing project wsdl. I had generated the Mock services but I am able to set only static response. Can u help me to do it dynamically Thanks, Sandeep Koli

ravidasu replied on Wed, 2009/11/25 - 7:30am

I want to create Custom Log files when i execute the Test Suite execution. That custome log files should contains TestSuite Name-- Test Start Time, Test Case Name--- Start Time, Test Step Name--Start Time, Test Step Execution End Time, Test Case End Time, Test Suite End time. How can i implement the custom logs by using groovy scripts? Please any body help me out this

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.