Friday, 3 August 2012

L23 - Regular Expression


We can use Regular expression where ever there is need of some conditional checkpoint, like if there is a condition that to check that order number should start with 1.

We can put a standard checkpoint and use the regular expression in standard checkpoint, while editing the standard checkpoint, we see a “Regular Expression” button next to the value of Constant/Parameterization.

Click on this button, “Constant value option” window will open.

Check the check box at the left side of “Regular Expression”

To put condition for any value after first digit as 1 use “1. *”
It will check for any value starting with 1.