Can we implement validation rules using Parasoft?
Hi,
I want to know if we can implement validation rules in Parasoft without writing code.
ex: My response should look if my date > current date then i can throw some custom error messages in response? or do we have any Parasoft methods that can be used for this kind of work?
Comments
-
Hi,
For date validation you will have to use scripting. The script would be used to decide if a responder correlated, so for the error case a responder would check date > current and then it would be configured with the error response.
0 -
Actually I take that back, you might be able to do it using xpath expressions to get the date from the request and then a function for the current date.
See some basic examples here
https://stackoverflow.com/questions/4347320/xpath-dates-comparisonCurrent date function
https://stackoverflow.com/questions/4347320/xpath-dates-comparison0 -
thank you.
0