Demo project for API Testing Shared

880 views
Skip to first unread message

80Vikram

unread,
Dec 28, 2015, 11:49:09 AM12/28/15
to Serenity BDD Users Group
Dear All,

I tried using serenity framework for RESTful api testing but couldn't find few basic answers.

For time being , I have automated some scenarios with REST-assured ( which is internally used by serenity )

https://github.com/vikramvi/RESTful-api-automation



One query , what benefits of using serenity framework over REST-assured for API testing ?

I read through past posts and there are quite a few who are already using serenity for API testing.

Kindly give your valuable feedback.

Thanks in advance.

Regards,
Vikram

John Smart

unread,
Dec 28, 2015, 11:51:40 AM12/28/15
to 80Vikram, Serenity BDD Users Group
The Serenity REST integration is simply a light wrapper around REST-assured that provides reporting capabilities. People often use Serenity for API testing for the reporting, and when acceptance tests can or need to be implemented against a REST API. 

--
You received this message because you are subscribed to the Google Groups "Serenity BDD Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
___________________________________________________
John Smart | Wakaleo Consulting  |  +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com  |  john....@wakaleo.com
___________________________________________________

We love breaking down silos and helping smart teams collaborate better! Ask about our tailored on-site workshops in Agile Requirements Discovery, Behaviour Driven Development, Agile Development Practices, and Test Automation!
___________________________________________________

80Vikram

unread,
Dec 28, 2015, 1:49:11 PM12/28/15
to Serenity BDD Users Group, vikra...@gmail.com
Hi John,

Thanks for detailed info.

I will try to automate test cases with serenity framework as well in this project itself.

Regards,
Vikram

Mircea Cocosila

unread,
Jan 11, 2016, 1:12:57 PM1/11/16
to Serenity BDD Users Group, vikra...@gmail.com
Hi Vikram,


The sample above was enough for to start writing Rest-Assured tests in Serenity.

I have also wrote Rest-Assured tests in a data-driven way where test scenarios were amenable for that kind of test organization (mostly when I was testing for error cases - for my app, it was for the 400 status code, mainly). Check the relevant section in the Serenity doc. 
Note: I generated the Serenity doc from project: https://github.com/serenity-bdd/serenity-documentation. Once doc is generated, you could access it at serenity-documentation/build/asciidoc/index.html#_data_driven_tests.

Best,
mircea

80Vikram

unread,
Jan 14, 2016, 9:17:15 AM1/14/16
to Serenity BDD Users Group, vikra...@gmail.com
Hi Mircea,

Thanks for detailed info , I had looked at this example before jumping to REST-assured.

As I didn't get V2 auth working with serenity , I had to directly use REST-assured.

It'll be helpful if you have share a small project say with twitter / spotify etc , explaining basic scenarios testing with "serenity"


Thanks in advance.

Regards,
Vikram

Reply all
Reply to author
Forward
0 new messages