Read data from multiple data sources using Visual studio WebTest

Requirement As a performance tester, I should be able to read the data from any number of the datasource based on the my requirement (Ex: Different environments Test,UAT,Prod) We can accomplish the same using below code snippet     [DataSource(“TestDataSource”, “System.Data.SqlClient”, Constants.TestDataConnectionString, Microsoft.VisualStudio.TestTools.WebTesting.DataBindingAccessMethod.Sequential, Microsoft.VisualStudio.TestTools.WebTesting.DataBindingSelectColumns.SelectAllColumns, “Users”)] [DataBinding(“TestDataSource”, “Users”, “userid”, “TestDataSource.Users.userid”)] [DataSource(“UATDataSource”, “System.Data.SqlClient”, Constants.TestDataConnectionString, Microsoft.VisualStudio.TestTools.WebTesting.DataBindingAccessMethod.Sequential, Microsoft.VisualStudio.TestTools.WebTesting.DataBindingSelectColumns.SelectAllColumns, “Users”)] [DataBinding(“UATDataSource”, “Users”,…

0

Control code execution between Load and Webtests

Requirement As a performance tester, I would like to Execute a specific plugin/block of Code during Webtest and skip the same code, when I execute the load test(Which has this WebTest) and ViceVersa This need to done without making any configuration changes while running web or loadtest. We can use below sample codesnippet to accomplish the same…

0