API Intergration with Selenium webdriver and Java

36 views
Skip to first unread message

monikay

unread,
May 31, 2016, 1:03:05 AM5/31/16
to Selenium Users
Hi,

I am new to API integration with webdriver. could you please post some links with the beginners tutorial for integration of API with web driver.

--
Thanks
Monika

⇜Krishnan Mahadevan⇝

unread,
May 31, 2016, 1:40:00 AM5/31/16
to Selenium Users
Monika,

Selenium doesn't have anything to do with invoking APIs. Its a library/toolset that can be used to interact with a website through a web browser.
Depending on the client binding flavor [ Java/DOT NET/Python/NodeJS ] you are better off searching for API invocation in that specific client binding.

For e.g., if I were to be doing this using Java, I could start looking at Apache's HttpClient.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/ef0bff0c-5501-4086-9ac5-e510b42209a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Monika

unread,
May 31, 2016, 1:55:25 AM5/31/16
to Selenium Users
Krishnan,

In my application:
1)  I have to hit API(may be need to add payload) > read the response and store the desired data from response > And use it as test data in automation script.

I have some knowledge about HTTP client, As far as my knowledge , Using HTTP  client I need to create all the methods for GET, POST, PUT .... IT will be better if i use Rest Assured, Jersey client for the same.

If you have worked on above please share some tutorial.

Thanks
Monika

⇜Krishnan Mahadevan⇝

unread,
May 31, 2016, 2:00:54 AM5/31/16
to Selenium Users
Looks like you are all set for API automation :)
Have you tried the respective repositories ?

A quick google landed me here : https://github.com/rest-assured/rest-assured

This forum is specifically intended for questions on Selenium/WebDriver.

So I would request you to please help keep the intent of this forum relevant.


Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Reply all
Reply to author
Forward
0 new messages