Feature: Api test for Login user and get token
Scenario Outline: Auth login get token Given A login When I send the POST request to /auth/login Then I get response statusCode 200 Then I get response token as string When I send the current user GET request to /auth/me Then I get the current user response statusCode 200 Then I get response of current user Given A refresh When I send the refresh auth session POST request to /auth/refresh Then I get the refresh auth session response statusCode 200 Then I get response of refresh auth session data with token
Examples:
| request | refreshRequest |
| {"username": "kminchelle","password": "0lelplR"} | {"expiresInMins": 30 } |
I want read request data from a json file like Examples: | read("data/data.json") |
Is there any proper way to load the data