We are using VSTS 2008 to perform some relatively simple web testing of a web application that we have under development. We have data sources defined to provide input data to the tests, and would like to perform our validations based on this data source also. The problem that I have is the VS GUI does not allow me to bind values in validation rules to a data source.
I have discovered how to convert the test to code, and then update the code to reference the appropriate column in the data source:
validationRule.FindText = this.Context["UsersDataSource.Users#csv.?UserName"].ToString();
However, I can't seem to find the right syntax for entering this into the Properties/Value field of any of the built in Validators, without converting it to code. Has anyone managed to do this, or must I always convert the web tests to code to achieve this?