Why am I getting :Error : “HTTP request Response Assertion:Test failed:text expected to contain /302/”

前端 未结 2 644
心在旅途
心在旅途 2021-01-25 08:14

08 nov 608 nov 508 nov 408 nov 308 nov 1 08 nov 2

Why am I getting :

HTTP request Response Assertion:Test failed:text expected to contain /302/\"

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-25 08:36

    It's because you didn't check in your assertion the correct "Field to Test", you need to check Response Code not Text Response:

    Also your assertion is failing because you don’t get a 302(redirect) but a 200 (success) . So unless you really only want 302, just remove this assertion as bu default JMeter will mark Sample as failed if response code is strictly higher than 399

提交回复
热议问题