View | Details | Raw Unified | Return to bug 61534
Collapse All | Expand All

(-)a/src/components/org/apache/jmeter/assertions/JSR223Assertion.java (-2 / +6 lines)
Lines 44-50 public class JSR223Assertion extends JSR223TestElement implements Cloneable, Ass Link Here
44
            Bindings bindings = scriptEngine.createBindings();
44
            Bindings bindings = scriptEngine.createBindings();
45
            bindings.put("SampleResult", response);
45
            bindings.put("SampleResult", response);
46
            bindings.put("AssertionResult", result);
46
            bindings.put("AssertionResult", result);
47
            processFileOrScript(scriptEngine, bindings);
47
            try {
48
                processFileOrScript(scriptEngine, bindings);
49
            } catch (AssertionError ae) {
50
                result.setFailure(true);
51
                result.setFailureMessage(ae.toString());
52
            }
48
            result.setError(false);
53
            result.setError(false);
49
        } catch (IOException | ScriptException e) {
54
        } catch (IOException | ScriptException e) {
50
            log.error("Problem in JSR223 script: {}", getName(), e);
55
            log.error("Problem in JSR223 script: {}", getName(), e);
51
- 

Return to bug 61534