RestAssured vs HttpClient

2,907 views
Skip to first unread message

Shreejit Nair

unread,
Nov 21, 2017, 11:07:45 AM11/21/17
to REST assured
Hi folks,

I was looking for some feedback on choosing Apache Http Client vs Rest Assured?
Does RestAssured provide all functionality that Apache Http client does?

Shreejit

Todd Bradley

unread,
Nov 21, 2017, 11:20:56 AM11/21/17
to rest-a...@googlegroups.com
RestAssured is built on top of Apache HTTP Client. They were designed to solve very different problems. If you need to write some kind of general purpose HTTP client application, using Apache directly might be better. But if you need to test a web service, using REST-assured will almost certainly be better.


Todd.

--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shreejit Nair

unread,
Nov 21, 2017, 11:58:28 AM11/21/17
to REST assured
Thanks Todd,

My only intention is to do comprehensive functional REST services testing.


On Tuesday, November 21, 2017 at 11:20:56 AM UTC-5, Todd Bradley wrote:
RestAssured is built on top of Apache HTTP Client. They were designed to solve very different problems. If you need to write some kind of general purpose HTTP client application, using Apache directly might be better. But if you need to test a web service, using REST-assured will almost certainly be better.


Todd.
On Tue, Nov 21, 2017 at 8:51 AM, Shreejit Nair <shreeji...@gmail.com> wrote:
Hi folks,

I was looking for some feedback on choosing Apache Http Client vs Rest Assured?
Does RestAssured provide all functionality that Apache Http client does?

Shreejit

--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.

Todd Bradley

unread,
Nov 21, 2017, 12:19:35 PM11/21/17
to rest-a...@googlegroups.com
You will probably be happier writing your tests to the REST-assured layer. I've been very happy with the toolkit.

To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.

Shreejit Nair

unread,
Nov 21, 2017, 12:34:29 PM11/21/17
to REST assured
Great Todd,

I am already using RestAssured to run basic assertions on some public API's and stuff and it worked great.
I ran into SSL issues when running for our internal API's but was able to work around with them as well.
The negative feedback has come from the dev team who are like against using RestAssured (hamcrest features are not good, mixing data models to validate output is not well supported) and would want to stick with HttpClient.
Hence, for me I wanted to ensure that RestAssured has all the functionality that HttpClient exposes.

I am going to have a detailed session with them to understand where RestAssured has failed them in the past and come back and check if the said functionality is now supported in RestAssured.
Reply all
Reply to author
Forward
0 new messages