Service Virtualization

How to set magic string o/p for other values in same response

  • 1.  How to set magic string o/p for other values in same response

    Posted Mar 23, 2015 05:55 AM

    I have set magic string for product ID's as shown below (in the response section of LISA):

    <productId><link href="http://host:port/product/ci/{{=[D*(3)]}}-{{=[D*(1)]}}" rel="self"/>

    But I want to use the same ID at other places of the same response.

    Example: In the response I want to use the same value between assignId tags as shown below:

    <assignId></assignId>

    Note: Now the issue is if I set magic string for assignId as well then it won't be same as productId. So I need to capture productId and put it for assignId.

     

    Please let me know if anyone has any suggestions. Thanks.