Variables
Use of variables and predefined variable sets
{
"host": "www.uat.autokinjs.com",
"username": "autokin"
}Feature: My Feature
As Autokin tester
I want to verify that all API are working as they should
Scenario: Login to the system
Given that a secure endpoint is up at {host}
Given I set Content-Type header to application/json
Given I set the JSON body to
"""
{
"username": "{username}",
"password": "p3dr0"
}
"""
When I POST /login
Then response status code should be 200
Then I keep the value of body path "$.sessionId" as "userSessionToken"Last updated
Was this helpful?