5.2 检查状态码

result.getStatusCode()返回http状态码,如200 401 500等

例如:当HTTP返回值result中状态码不是200或300时,标记为失败

if result.getStatusCode() in (200,300) :

   grinder.statistics.forLastTest.success = 1

results matching ""

    No results matching ""