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
wa...@us.ibm.com

IBM



From: Riji K <kriji...@gmail.com>
Date: Wednesday, June 29, 2022 at 6:36 AM
To: JMeter Users List <user@jmeter.apache.org>
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

Reply via email to