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.

Using variable in Custom Correlation

rvmseng
rvmseng Posts: 89
edited May 2018 in Virtualize

Hi dears,

I have below scenario, but it does not work correctly.

My Scenario :
1) I use a XML data bank for getting a value from incoming request
2) I use that value for correlation (in custom correlation )
but when I call it (variable) in Custom Correlation (scripting with java script), it return empty.

please refer to attached picture.

Comments

  • Thomas Moore
    Thomas Moore Posts: 82 admin

    Hi rvmseng,

    You're really close! In your function, you should reference context.getValue("Generated Data Source", "msisdn").

    Without the first string in the getValue call, it will look for a responder suite variable instead of a databank.

    Hope this helps!

  • rvmseng
    rvmseng Posts: 89

    Dear Thomas,

    Thaks for you reply

    Exactly I want to use a responder suit variable and I dont want to use data bank columns

    When I call variable it return default value and dont return value of xml databank
    If you look at my scenario I use a xml data bank for getting value from incoming request