Can we validate response values from a different file?

We would like to perform different checks for all requests done on test23.js file when calling it through runTestThree();.

Is it possible to return request variable from test23.js, so caller.js can work with it?

File: caller.js
image

File: test23.js

I just solved it :slight_smile:

File: test23.js

File: caller.js
image

Command: K6_GROUPS=‘post|get|group’ k6 run caller.js

1 Like