Hi,
While creating virtual service using recording method,
We have a requirement to handle a Date field split into 3 different fields (field_year , field_month & field_date) as magic strings or magic dates unlike the standard Date handling.
Here is the scenario explained:
Request_1 has an argument travel_from_date with value 170321 which DevTest parameterizes to {{=doDateDeltaFromRequest("ddMMyy","70D");/*170321*/}}
Request_2 splits this value 170321 into 3 different fields (travel_day , travel_month , travel_year ) with values as (17 , 03 , 2021) respectively which we want to use as Magic Dates/Strings since these values are repeated in many such requests.
Since doDateDeltaFromRequest is for the date of format ddMMyy , we want to understand how to handle the split dates spread across different fields.
The highlighted part we would like to parameterize.
Note: Magic string won't work here, because request arguments name and response arguments name will not be same
------------------------------
Aravind
------------------------------