How to automate the Web Services with Selenium Wbdriver(SoapUI tool) using Java
I am planing to automate SoapUI tool for web services testing with Selenium webdriver Or SoapUI java API.
Can Anyone please help on this.
You probably won't need Selenium for web services testing. Most web services protocol whether it's SOAP, REST, or Service Bus, etc... are designed to be very machine friendly. You won't need a browser, thus won't need selenium.
Originally Posted by syamp
I'd probably would just use a combination lower level library than SoapUI. Like an Http Client/Json Parser for REST, or Http Client/XML Parser for soap. It might be annoying handling the authentication at first, but it'll rid you of that heavy weight dependency, and your tests will run much faster.
I agree with David on not using Selenium if all you want to do is test a web service. Just write a simple tool that does what you want to do. An example in Java can be found on my blog (warning: shameless self-promotion, please remove if this is unwanted):
On Test Automation | A very basic web service test tool
This example does not go into detail on authentication or XSD validation, but it's a start.
If you'd want to include the web service tests into a larger scenario including UI tests, then you could just as easily integrate the example above into a Selenium Webdriver scenario and get the best of both worlds.