Is it possible to get the Jmeter object(ex: Xpath assertion) and disable it.
What I’m trying to achieve is when I update something, if the update request fails I want to disable the assertion.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve been looking for something like this too, but more for “if request A fails, then goto request C”, rather then disabling an assertion.
Once the script begins executing, the only items that change within the script are variables and jmeter properties. I’m not aware of a property that is defined for “enable request”, but you may be able to create one:
Just curious – why would you want to disable the assertion on a failed request? Generally it’s the assertion that determines if a request fails or not (provided you receive a valid HTTP response code), so I’m wondering how you have your script set up.