How can i select multiple items from a WebList bOX USING QTP

Answer Posted / bhavya

' Check if multiple items exist in
listbox, IF yes, then select those ELSE report error
Dim AppList ,Obj
AppList = ListApplicationsToSelect()
Set Obj = Browser("SMART").Page("Add User").WebList
("seiApp")
ItemSelected = SelectMultipleListItems
("SEI_Applications", Obj, AppList)
SelectMultipleListItems(
If ItemSelected <> "PASS" Then
AddUserInfo_Page1 = ItemSelected
'Exit function
end if

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain measuring transaction.

586


How to open a new test using quicktest professional?

574


What are the Test design techniques you uses in ur project?

1487


I am facing an issue of object identification with the dropdown element of DHTML grid. When I tried to recognize these different dropdown objects, QTP identifies only one object for all the dropdowns. Hence, selection of different data from different dropdowns list is an issue. To overcome this problem, i have used Descriptive Programming technique by creating different object descriptions which have all the other properties same but differ only in one property i.e. ‘X’ location of the element on the screen. Hence, i have created distinct object descriptions that would allow us to select values in different dropdowns. The code is given below. But still I am unable to identify distinct dropdown objects. ‘Object Description for Dropdown Cell Status Set objCellStatus = Description.Create objCellStatus("micclass").value = "WebList" objCellStatus("name").value = "select" objCellStatus("x").value = 219 ------ ‘X’ Axis value for cell status drop down ‘Object Description for Dropdown Sub Segment Set objSubSegment = Description.Create objSubSegment("micclass").value = "WebList" objSubSegment("name").value = "select" objSubSegment("x").value = "319" ------ ‘X’ Axis value for sub segment drop down Please help... This is specific to DTML grid(Drop down object)

1414


What is Distributed testing? How does UFT support it?

607






How many types of parameters are available in quicktest professional (qtp)?

585


Explain the features and benefits of quick test pro(qtp)?

516


HOw to add the recovery file at runtime to the test file .

1542


What is a data driven test in qtp?

587


Can we run test with out adding object in object repository? How it is possible?

546


is it possible to add sheets to excel at runtime

3234


UFT 12.02 which ALM version will support

982


Can we run multiple QTP scripts one after the other without manual intervention? How?

598


What is the use of text output value in quicktest professional (qtp)?

602


Through array we can execute the testcase how ? give me example

1401