AddItem Method
Description
Creates a new item object.
Syntax
Visual Basic
Public Function AddItem( _
   ByVal ItemData As Variant _
) As Object
Parameters
ItemData

There are three options for ItemData:

  • Null. Initially creating a virtual Test object with Null ensures that you cannot then Post until all required fields are initialized.
  • The test name.
  • An array consisting of the following elements:

(0) Name - The test name (required).

(1) Type - The test type (string, optional). The possible test types are detailed in the table below.

(2) Tester - The name of the user that created the test (string, optional). The default value is the name of the user currently logged in (string, optional).

(3) SubjectID - The ID of the subject folder in which to create the test (long, optional).

Return Type
Remarks
                          Test Types 
Test TypeDescription
MANUALDefault. An ALM manual test.
WR-AUTOMATEDA WinRunner automated test.
WR-BATCHA WinRunner batch test.
LR-SCENARIOA LoadRunner simulated environment test.
XR-AUTOMATEDAn XRunner automated test.
QUICKTEST_TESTAn Astra QuickTest or QuickTest Professional test.
QTSAP-TESTCASEA QuickTest Professional for MySAP.com Windows Client test.
VAPI-XP-TESTA test to be performed by the API-XP test execution tool.
SYSTEM-TESTA test involving system actions.
DB-TESTA Vuser script test.
See Also