In my project I have some API (Web Services). Currently, I am testing the web services manually and using POSTMAN to automate tests.
Does Selenium support automate the Web services with JSON or XML?
Please share your feedback.
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
As others have already said, you'd probably want to pick a different tool to handle most service level testing.
But to answer your question, for a hackathon in a previous job I wound up extending the node implementation of selenium-webdriver to send and process http requests from the browser using
driver.executeScript() calls. I would not recommend this route unless you have a very specific need in mind.
Selenium itself is only a driver for a web browser. As it's written on a homepage:
Selenium is a suite of tools to automate web browsers across many platforms.
If you already have an automation testing framework built around Selenium, consider creating a separate project within your framework related to API testing. For a toolset, I would recommend RestAssured for Java or it's .NET port - RestSharp.
If you're interested in building a long-term API automation, I would not recommend to build it around some tool, since it will increase maintenance overhead and limit you in actions, at some point.
Selenium Does not support API Testing. SOAP UI is the best tool for Automating the API's. However, if you want and if you are comfortable with JAVA for API Automation you can use Cucumber -- for test cases and data required for API's Rest Assured -- For sending Request and saving the Response Java -- For Parsing the XML and writing code
I use Rest Assured for API testing. Since you are already using Postman, I recommend that you also look into Newman to integrate your Postman tests into a continuous integration solution.