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 |
What are the different types of qtp test assets and their extensions?
When I click on a link in web page.Link should open in new window.can anyone please let me know the script for this ---Koti
Does QTP provides any tools for parametarization?
Hoe we can export TEST RESUALT IN to XL-sheet?
which command u will use to access the application through descriptive programing?
Can you list some technologies that support qtp?
What is a Run-Time Data Table? Where can I find and view this table?
What is output value?
www.icici.com ,after this.. home page wll came, in this page what r the items we r going to test for manual and what are items we r going to test for QTP... explian clearly with example
What is the limitation to XML Checkpoints?
What are the advantages of a Hybrid framework?
Hi guys, can anyone explain me whats the method for reporting the QTP test results to teamlead or non-QA member (developer/PM)? Thanks in Advance!!!!!