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β