Is it possible to skip (or repeat once again) the iteration through the collection using JSON data file in the Collection Runner like:
if(pm.environment.get("skip").to.eql("yes"){
\\pm.iterationData.GOTOITERATION(2) <--PSEUDOCODE
}
I was thinking that if I would be able to access the whole datafile (array of objects), it will be possible to write such thing:
var currentIterationData;
function ChangeCurrentIteration(iterationNumber)
{ currentIterationData =
data[iterationNumber] // here I want to access element of data's array
}
But don't I go in wrong direction? does my question have sence? thank you.