0
votes

I am adding multiple "Invalid HTTP Status code" assertion as shown below

enter image description here

Expected Behaviour:- Test Step should fail if HTTP 503 code is returned.
Actual Behaviour:- Test step is getting passed.

If assertion added as

503;400

Test step is getting failed and is working as expected.

I am not sure why it is taking only the first HTTP code though the format for multiple HTTP code looks correct.

Anything i am missing here?

1

1 Answers

0
votes

As shown in the example in official documentation the list of invalid HTTP Status code is separated by ;:

enter image description here

However using ;, its doesn't work.

I make some tries and I can make it work using , instead.

So try with: 400, 503 as list for invalid HTTP Status code.

Hope it helps,