Tuesday, September 8, 2015

Notes


SOAP UI
- http://www.soapui.org/downloads/soapui/open-source.html
- Parasoft
- For tutorials:

http://www.soapui.org/getting-started/10-tips-for-the-soapui-beginner.html?utm_source=soapui&utm_medium=starterpage&utm_version=1.1



  • Scripting supported by SOAP UI(Free ware) are Java Script and Groovy Script
  • SOAP UI does Web service testing
  • SOAP UI Pro is the upgraded version(not free): The difference is in free version you have to write Javascript or Groovy script in order to obtain the Pro features.
  • SOAP UI has Easy to use Graphical Interface. Other tools that are in market - Lisa, HP service testing etc does not have great graphical user interface.
  • SOAP UI also does SOA testing

SOA: Is a computer systems architectural style for creating and using business processes, packaged as services, through their life cycle.
  • SOA - Service Oriented Architecture. SOA is not technology but an architectural approach. Webservices is one of the means of achieving SOA.
  • Web Service Testing and API testing are one and the same
  • SOA has 3 components - Service Provider( Creating API), Service Registry( WSDL are available in Service Registry or WSDL's are published to Service Registry. The registry gives the description of web service, what it is capable of doing. How you can access Web Services) and Service Customer(Customer will look for Paid or non Paid services. He will need to login and look for his services. Request->Invoke(using the WSDLfile or WADL)->
WADL - is Web application description language. This is for other type of service REST based architectural web services. First type of web service is SOAP UI. Service Registry has url of REST based web service

Service Registry(Ex: UDDI) - Is the only place where you get what are the different types of Web  services available and how you can access them. Who maintains Service Registry - Apps dev team maintains it. UDDI is Real time Service Registry. There are also Public Service Registries that could be accessed by anybody.

  • SOA marks as end of Monolithic applications and marks the beginning of more flexible and adaptable business process centric applications.

  • Service could be of any type - Web Service, Database management service....
  • While exposing to the customer, Web Services are not exposed but functionalities are being exposed. Once companies have designed there applications they will try to expose it as web services
  • API testing and Web service testing is one and the same, API's are being exposed as web services that's it.
  • Developer creates an API - Application Programmer interface and try to expose it with the help of web services to the customer. If the web service is SOX(SOAP based web service) then Developer exposes the API  using WSDL(Web Service Description Language)
  • Service customer raises a request using WSDL or WADL(that could be found in Service Registry) for a web service and Service Provider will provide the response, so Service Registry has nothing to do here.
Example of Web Services:
- Candy crush with Facebook updates- Means customers of Candy Crush could play and update there scores in there Facebook account. Here Facebook has Rest based web services, that helps Candy crush to access Facebook anywhere and update its score.
- Travel website is also one kind of web service as customer enters his flight details and click search button, the website will list down flight details from various websites, that mean same search query is used to retrieve data from various websites in parallel.


Below diagram explains you how the execution happen in Web Services. 
Note: All the white circles are "SOAP"




SOAP UI Panels:




- 5.2 version is the latest version for SOAP UI tool

-  Download SOAP UI:

http://www.soapui.org/downloads/soapui/open-source.html


- SOAP UI is supported in Mac too.

- Parasoft Soatest -- is a Service Registry that has list of Web Services. Where you could find the urls of Web Services. When you are working on SOAP UI tool, to test that fucnationlity of web service you need to know the WSDL of that webservice(like Googleserach engine or Calculator...). Once you get the WSDL(could get it from Parasoft site mentioned below), provide that url in the SOAP UI to proceed further.

website: http://soatest.parasoft.com/services/

Protocols:

- What Protocols does Webservices use?

SOAP based services relied on SOAP protocol

REST(Representational State Transfer)  relies on stateless, client server, catchable communication protocol.REST is architectural style for designing web services.

In all cases HTTP protocol is used.