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 |
which checkpoint we use to validate yahoo login screen window after login with ur id and password in qtp
How we can add objects to the object repository during the running?is it possible or not?explain
what is the abbrivation of .mtr in action reposirtory?
Hi cud you plz answer my question.. what is the size of Object Repository?
is qtp 9.2 supported for firefox browser3.0?bcoz when i tried to create scripts with the application run on firefox browser 3.0 then qtp 9.2 didn't ct=reate the scripts?
What is test object model in quicktest professional (qtp)?
WHAT IS THE DESCRIPTIVE programming when it is useful? & when to use this ?
What is RTM (require ment tracebulity marix) fromate?
what is difference between analog and low level recording
what is the defference between QTP 8.2 and 9.0and 9.2? plz tell me
I have some real time based question.. 1.what are the challenges you have faced in your current project. 2.what are the bugs you found in your current project. 3.what are the strategies you follow to convert manual test cases into automation test cases. 4.how QTP identify two different browsers. 5. When you create a function library and share object repository what are the problems you have faced 6. How to solve the tool tip problem 7.what are the interesting bug you have found in your current project. 8.what is your daily work as a automation test engg. 9. how to create a weekly status report. 10. how many test cases you write,review and execute per day. 11.what are the uses of SQL in automation. 12.How to retrieve the data in html through vb script. 13.If application is very slow how to test the application in qtp.
To which environments does quicktest professional supports?