Robot framework and REST assured for REST testing

1,023 views
Skip to first unread message

milmoe

unread,
May 9, 2014, 12:26:27 PM5/9/14
to robotframe...@googlegroups.com
Hi All,

In our project we already have REST testing done using REST assured framework. I am trying to understand if there is any way I can easily integrate the existing test cases using Rest Assured in robot?

Also If I want to test REST web services using RF, what options do I have?

I found few options for python

HTTP library : -  http://peritus.github.io/robotframework-httplibrary/HttpLibrary.html (39 keywords)

RequestsLibrary :- http://bulkan.github.io/robotframework-requests/ (8 keywords)

Can someone guide on which one is best? I want to test both JSON as well as XML output.

Similarly do we have anything available in java?

Thanks

Milind


David

unread,
May 9, 2014, 9:54:12 PM5/9/14
to robotframe...@googlegroups.com
I think all (or most) of the REST/HTTP libraries are in Python so far, but it shouldn't be too hard to create a Java version if someone puts the time into it.

As for REST Assured, if I'm not mistaken, that is like a Java library that you can import to use to do REST testing within Java code, so omitting the testability aspects of assertions within that tool/library, etc. you can wrap the (generic) library functionality into a RF compatible Java (wrapper) library that you can then use with RF over Jython or the Java remote (library) server. Though that would mean you may not easily reuse existing tests as is, it would be no different than using the other RF REST/HTTP libraries, with an exception that you can reuse your existing test code a bit if you customize the wrapper library to be specific to your REST APIs that you're testing (which would call parts of your existing test code adapted for RF for resuability).
Reply all
Reply to author
Forward
0 new messages