How do I pass current date in my XML Request

ndondendonde Posts: 3

XML request has - date from and date to tags, how do I pass current date for both tags using extension tool, or is there any other way to achieve this. I am using Parasoft 9.9

Answers

  • benken_parasoftbenken_parasoft Posts: 736 ✭✭✭

    If you can upgrade to 9.10 then I'd recommend using the Data Generator tool. For 9.9 there is an older extension called the Date Math tool which is available on the Parasoft Marketplace .

  • ndondendonde Posts: 3

    Thanks for this info, is there any other way where we can script to read the current date from datasource

  • benken_parasoftbenken_parasoft Posts: 736 ✭✭✭

    I prefer solutions that don't involve scripting. However, if you prefer to write a script then simply write code in your script to return the current date. For example, if you use Groovy then you can write code like what you see here.

  • ndondendonde Posts: 3

    I added the plug in for date math tool as adivsed, but unable to get any input/output from it. Is there any documentation on how to use this plug in?

  • benken_parasoftbenken_parasoft Posts: 736 ✭✭✭
    edited August 22

    Is there any documentation on how to use this plug in?

    The file you download from the Parasoft Marketplace is named com.parasoft.soavirt.tool.datemath-1.0.0-dist.zip. Do you see the DateMathTool.pdf file included in that zip file?

Sign In or Register to comment.