DataBindingAccessMethod Enumeration

Enumeration for the access method that is used for data binding.

Namespace:  Microsoft.VisualStudio.TestTools.WebTesting
Assembly:  Microsoft.VisualStudio.QualityTools.WebTestFramework (in Microsoft.VisualStudio.QualityTools.WebTestFramework.dll)

Syntax

'Declaration
Public Enumeration DataBindingAccessMethod
public enum DataBindingAccessMethod
public enum class DataBindingAccessMethod
type DataBindingAccessMethod
public enum DataBindingAccessMethod

Members

Member name Description
DoNotMoveCursor Selects the data pointed by the cursor. The selection remains constant for the duration of the test.
Random Randomly selects data from the data source for the duration of the test.
Sequential Sequentially selects data from the data source for the duration of the test. If necessary, starts at the first row of the data source again.
Unique Sequentially selects each element in the data source only one time and ends the test when the data is exhausted. For example, if the data source has ten rows, then the load test will have ten test iterations executed and then stop, even if there is time left in the test duration. Additionally, if there are other tests in the load test not using the unique data binding option, the load test will continue to run those tests although the unique tests have ended.

Remarks

Represents the order that data is retrieved from tables in a data source.

If you are running a load test on multiple agents, the behavior for Random and Sequential are the same. Each agent uses its own copy of the data source to select random or sequential data. For Unique, each row in the data source will only be used one time across all agents. For example, if you have three agents, the data rows from the data source will be divided between the three agents and no row will be used more than one time. After the test has been run with every data row, the Web performance test will stop running.

See Also

Reference

Microsoft.VisualStudio.TestTools.WebTesting Namespace

Other Resources

About Data Binding

[retired] How to: Add Data Binding to a Web Request