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

What is the vb script when the url enter into the browser

2 Answers   Satyam,


How does QTP identify an object?

0 Answers  


How to recognize and read data from pdf file using Descriptive Programming in QTP?

1 Answers   Satyam,


What is the expert view?

0 Answers  


Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"

1 Answers   Cap Gemini,






I want to do QTP Certification what is the pattern of Question paper.

0 Answers  


Hi, every one aim new to automation testing(QTP),aim looking for software versions any. If any one can HELP me that will be great. Thank u.(9620427211,Bangalore)

0 Answers   ME,


Can we Script any test case with out having Object repository? or Using Object Repository is a must

3 Answers   Crea,


Where you are storing your script?

0 Answers  


What is batch testing?

4 Answers  


hello everyone, can anybody please tell me what are the different recording modes of QTP, and where these recording modes are present in QTP 9.2. Thanks in advance, Gaytri

7 Answers  


what is the process to follow between writing the test cases & then atomating it?

1 Answers  


Categories