var arr = [âValue1â,âValue2â,âValue3â,âValue4â];
var x;
for(x of arr){
console.log(x);
pm.expect(pm.response.text()).to.include(x);
}
});
I tried above code but not working getting âThere was an error in evaluating the test script: SyntaxError: Unexpected token }â Error.
Do you have any idea about how to read values from json file and store into json object as expected output so that i can assert this output with actual object.
Since i canât put more than 1000 values in my test script , i have to put those values into a file and then read as json and assert against my response.
like here my json values are less so i mentioned in there itself what if they are more than 1000 (which is in my case) how to deal with this scenario.