在BeanShell断言中,我想检查当前HTTP Sampler是否失败,如果失败,则收集失败信息。
SampleResult.isSuccessful()用于首先检查整个采样器的状态。如果不返回true,则调用SampleResult.getFirstAssertionFailureMessage().invocation: Method getFirstAssertionFailureMessage() not found in class'org.apache.jmeter.protoco