Is it possible to get assertion failed in tree view listener using this line of code in JSR223 Assertion?
assert 1 == 2
Before in JMeter version 3.1 i could do this without any problem and now its just not working. I know i can use these lines of code
if(1 != 2) {
AssertionResult.setFailure(true)
AssertionResult.setFailureMessage('They are not equal') }
but i would, if possible, like to keep it simpler and shorter like before, with just one line of code