How to use context.report in output extension tool

kram_soatestkram_soatest Posts: 14
edited July 1 in SOAtest

Hi,

I am doing some custom validations. I added extenstion tool as an output to response. How can I make the custom tool failure with a error message which I can see in the report while running using cli
For eg in extension tool I have a condition
If a==1
Result pass
Else
Result fail with message “a is not 1”
I tried adding context.report(“a is not 1) in the else part but no luck

Best Answer

  • kram_soatestkram_soatest Posts: 14
    Accepted Answer

    My extension tool had json assertor and my tool failed always based on the assertor and not on context.report. After removed the json assertor context.report working fine. Thank you

Sign In or Register to comment.