Share via


DeclarativeWebTest.GetItem Method

Gets the WebTestItem with the specified zero-based request number.

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

Syntax

'Declaration
Public Function GetItem ( _
    itemId As Integer _
) As WebTestItem
public WebTestItem GetItem(
    int itemId
)
public:
WebTestItem^ GetItem(
    int itemId
)
member GetItem : 
        itemId:int -> WebTestItem
public function GetItem(
    itemId : int
) : WebTestItem

Parameters

  • itemId
    Type: Int32

    Zero-based sequence number of the WebTestItem within the web test.

Return Value

Type: Microsoft.VisualStudio.TestTools.WebTesting.WebTestItem
The WebTestItem with specified request number. Null if not found.

.NET Framework Security

See Also

Reference

DeclarativeWebTest Class

Microsoft.VisualStudio.TestTools.WebTesting Namespace