any one could you explain the following code with example:

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

msgbox intFieldItemsCnt

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How is a Step generator used in UFT?

756


What is meant by a Check Point in UFT? Also, explain the applicable Check Points.

788


Explain the concept of object repository and how QTP recognizes objects?

634


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1340


Explain the Different types of QTP test assets and their extensions?

703






How can i initiate the objects to find uniquely in OR

1551


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

663


How to check which add-ins are associated with a test in qtp?

679


How you can find the absolute value of the number in qtp?

636


What are the various types of Actions in UFT?

691


How to use reporter.report event in qtp ?

650


What does mean by Scope of Automation?n How we defined it?

1654


before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

7412


hi i have 4 yrs exp in manual and automation testing using QTP i need sample resumes plz can u send this mail id pbre1980@gmail.com

1509


What is the keyword view and expert view in qtp?

644