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

Explain the benefits of quick test pro(qtp)?

572


If object is not recognized by qtp but the object is standard object what is your approach?

592


I opened gmail login into gmail and i have to save (Pass or move) all the mail into notepad please give me code Thanks of all

1524


Print the Prime numbers in below format only up to 20(Need commas also) 1,2,3,5,7,9,11,13,17,19

1185


in qtp if we record a object and we record the object using virtual wizard then by which way the object is recognized that means recorded

1524






What are the advantages of parameterization ?

598


Explain quicktest professional (qtp) testing process?

539


With what extension you can save the list of tests in a file to run in test batch runner?

570


write script for bitmap image?

1544


Does QTP have any limitations?Can it work with all kinds of programming languages like java,springs,ajax ,hybernet?Also does it work well with windows 7.What are its other limitations

1766


Can we create a qtp test from qc?

590


I had installed QTP 9.2. It is working fine but whenever I open QTP, it is trying to reinstall the below-mentioned files again and again "QTP92PS82UPGRADE.exe", "recogn.dll". If anybody has these files, please provide those files in this site or you can send that files to my mail id also (lravi4u@yahoo.com). If you don't know where the files will be in the QTP, search in the QTP software CD or path of QTP program installed (C:\Program Files\Mercury Interactive\QuickTest Professional)

1464


Where we use data driver in qtp?

613


RECENTLY I PLACED IN QTP..HOW TO IMPROVE VB SCRIPTS KNOWLEDGE? IAM STRUGGING TO WRITE THE AUTOMATION SCRIPTS? ANY BODY TELL HOW TO IMPROVE QTP SCRIPT SKILLS?

2186


Difference between test object and run time object?

595