New release of GUITester with Regular Expressions
Following my visit to Nxtgen I have added regular expression functionality to GUITester as promised.
The ClickTextTest attribute now has an optional extra boolean flag, this allows you to say if the text to match is a fixed string or a regular expression. The usage to check a textbox contains an email address:
[ClickTextTest("email test","textBoxRegularExpression",@"^w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*$",true)]
private Button btnRegularExpression;
private TextBox textBoxRegularExpression;
There is also a simple text field test that allow you to validate that a field matches a regular expression, this is used in the form:
[RegularExpressionTest("email test",@"^w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*$")]
private TextBox textBoxRegularExpression;
The new release can be found at GUITesterSourceV2.2.zip, I hope this is of use to some people out there.