Hi. plz expalin abouit SetToProperty, SetRoProperty,
GetToProperty, GetRoProperty,GetToPrperties. with examples.
Answers were Sorted based on User's Feedback
Answer / kamesh
As per my Knowledge ....There is no SetORProperty in QTP
SetToProperty: This is used for set the values to any
property of object at run time. This is not effected to
Runtime datatable.
GetTOProperty: This is used to get property values which is
set the value to the object using SetTOPropery at run time
GetORProperty: This is used to get the any property values
of any object in run time
Plz let me know if I wrong..
jnkrao@yahoo.co.in
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / raghavender
SetToProperty
It is used to set a vlaue to the property of an object
which is there in the Repository.
eg: browser("").page().webbutton("").setTOProperty
property,value
GetROProperty
This property is used to get the run time proerty of an
object.
eg: strval = Browser("").page("").webbutton
("").getROproperty("name")
GetToProperty:
This property is used to get the particular property value
of an object which is present in the repository.
Eg:strval = Browser("").page("").webButton("").getTOproperty
("name")
SetROProperty is not existing in QTP.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / surya
Yes !st answer is wrong ....In QTP we hav only
GetToProperty
SetToProperty
GetRoProperty
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / prathyusha
We don't have any SetRoProperty in QTP
We do have only SetTOProperty,GetRoProperty,GetToProperty,GetToProperties.
SetToProperty-- is used to update the property value of a test object but that updation will be only temporary.
B().P().WebButton().SetToPropery "Name","OK"
GetRoProperty-- Is used to get the property value of RuntimeObject
msgbox B().P().WebElement().GetRoPropery("inner text")
GetToPropery-- To get the property value of test object
B().P().WebEdit().GetToProperty("value")
GetToProperties-- To get the property values of all test object.It returns the collection
set allprops=B().P().webedit().GetToProperties
msgbox allprops.count
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / umasankar
Objects in QTP are of two types.
1) Test Objects (Objects resided in Object repository, not
the exact replica of the objects resided in your
appliation. Qtp is having its own pre-defined set of
classes to identify the object(s), using the QTP classes an
object is added to repository)
2) Runtime objects (these are the exact replica of the
objects resided in your application).
GetRoProperty ---- This method is used to retrieve the
value of a runtime object (may get change during runtime)
GetToProperty ---- This method is used to retrieve the
value of test object resided inobject repository (wont
change).
SetToProperty --- This method is used to set/change the
value of the object resided in object repository (change in
the property won't reflect change(s) in the property of
runtime object)
SetRoProperty --- Not advisible to use. change in the
property of actual object may lead(s) to wrong unnecessary
results.
| Is This Answer Correct ? | 0 Yes | 1 No |
SetToProperty - Sets the value of the property from the
output file(Ex:Excel) in your respestive text box for
current applciation.
SetRoProperty - Sets the values of the property at Runtime.
GetRoProperty - Retrives the value from the applciation and
it will store in your local sheet.
GetToProperty - Retrives the value of the runtime data of
text.
| Is This Answer Correct ? | 1 Yes | 14 No |
3 differences between QTP & Winrunner?
Explain how you can find the absolute value of the number in qtp?
How do you start automating/ writing your QTP scripts ?
I have to pass all the test cases into gmail userid and password using functions please give me code thanks have anice and greate day
How do you script a nested loop in QTP? I am showing a snipet of my code. Any suggestions to help me get this to work would be great appreciated! STEP A - Customer Number: No loop - ISBN: Loop STEP B - Customer Number: Loop - ISBN: Nested Loop Here is the code I am using now. I am using i for the loop and j for the nested loop in STEP B of my script. =========================================== 'CREATE AN ADDITIONAL CUSTOMER Dim myNum, RowNum, RowCnt2, val2, total, i DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" RowCnt2 = DataTable.GetRowCount i = 1 DataTable.SetCurrentRow(i) ' Set row to one Do while Not i > RowCnt2 i=i+1 DataTable.SetNextRow MsgBox Datatable.Value("Customer_Num") Msgbox i Msgbox RowCnt2 If Not i > RowCnt2 then val2=datatable.Value("Customer_Num","Global") OracleFormWindow("Sales Order").SelectMenu "File->New" OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Order Information").OracleTextField("Customer Number").Enter val2 End If 'CREATE SECOND ISBN LIST DataTable.ImportSheet "C:\QOE Data - UAT1.xls" ,"Data" ,"Global" Dim j, RowCnt3, val3 RowCnt3 = DataTable.GetRowCount For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) ' datatable.getSheet("DataTable").setNextRow If Trim(DataTable("ISBN",dtGlobalSheet)) = "" Then j = j - 1 Exit For End If Next 'Define ISBN rows If RowCnt3 <> j Then RowCnt3 = j End If 'Loop through ISBN rows For j = 1 To RowCnt3 DataTable.SetCurrentRow(i) val3 = Datatable.Value("ISBN","Global") msgbox j If j = 1 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item").Enter val3 else If j < 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_"&i).Enter val3 else If RowCnt1 => 16 Then OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").InvokeSoftkey "DOWN" OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").SetFocus OracleFormWindow("Sales Order").OracleTabbedRegion("Line Items").OracleTextField("Ordered Item_15").Enter val3 end if end if End If Next 'EXIT APP msgbox i loop Browser("Browser").Page("Oracle Applications 11i").Sync Browser("Browser").Close ========================================== It isn't working correctly in my nested loop in STEP B (for ISBN). Any ideas?? Thanks! SBsteve
-->IF two TextBOxes are there in a "Form". -->A table contains some records which contains usernames & password.. -->What is the script we need to write using Descriptive programming concept...in QTP (simply DATA DRIVEN TEST SCRIPT OF QTP)?
How to enter table check points?
Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"
What are the main differences of qtp and win runner?
images are dynamically changes how to compare two images with out using the bitmap
What environment does qtp run in?
Explain in brief about the QTP Automation Object Model.