Replies

  • I am using soapUI Pro 4.5 for testing RESTful web services. soapUI Pro gives you more flexibility as compared to soapUI which has lot of limitations.

    soapUI Pro is a paid tool but not too costly and can be easy affordable.

    The most important benefit that you will get is that you can do data driven testing where you can use excel, csv for your data. Also apart from this, soapUI pro has in built set of assertions which are simply a click away, you can also create groovy script to validate the xml sets that u get in response, then transfer the response in csv files.

    I am doing this all with my Pro version for the mobile app project am working currently on.

    Thanks,

    -Swapna

  • HI Malay,

    Great explanation Yaarr....

    After going through this tutorial, I think no one would have any query for web services testing.....

    Keep posting such useful and interesting content over MQZ.... Thanks a ton


    Rakesh Hansalia said:

    Good Explanation for Web servise, thanks Vaibhavraj...

    Vaibhavraj Jadhav said:

    Hi Karishma,

    We can not test the web services manually. We have to use tools either developed by the Web Services Dev Team or market leading tools like soapUI.

    What exactly web services does - Web services comes in to the picture where we have web application specially on 3 tier or n-tier architecture. Web services are the methods which will update/retrieve the data in your systems. So the testing will be kind of typical request and response verficiation. You will prepare or recieve the WSDL files with the tags defined in your service will send this data to the web service (typically called as End Point URL) and verify the response recieved by the server. e.g. if its updating some data in your application , you will get the message as Data updated successfully. Depening upon what your web service does.

    soapUI is good tool to do this as along with functional testing of your web service, you can perform non-functional testing too. As well as automation is possible in soapUI (parameterization).

    Unfortnately i dont have any sample test cases,infact it depend upon your what your service is doing.

     

    Thanks,

    Vaibhav

  • Thanks to all :), Great discussion

    Malay Parikh said:

    Hi,

  • Enter the web service in the web browser and check the manually data,which are coming from the server like you got this type of service:-

    <Customers> 
    <Customer ID="1">
    <Name>Bob</Name> <Orders>
    <Order ID="1" Qty="6">Chair</Order> <Order ID="2" Qty="1">Table</Order> </Orders>
    <Returns> <Return ID="1" Qty="2">Chair</Return> </Returns>
    </Customer> </Customers>


    it means you got a this type of data in your web sevice

    Order Qty ID Name Customer.ID
    Chair 6 1 Bob 1
    Table 1 2 Bob 1

    Thanks,
    Ankit Jain


  • thanks malay for sharing...

    mca.malay said:

    Hi,

    This tutorial will show you how to test web services using soapUI. With soapUI, you can check your web services project is running (consumable) or not. SoapUI provides a robust set of capabilities to test web services not only during development, but also to test the validity of deployments.

    First of all, all you need is :

    1. soapUI, get soapUI here.

    2. Web services you want to test, it can be WSDL or full application of web services. Relax, you can get web services example at http://www.soatutorial.net/sources/test_web_services_using_soapui.rar. If you want to know the step-by-step of how to create web services, you can visit Web Services Tutorial.

    Please follow these steps to test your web services with soapUI :

    1. Install soapUI to your computer,

    2. Patch the sample web services that you have downloaded to your web server root directory (e.g. public_html), make sure you can access your web services via browser, for example, accessing URL http://localhost:8083/testwebservices/server.php, see figure 1.

    Browse Web Services

    Figure 1: Browse Web Services

    3. Open soapUI, see figure 2.

    soapUI Window

    Figure 2: soapUI Window

    4. Open new soapUI project,

    Figure 3: soapUI Open New Project

    Figure 3: soapUI Open New Project

    5. Fill Project Name with “Test Web Services Using soapUI” and Initial WADL/WSDL with your WSDL link (e.g. http://localhost:8083/testwebservices/server.php?wsdl), see figure 4,

    Figure 4: soapUI New Project

    Figure 4: soapUI New Project

    6. Make a new request service by double click at “addServices“,

    Figure 5: soapUI Request

    Figure 5: soapUI Request

    7. Fill “id” value and “name” value to <id> and <text> element,

    Figure 6: soapUI New Request

    Figure 6: soapUI New Request

    8. Click “Start” button,

    Figure 7: soapUI Start

    Figure 7: soapUI Start

    9. And finally you can see whether the web services is “consumable” or not,

    Figure 8: soapUI Request Success

    Figure 8: soapUI Request Success

    10. And of course, if the testing is successful, you can invoke the service via PHP application. In the http://www.soatutorial.net/sources/test_web_services_using_soapui.rar file it’s already there (client.php), you can access at http://localhost:8083/testwebservices/client.php and the result should be like this :

    Figure 9: soapUI Request Using PHP Application

    Figure 9: soapUI Request Using PHP Application

    For conclusion, it’s a piece of cake to test your web services project, it’s very useful if you want to make sure that the web services you have build is consumable for web services requestor / client. I hope this simple tutorial is useful for you, thanks.

  • Good Explanation for Web servise, thanks Vaibhavraj...

    Vaibhavraj Jadhav said:

    Hi Karishma,

    We can not test the web services manually. We have to use tools either developed by the Web Services Dev Team or market leading tools like soapUI.

    What exactly web services does - Web services comes in to the picture where we have web application specially on 3 tier or n-tier architecture. Web services are the methods which will update/retrieve the data in your systems. So the testing will be kind of typical request and response verficiation. You will prepare or recieve the WSDL files with the tags defined in your service will send this data to the web service (typically called as End Point URL) and verify the response recieved by the server. e.g. if its updating some data in your application , you will get the message as Data updated successfully. Depening upon what your web service does.

    soapUI is good tool to do this as along with functional testing of your web service, you can perform non-functional testing too. As well as automation is possible in soapUI (parameterization).

    Unfortnately i dont have any sample test cases,infact it depend upon your what your service is doing.

     

    Thanks,

    Vaibhav

  • Hi,

    This tutorial will show you how to test web services using soapUI. With soapUI, you can check your web services project is running (consumable) or not. SoapUI provides a robust set of capabilities to test web services not only during development, but also to test the validity of deployments.

    First of all, all you need is :

    1. soapUI, get soapUI here.

    2. Web services you want to test, it can be WSDL or full application of web services. Relax, you can get web services example at http://www.soatutorial.net/sources/test_web_services_using_soapui.rar. If you want to know the step-by-step of how to create web services, you can visit Web Services Tutorial.

    Please follow these steps to test your web services with soapUI :

    1. Install soapUI to your computer,

    2. Patch the sample web services that you have downloaded to your web server root directory (e.g. public_html), make sure you can access your web services via browser, for example, accessing URL http://localhost:8083/testwebservices/server.php, see figure 1.

    Browse Web Services

    Figure 1: Browse Web Services

    3. Open soapUI, see figure 2.

    soapUI Window

    Figure 2: soapUI Window

    4. Open new soapUI project,

    Figure 3: soapUI Open New Project

    Figure 3: soapUI Open New Project

    5. Fill Project Name with “Test Web Services Using soapUI” and Initial WADL/WSDL with your WSDL link (e.g. http://localhost:8083/testwebservices/server.php?wsdl), see figure 4,

    Figure 4: soapUI New Project

    Figure 4: soapUI New Project

    6. Make a new request service by double click at “addServices“,

    Figure 5: soapUI Request

    Figure 5: soapUI Request

    7. Fill “id” value and “name” value to <id> and <text> element,

    Figure 6: soapUI New Request

    Figure 6: soapUI New Request

    8. Click “Start” button,

    Figure 7: soapUI Start

    Figure 7: soapUI Start

    9. And finally you can see whether the web services is “consumable” or not,

    Figure 8: soapUI Request Success

    Figure 8: soapUI Request Success

    10. And of course, if the testing is successful, you can invoke the service via PHP application. In the http://www.soatutorial.net/sources/test_web_services_using_soapui.rar file it’s already there (client.php), you can access at http://localhost:8083/testwebservices/client.php and the result should be like this :

    Figure 9: soapUI Request Using PHP Application

    Figure 9: soapUI Request Using PHP Application

    For conclusion, it’s a piece of cake to test your web services project, it’s very useful if you want to make sure that the web services you have build is consumable for web services requestor / client. I hope this simple tutorial is useful for you, thanks.

  • Hi Karishma,

    We can not test the web services manually. We have to use tools either developed by the Web Services Dev Team or market leading tools like soapUI.

    What exactly web services does - Web services comes in to the picture where we have web application specially on 3 tier or n-tier architecture. Web services are the methods which will update/retrieve the data in your systems. So the testing will be kind of typical request and response verficiation. You will prepare or recieve the WSDL files with the tags defined in your service will send this data to the web service (typically called as End Point URL) and verify the response recieved by the server. e.g. if its updating some data in your application , you will get the message as Data updated successfully. Depening upon what your web service does.

    soapUI is good tool to do this as along with functional testing of your web service, you can perform non-functional testing too. As well as automation is possible in soapUI (parameterization).

    Unfortnately i dont have any sample test cases,infact it depend upon your what your service is doing.

     

    Thanks,

    Vaibhav

This reply was deleted.
    results->result as $result) { ?>
  1. jobtitle;?>
    company;?>(formattedRelativeTime;?>)city;?>, state;?>
    Welcome to Mobile QA Zone, a Next Generation Software Testing Community.Invite your friends to join this community.Write to us to become a featured member.