setroproperty and getroproperty difference

Answers were Sorted based on User's Feedback



setroproperty and getroproperty difference..

Answer / tester

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

setroproperty and getroproperty difference..

Answer / rayudu

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

setroproperty and getroproperty difference..

Answer / gold

Can any body show me the coding with settoproperty and
gettoproperty?

Is This Answer Correct ?    0 Yes 0 No

setroproperty and getroproperty difference..

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

setroproperty and getroproperty difference..

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

Post New Answer

More QTP Interview Questions

1. IS A VIRTUAL OBJECT USED WHEN THE LABEL IS NOT RECOGNIZED BY QTP

7 Answers   Ordain Solutions,


What are the various automation frameworks available in qtp?

0 Answers  


what is the object properties settings in the QTP

5 Answers   DigiTech,


Any one knows about descriptive programming to identify objects in a page? Kindly drop me mail prasanna.sabat@gmail.com

3 Answers  


How do you start automating/ writing your QTP scripts ?

3 Answers   Keane India Ltd,






how to find that tools work well with your existing system?

0 Answers  


when i try to recognise a winmenu item it does not allow me to do that but recognises it as window..i am using qtp 9.2 could someone help with this

3 Answers  


Explain features of the latest version of qtp/ uft 12.1?

0 Answers  


Hi. please provide license key for QTP 9.2, I have windows XP on my machine Thanks in Advance, moreshwar

0 Answers  


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

0 Answers   Infosys,


When QTP object wait time is 10 seconds, and in test script wait time is 5 seconds and in function library wait time is 2 seconds how much time does the wait occur? or which is given priority.

0 Answers  


what is the frame work your using in automation ?

4 Answers  


Categories