Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Tool "Extension Tool" did not accept output from method "XYZ"

Options
kseniia
kseniia Posts: 10

I have a test suite that includes 2 set-up tests, each using an Extension Tool with simple groovy scripts to obtain a JWT:
Set-Up 1: Set JWT Bearer Acquirer
Set-Up 2: Fetch Bearer Token

This test suite is stored under Tests Assets in my workspace, and then referenced in my project in any test suite for the tests which require a JWT (token then used in a header of a Rest client test).

Running this test suite directly from Test Assets results in fetched token, both set-up tests passed and marked green.
Running this test suite reference from my project results in fetched token, but both set-up tests fail and marked red.
Both tests fail with error - Tool "Extension Tool" did not accept output from method "XYZ"

What can be wrong with my setup?

Answers

  • benken_parasoft
    benken_parasoft Posts: 1,360 ✭✭✭
    edited July 15

    Both tests fail with error - Tool "Extension Tool" did not accept output from method "XYZ"

    What tool or tools do you have chained to your Extension tools? The error suggests you must have another Extension Tool chained to your Extension Tool, is that right? Does the chained extension Tool have a method named "accepts"? What is your "accepts" method doing? It must have returned something like "false" or "0" which signals the parent Extension Tool to report this error.

  • kseniia
    kseniia Posts: 10

    Correct, I have chained extension tools under each setup test:

    Those named "Return Value->Extension Tool" are empty, no methods are there:

    "Return Value->JSON Data Bank" looks like this:

    I don't have method "accepts" in neither of my setup tests.

    What's weird is that the test passes just fine when I run it directly from the test assets, but the same test looks like a failed test case when I run it as referenced. I say it "looks like a failed test" because it does the job - I see freshly grabbed token

  • benken_parasoft
    benken_parasoft Posts: 1,360 ✭✭✭

    Those named "Return Value->Extension Tool" are empty, no methods are there:

    The error is complaining about the chained tool named "Extension Tool". You should either configure or remove the bad Extension Tool(s).