Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
236 views
by Contributing Tester (78 points)
retagged by
I have to test the login API using groovy language in SoapUI. I have to validate the login API process. Could you tell me some sample validation for status code and token?

1 Answer

1 like 0 dislike
by
Bala

When you run a Login API, the Session ID will be generated in the response, you hold the Session ID from response into your local variable and you can validate like Not Null, Contains, Exist & Regular Expression kind of the assertion, if there is any Biz Requirement specifically mentioned for this you can go with that.

Also you can validate the Response Header Status is 200 OK or not, this ensures max coverage.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...