Using Data Source Correlation for dates in Responder
We have a responder, where we have set the data source correlation using account number. However, i also need to correlate the date which is coming in request as said below.
Check if startDate which is coming in request is greater than or equal to the data source column value.
Here DS has 10 rows where i need to check all the rows to see if incoming date is greater than any row.
Is there a way that we can achieve this ?
Comments
-
Hi,
You might be able to use criteria expressions to have a data source row match if the incoming data meets some criteria.0 -
Thanks , but i didn't understand how to use exactly
Below is my xpath , where i need to check the given date is greater than the column value/:Envelope/:Body/:findTransactionsRequest/:transactionSearchCriteria/*:startDate/text()
Above was extracted automatically and i have a data source column name startDate
Can you help here how can i use the criteria expression
0 -
In your data source I would setup a row that has the criteria that it will match any date that is "greater than" its value. So the criteria is in the data source rather than the xpath.
To get more direct help please create a ticket via support@parasoft.com
0 -
Yes i had setup but i could see those criterias would work only for numbers and strings ?
[>= "2019-01-14"]
This is what i have given but still not working.
Is this the right way to give in the row ?
0 -
Please contact support, they will be able to connect with you to help understand your use case and find a solution that works. You can create a ticket via support@parasoft.com
0