setroproperty and getroproperty difference
Answers were Sorted based on User's Feedback
see noor wht u said i.e meaning correct in getroproperty
but what u written the code is wrong.and setroproperty also
wrong.
because there is no(like setroproperty) in QTP
properties in QTP are SetToProprety, GetToProperty,
GetRoProperty.
Regards,
TESTER
Is This Answer Correct ? | 6 Yes | 0 No |
Gettoproperty is used for getting runtime values of an
application On the other hand Settoproperty is for Seting
the runtime test object properties
For Settoproperty:
Suppose there is one screen named "TESTING" and another
screen named TESTINGPROCESS"
Now by using settopreperty we can do operations
on "TESTINGPROCESS" screen by using "TESTING" screen.
Here no need of TESTINGPROCESS screen properties in Object
Repository
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / gold
Can any body show me the coding with settoproperty and
gettoproperty?
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / umasankar
Set brwobj=Description.Create
brwobj("micClass").value="Browser"
Set pgobj=Description.Create
pgobj("micclass").value="Page"
msgbox Browser(brwobj).page(pgobj).getroproperty("title")
Set oDesc = Description.Create
oDesc("micclass").Value = "WebEdit"
Set ObjWebElement = Browser(brwobj).Page(pgobj).ChildObjects
(oDesc)
NumberOfObjWebElement = ObjWebElement.Count()
For i = 0 To NumberOfObjWebElement - 1
varWebElement= ObjWebElement(i).getroproperty("value")
Msgbox varWebElement
Next
ObjWebElement(i).set "my Value to set"
ObjWebElement(i).type "my Value to set"
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / noor
GetRO Property is used for retrieving the property of an
runtime object
For Example
To get whether button is enabled or not.
Val = Browser("Browser name").Page("Page name").WebButton
("Login").GetROProperty("disabled")
To get whether a checkbox is on or off.
Val = browser("Browser name").Page("Page name").WebCheckBox
("Test").GetROProperty("Value")
SetRo propert for modifying the property of an object
Is This Answer Correct ? | 3 Yes | 4 No |
If i entered 2 columns and 4 rows inputs in DDT Like Mango fruit, Banana Fruit, Brinjal Veget, Carrot Veget.. . My Q is How to get the 2nd column value for corresponding 1 column input in 3rd row ie, ( i need to get "veget" in messge box @ run time
Can any body please tell me the steps of keyword driven frame work in qtp. My mail is saswat445@gmail.com please send some materials on keyword driven testing in qtp. thanks a lot...
How do you do batch testing in wr and is it possible to do in qtp, if so explain?
What u say as experience(Interview) "TELL ME ABOUT UR SELf"? As a Fresher(interview) What u Say?
How to change the scripts from Per-Action object repository to shared object repository
i need the licence key for QTP V9.5 can anyone help me on getting this?
What are the limitations in using Virtual objects?
what skills needed to be good test automation?
how to retrieve the xml file data through qtp. can anybody send script for this..
Qtp has been installed on my pc but recently ON opening it is giving this error PLEASE REPLY IT IS URGENT IT WAS WORKKING FINE QTPRO.EX THE instruction at "0x7.. ...". referenced memory at "0000....The memory could not be read... Awaiting QTP XPERTS REPly URGENT
hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this
What are the technics follow in writing VB script?