Guys,
I might be missing something silly here. Can anyone help me here please? Collection link is https://www.getpostman.com/collections/a82ed90c5373e9f09125
One test case is failing,
I am storing the links as strings.
pm.collectionVariables.set("links", JSON.stringify(links))
When I test under google request, it’s passing:
pm.test("Links variable is an array", function () {
pm.expect(JSON.parse(pm.collectionVariables.get("links"))).to.be.an("array");
});
Of course I can edit the tests under “submit” request to make it pass. Please any explain me what I am doing wrong.