This blog post will describe the enhancements that have been made to the data source functionality in web tests. We have heard the following feedback a number of times:
We have provided enhancements to each of these areas.
using Microsoft.VisualStudio.TestTools.WebTesting;
namespace TestProject4 { public class DatasourcePlugin : WebTestPlugin { public override void PreWebTest(object sender, PreWebTestEventArgs e) { e.WebTest.ReloadDataTable("DataSource1", "Products#csv"); } } }
namespace TestProject4 { public class DatasourcePlugin : WebTestPlugin { public override void PreWebTest(object sender, PreWebTestEventArgs e) { e.WebTest.MoveDataTableCursor("DataSource1", "Products#csv", 3); } } }
Hopefully these enhancements will make it easier to work with data sources. These are now available in beta 2. Please try them out and let us know what you think.