How use the data from csv or excel file for the data assertion values in Test Tab?

Your question may already have an answer on the community forum. Please search for related topics, and then read through the guidelines before creating a new topic.

Here’s an outline with best practices for making your inquiry.

My question:
Is this way is correct for use the data from csv or excel file for the data assertion values in Test Tab?

Details (like screenshots):

How I found the problem:
i try to do it

I’ve already tried: I tried this . But get an error: ReferenceError: duration is not defined

If you’re referencing a column heading in the datafile, the value in the .get() should be a string.

pm.iterationData.get('duration');

In your case your referencing a local variable, which isn’t defined.

Thanks @danny-dainton . I try it and its run perfectly