How to: Configure Data Binding in a Web Test
Before you can add data binding to a Web request, you must add a data source to your Web test. For more information, see one of the following topics:
After you add a data source to a Web request, you can bind a Web test request to the data. For more information, see the following topic:
After you have bound a Web test to a data source, you must configure how many times you want the Web test to access the data. For example, if your data source contains 5,000 rows, you can first run the test using just 10 rows as a test. Then you can run the test using all the rows in the data source.
To configure data binding in a Web test
On the Test menu, point to Edit Test Run Configurations, and then click Local Test Run.
The localtestrun.testrunconfig dialog box appears.
Instead of editing the Local Test Run configuration, you can also create a separate data run configuration for testing your data binding. Then you can switch between run configurations. For more information, see How to: Specify a Test Run Configuration.
Select Web Test in the left pane.
Click the One run per data source row option.
- or -
Click the Fixed run count option, and enter the number of rows of data to test.
No matter which option that you select, the test will start on the first row of data and move sequentially through the data.
Click Apply and then click Close.
On the File menu, menu click Save to save the Web test.