Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
By using data binding, a database can provide data for a Web Test. You can bind data from a data source to a part of a Web request that requires data, such as a Form Post Parameter. You can bind to data in a database by clicking Add Data Source.
Additionally, an OLE DB data source can be used for data binding, including .csv files, Excel, Access and SQL Server databases.
You can also use data binding for any of the properties you edit in the Web Test Editor.
Set Credentials
You can bind to data in a database to set the credentials on a test. For example, you can have a list of logon names and passwords that you use in your tests.
For more information, see How to: Set Credentials on a Web Test
Team Edition for Testers supports sequential access, random, and unique access of records in the database when binding to a data source.
Execution of data driven tests is an important aspect of proper load testing because it more realistically models real world activity and helps ensure that server caches, and so on, are being used effectively.
When your Web tests are assembled in a load test and run on a remote rig, you must consider how the individual agent computers use the bound data. For example, when the access method is sequential or random, each agent gets a complete copy of the data that is shared by all virtual users created on that agent. However, when the access method is unique, the data is divided among the agents.
You must also consider the location of the data source if you are using a text file as a data source. If you hard code a directory path, for example c:\datafolder, at design time, the text file will have to reside in c:\datafolder on each agent computer at run time. It is recommended that you create data sources on network shares. Creating data on network shares allows you to reuse this data in other Web tests, share this data with other testers, and use this data in a load test on a rig more easily.
How to: Add Data Binding to a Web Test
How to: Set Credentials on a Web Test
Walkthrough: Adding Data Binding to a Web Test
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in