any one could you explain the following code with example:

intFieldItemsCnt =CInt(GetProperty(Browser
("Browsername").Page("Pagename").Weblist
("weblistname"),"items count"))

msgbox intFieldItemsCnt



any one could you explain the following code with example: intFieldItemsCnt =CInt(GetProperty(Bro..

Answer / uday

First of all, there is no GetProperty method in QTP.

There are getROProperty, GetTOProperty,

the right syntax above is inti=b().p().wl().getROProperty("items count")

which will return no. of items in the weblist

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

Hi All, I want to know how can we schedule QTP scripts. Am using 9.5 version and in our office they want to schedule individual scripts of QTP so that it can run unattended during night time, Please help me how to do that. 2. what is the use of silent test run in qtp can I schedule the scripts in Silent runner, Please explain. 3.I retrieved data from the database using output value -> Database output value. the result of the query for eg is 5 rows, iam able to output the first row by selecting the cols and adding it to output, but am not able to do it for the rest of the rows. please tell me how to do it. Sorry for posting so many qns, am not able to find answ to any of the above in any websites, hoping that someone would really help me with these here, please help me. awaiting for ur immediate revert. Priya

5 Answers  


If an application name is changing frequently i.e while recording it has name “Window1” and then while running its “Windows2” in this case how does QTP handle?

7 Answers   Covansys,


what is framework in QTP? any one give me answer

4 Answers   Wipro,


If an application name changes frequently i.e while recording it has the name, in this case, how do qtp handles?

0 Answers  


I open login gmail page after that QTP is not able to identify the object present in it then what u will do

3 Answers   Accenture,






i have batch scripts in qtp and i want to update the status like pass/fail in excel sheet after excecuting the every script in batch.how to write the script for this?

1 Answers   IBM,


Do you know SQL? I know SQL but i don't have any experience...that's it..No more questions ...simply he said " you can leave for the day" ...guys prepare SQL Quires before attending interview in bank of america...

0 Answers   Bank Of America,


Hi all , I have installed the QTP 11.0 Whenever I am opening QTP that time if any open Internet Explorer I was getting message (Internet Explorer has encountered a problem and needs to close. we are sorry for inconvenience caused) and same way new browser also not opening. If you have any idea please let me know.

2 Answers   ME,


What is the difference between Image Checkpoint and Bitmap Checkpoint?

8 Answers  


what are pretesting activities

0 Answers  


How did you achieve reusability via QTP?

1 Answers  


How to see entire results at the same timeafter the batch run.. Cannot see the entire results at a time. Is there a easier way view everthing at same,as our batch file very large

2 Answers  


Categories