I am currently testing an API which has CREATE project feature.
I have hard coded my json request body and passing values of each fields as variable.
EX:
{
"ProjectId": <var1>,
"Address": <var2>,
"City": <var3>,
"County": "Ventura",
"State": "Ventura",
"Zip": "560043",
"SquareFeet": <blank>
}
Now it is fine if all attributes are same everytime I run, but what if there are more attributes to pass, and it might differ depending on my test scenarios.
I am looking for a solution to pass this attributes dynamically based on external file like excel or json and run accordingly.
Also I would like to know what is the standard approach being followed in such scenarios, How are the payload passed?