Link to home
Start Free TrialLog in
Avatar of ss3k
ss3k

asked on

REST API automation using REST ASSURED

Hi,

I am working on the REST API test framework automation.  I looked into REST ASSURED and it looks good in the REST API test automation. REST ASSURED is simple and it is in Java

My requirement is
1) automate the REST API (instead of manual testing).
2) for each rest api test case, test the negative scenario as well. for example, in a POST rest call of a student... if the main parameters are Grade(A,B,C) and Mark(1 to 100).  the following are some of the negative test cases.
test case 1:  Grade:Z, Mark:120
test case 2:  Grade:D, Mark:-1
test case 3:  Grade:A, Mark:145
test case 4:  Grade:4, Mark:40
test case 5:  Grade:#, Mark:99
There can be several possible negative test case combinations (like mentioned above). I am planning to write a Java framework to generate the possible set of negative inputs and feed to the REST assured (using Junit parameterized testing)
3) Need to generate the report to analyze the outputs

Please suggest
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.