API using Selenium Webdriver

335 views
Skip to first unread message

Kunal Khandelwal

unread,
Mar 25, 2017, 8:31:12 PM3/25/17
to webdriver
Hello,

i am Kunal, i want to know that how i test the API using selenium webdriver, there is a way of testing the API or way to automate the API using Selenium.
Please help me


Thanks,
Kunal Khandelwal

darrell grainger

unread,
Mar 26, 2017, 1:06:15 PM3/26/17
to webdriver
Short answer, no.

Selenium is a tool which allows you to automate web browser testing. If you have a test which can be done manually with a web browser then you should be able to automate that test using Selenium. You would not automate API testing using a web browser, so you would not automate API testing using Selenium.

Just search, using Google/Bing/etc., for "api testing tools" and you will find many tools for automating API testing.

Kunal Khandelwal

unread,
Mar 28, 2017, 4:17:17 AM3/28/17
to webdriver
Can you please tell me from which tool i can test API using Automation?

Thanks,
Kunal

Konstantine Firsanov

unread,
Mar 28, 2017, 4:17:17 AM3/28/17
to webdriver
One of the solutions is Apache JMeter. It's known as a performance testing tool, but it can be successfully used for the API testing too. Moreover, if you have Selenium test suites for the UI automation, you will be able to integrate all tests with Taurus and Jenkins. This article - how to automate Selenium and JMeter testing - describes this solution. And it doesn't matter if JMeter tests are for the API or for the load testing.

rajendraprasad reddy

unread,
Mar 28, 2017, 1:55:36 PM3/28/17
to webdriver
Hi Kunal,

Jmeter is bit difficult to use for API Testing.

You can use SOAPUI Tool for API Automation.
SOAPUI has both free as well as Commercial Professional versions (Pro).

You said API , what type of API SOAP or REST API?
If it is SOAP API and if you have WSDL file it is quite easy with SOAPUI Tool.

If it is REST API , and if you have Swagger API Definition file then REST Automation also Cake walk.

To use SOAPUI Open Source Free version , You must be good at groovy scripting( or Core java bcoz Groovy Script editors allows you to type Java Syntax).

If you have to automate too many API then i suggest you to Buy ReadyAPI (Latest SOAPUI Pro version) license from smart bear.
Single seat license may cost you 500-600 USD.

I have very good experience in API and Web Service testing , i am happy to Guide you.

-Rajendra



 



On Sunday, March 26, 2017 at 10:36:15 PM UTC+5:30, darrell grainger wrote:

sandee...@highq.com

unread,
Apr 12, 2017, 2:20:26 AM4/12/17
to webdriver
Hi Kunal,

Even you can create simple java call also to test the API.

I have done simple java call to test API call in my automation project.

Thank you.
Reply all
Reply to author
Forward
0 new messages