11-21-2016 04:37 PM
The following will show how to cause a failure on a Numeric Test that contains an invalid number.
In the Post-Expression of your message box:
Val(Parameters.EnteredData,Locals.ValidNumber), Parameters.EnteredData=(Local.ValidNumber?Parameters.EnteredData:"NAN")
The Numeric Test that follows has the usual Data Source code:
Step.Result.Numeric=Val(Parameters.EnteredData)
This will however replace any entered input to "NAN" in the results/reporting field. "NAN" string through VAL() converts it to "Not A Number".
This example uses Parameters, but would be better as a Local.
Solved! Go to Solution.
11-21-2016 04:38 PM
Solution in the First Post.