Service Virtualization

 View Only
  • 1.  Magic date and multiple date fields in request

    Posted Aug 21, 2020 05:49 AM
    Hi,

    I have multiple date fields in my input request. There are multiple date fields in response as well. Out of the several date fields in response, I need to generate magic date for few output fields from one of the date field in request and for few others it should be generated from a different input field.
    For eg: a,b and c are input fields with date content and x, y and z are response fields. Desired output is,
    x --> magic date (a)
    y --> magic date(a)
    z --> magic date(c)

    Is it possible to do like that. Please guide.

    ------------------------------
    Regards
    Alex
    ------------------------------


  • 2.  RE: Magic date and multiple date fields in request

    Posted Aug 21, 2020 06:36 AM
    Hi Alex,

    In your R-R pairs try using same values for the input and associated response tags.

    You can try to edit the vsi once the service is created to achieve this.

    Thanks.

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------



  • 3.  RE: Magic date and multiple date fields in request

    Posted Aug 21, 2020 06:57 AM
    Hi Vaibhav,

    Its not about finding magic strings. Input and output date fields will be having a delta. I can update my requirement as below,

    a,b and c are input fields with date content and x, y and z are response fields. Desired output is,
    x --> doDateDeltafromRequest  based on 'a', 100D
    y --> doDateDeltafromRequest  based on 'a', 200D
    z --> doDateDeltafromRequest  based on 'c', 10D


  • 4.  RE: Magic date and multiple date fields in request

    Posted Nov 30, 2020 11:14 AM
    Edited by Senthil Manohar Dec 01, 2020 04:19 AM