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.

datasource

Options
jngojngo
jngojngo Posts: 46
edited November 2018 in SOAtest

I want to access method globally. However, I have different payloads with different datasource. Is there a way to determine the datasource of the payload that it needs to access from the method call.

Comments

  • jakubiak
    jakubiak Posts: 798 admin
    Options

    Your problem is not entirely clear to me - can you be a little more specific?

  • jngojngo
    jngojngo Posts: 46
    Options

    I created a method to write some data to output file and I put this as part of the tools. Now each payload have a different service such as Payment, Transfer , Balance and this are all pointing to different datasources. Everytime I call the method to pull the data out. I would also like to access the datasource of that specific payload. Is that possible?

  • jakubiak
    jakubiak Posts: 798 admin
    Options

    There is no way to dynamically read the data source that is set in the tool. You can access the data source using the SOAtest scripting API, but you have to know the name of the data source that you want to access.

  • jngojngo
    jngojngo Posts: 46
    Options

    Thanks, Jakubiak.