How to create runtime property for an object?
Answers were Sorted based on User's Feedback
Answer / arunsingh
Hello Mr Jaydev,
There is no such kind of method (Set ROProperty)in QTP.
| Is This Answer Correct ? | 7 Yes | 0 No |
By using "SetToProperty" you can do that
for example if any object property is changing during runtime our test will fail, to avoid that we can use SetToProperty.
e.g. if any WebEdit "name" property is changing then
Browser("xxx").Page("yyy").WebEdit("zzz").SetToProperty("name", "new value of name")
and this value is valid for that run session only (during runtime) after that that property will remain the property in the object repository
if any queries plz mail me
a.thirumalareddy@gmail.com
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / prasad
there are three Methods like
For Test Object(TO)
1. GetToProperty()
2. SetToProperty()
For Runtime Object
1.GetRoProperty()
First thing is that every object are treated as the Test
Object(TO) by QTP.
ex.
Suppose u r working with "OK" button. so all the properties
and logical name of the "OK" button will be Stored in
OR(Obj. Repos.)Here it will be treated as TO.When QTP
execute the script it will search the "Ok" button based on
its properties and logical name.In this case it will be
treated as RO. So i don't this that it is needed to create a RO.
Please make me Clarify against it........if any
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / vistaraj
i agree to thirumala reddy.
to create runtime property for an object, we have to use
SETTOPROPERTY as following
'Set the Text property for 7 as Server
Window("Calculator").WinButton("7").SetToProperty
("text","Server")
Now check if the object has created runtime property or not
by GETTOPROPERTY
strText=Window("Calculator").Winbutton("7").GetToProperty
("Text")
msgbox "strText"
See that "Server" is displayed
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / narendra
we can use
browse().page().setToproperties().
we can set property and a value to an object
| Is This Answer Correct ? | 0 Yes | 1 No |
Answer / jayadev acharam
Example:
Browser("abcd").SetROProperty("abs_x",158)
| Is This Answer Correct ? | 0 Yes | 8 No |
Hi I have exp in manual testing and planning to move in automation testing qtp(9.2).So can help me how to automate customer relationship management tool using qtp and vb script this tool already developed so how can I test it whatever maintaining by development team like documents,various options just give the whole life cycle thanks in advance
Hi all , I am new at QTP I want a sample script to check validation messages(For java script or VB script) for login page with for web based application.. Any one can Help. I have to complete it in two days I need urgent help.. Ex. if I want to check mail.yahoo.com 1 > If user doed not exist it display "Username does not exist" 2> if invalid Uname and password then it display" Invalid Uname or pass" 3> Loing Sucssessfully. I want to check this types of application by using data table to give values of username and password.. Thanks
How will you compare keyword and expert view?
Have you done batch testing in qtp? If yes how you are doing?
What are the views available in quicktest professional (qtp)?
Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.
suppose by navigation i went from 1st page to 5th page write a script for coming from any page to the 1st page abd by executing where the page may be . it will come to 1st page give the code using gmail. give me mail id so that i can under this answer with out any doubt
How to get Links count in an web application,without descriptive programming?
why we are using environment variables instead of global variables?
How u perform exception handling in QTp,what is other name for ths?
MANUAL TESTING, AUTOMATION TESTING QTP,QC , Load Runner , SELNEIUM ONLINE TRAINING
how to upload an excel sheet to quality center?