My question:
I am wanting this code to not show in the test results part, as I don’t want the failed test to be flagged in the results? All I can find is a skip test function? Is there no test function which wont display the test results? Or is there a better way to write this code - thanks/
Comparing floats in postman is annoying…
*CODE *:
pm.test(“Verify any of the following strings”, function () {
let expectedStrings = [“4.60”, “4.80”, “4.70”, “4.90”, “4.10”, “4.11”, “4.12”, “4.13”, “5.20”,“5.30”,“5.40”,“5.50”,“5.60”,“5.70”,“5.80”, “5.90”];const hasAnyExpectedString = expectedStrings.some((s) => version2.includes(s));
pm.expect(hasAnyExpectedString).to.be.true;
postman.setNextRequest(“stoptest1”)
});
i don’t want this test to fail when the expected string is for example ‘5.10’