ant
ant

Reputation: 22948

How to get jmeter object in Jmeter

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.

Upvotes: 2

Views: 1428

Answers (1)

BlackGaff
BlackGaff

Reputation: 7707

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.

Upvotes: 2

Related Questions