luis d
luis d

Reputation: 11

JMeter Assertions

Is there a way to use the icons in the tree to view response assertion failures in JMeter? Maybe turning the icons red? Or some other way to quickly see if there are any errors? It's a pain to click every View Results Tree node to check for errors.

Upvotes: 1

Views: 813

Answers (5)

user197501
user197501

Reputation: 290

You can Use Result Tree Listener.So if any sample fails that particular sample turns red. enter image description here

Upvotes: 0

VCody
VCody

Reputation: 516

It simple the color of assertion will be red only if that fail. Other option is stop the test when Assertion fail. i.e. check the Stop Thread option in Thread group

Upvotes: -1

Dan
Dan

Reputation: 421

Yes, the icons turn red when a error occurs. the only reason it wouldn't is because you've checked "ignore Status" in a response assertion, that occurs after your other checks. If you use ignore status, make it the first assertion in your list.

Upvotes: 4

BlackGaff
BlackGaff

Reputation: 7707

If a sample fails an assertion, the icon turns red automatically.

Upvotes: 1

Andrey Pokhilko
Andrey Pokhilko

Reputation: 2658

Use Assertion Results Listener and check Log/Display Only Errors checkbox

Upvotes: 1

Related Questions