Submit and vote on feature ideas.

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.

getGeneratedDataSourceValues returning null

angrymouse Posts: 10

I'm trying to make a script in incoming Request -> payload, but when i try to put some values to use in response i'm receiving a null pointer. I'm getting the data source with context.getGeneratedDataSourceValues().

Anyone have any idea about what could I be doing wrong?


  • keegan_chan
    keegan_chan Posts: 59 ✭✭

    The context.getGeneratedDataSourceValues method is typically used to extract all values from XML Data Banks. So it may not be suitable for your purpose.
    If you define a responder suite variable, then the script in the Extension Tool would be able to access it, via the context.getValue and context.setValue methods.