How to use data structures to pass Input and Verification in JSON format file in the Rest Assured framework. In the below file I am passing the Username and password as the input as the payload and verifying different User types from the JSON response.
Basically I want to avoid passing the data from Cucumber Example keyword and excel files. I want the data to be passed from JSON format file. Need inputs on how to get this done
{
Login_Pass_1:
{
Input:
Username:paulproux
password: xyz123
Verification:
Usertype: admin
}
Login_Pass_2:
{
Input:
Username:johnrossu
password: abc456
Verification:
Usertype: reviewer
}
Login_Pass_3:
{
Input: Username:johnrossu
password: sdf234
Verification:
Usertype: moderator
}
}