Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DeclarativeWebTest::InsertItemAt Method (Int32, WebTestItem^)

 

Inserts a WebTestItem at the specified item index.

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

public:
void InsertItemAt(
	int itemId,
	WebTestItem^ item
)

Parameters

itemId
Type: System::Int32

Zero-based sequence number of the WebTestItem within the Web performance test.

item
Type: Microsoft.VisualStudio.TestTools.WebTesting::WebTestItem^

The WebTestItem to insert.

The new item is inserted before the item currently at the specified index, and if that item is in a transaction, condition, or loop the new item will also be in that state. If the itemId is greater than the largest itemId of any item in the Web performance test, the item is added to the end of the Web performance test (outside of any groups).

Return to top
Show: