How can i count the list box elements in QTP ?using script
plz explain me (Chandana)
Answer Posted / pbre
hi you can try this one
browser("SCP").Page("SCP").WebList("ctl00$WebPartManager1
$ResultSu").Click
a = browser("SCP").Page("SCP").WebList("ctl00
$WebPartManager1$ResultSu").GetROProperty("items count")
msgbox a
For i=1 to a
c =browser("SCP").Page("SCP").WebList("ctl00$WebPartManager1
$ResultSu").GetItem(i)
reporter.ReportEvent micPass,c,c
Next
| Is This Answer Correct ? | 4 Yes | 4 No |
Post New Answer View All Answers
How do we handle run-time errors?
How are actions and functions different in QTP?
Can you list some technologies that support qtp?
After fixing the bug, the same bug is raising again and again in new builds what we have to do? That bug is high level bug.
How to release all resources file from the QTP?
What are benefits of qtp?
After executing the script in qtp suppose i found some script execute successfully and found some error.So how to report the status for both (i.e pass and fail report)in test director. For "fail" We use "defect tab" in testdirector. But for "pass" how to report it to TL.what is the process plz anybody ans
Hi,Sudhanandareddy plz forword framework and ppts for QTP to me. This is my mail id: ranjith_99reddy@yahoo.co.in (your contact number also)
what is test scheduleling?
Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?
Explain more about the Test Fusion Report of QTP?
when u script reveiwing in which area u more concentrates?
how to test use the quality control .how to verify the image verification
To which environments does quicktest professional supports?
Explain different types of action in qtp?