Yes, you can use the one of the post processors and do something like this:
if(((responseData_str).contains(expectedResponseData)) &&
(ResponseCode.equals(responseCode_str))){
status = "Passed";
prev.setSuccessful(true);
}
else {
prev.setSuccessful(false);
status = "Failed";
}
Regards,
Lisa JM Waugh
Test Engineer
CIO Software & Development Experience
1 704 907 7008 Mobile
1 720 342 5373 Office
[email protected]
IBM
From: Riji K <[email protected]>
Date: Wednesday, June 29, 2022 at 6:36 AM
To: JMeter Users List <[email protected]>
Subject: [EXTERNAL] Can we tweak the failed transactions as "Sucess"
Hi,
I was asked by an interviewer that "How do you change the status codes to
200 for failed transactions?" (Note: Had answered we can open the log file
and change the status code).
is there a way to do that??
Thanks in Advance
Regards,
Riji K