2021년 3월 11일 목요일

[jmeter]response log

400 일경우 성공하게


 if (prev.getResponseCode().equals('400')) {

    prev.setSuccessful(true)

}


http 응답에대한 로그

log.info("Responsestamp = " + prev.getTimeStamp());

log.info("Response = " + prev.getResponseCode());

log.info("Responseage = " + prev.getResponseMessage());

log.info("Responseers =  " + prev.getResponseHeaders());

log.info("Responseng = " + prev.getResponseDataAsString());


참고글

https://lobsterautomation.wordpress.com/tag/beanshell/

댓글 없음:

댓글 쓰기