How do you change Logical Name of the object in test script?



How do you change Logical Name of the object in test script?..

Answer / nanda

by using SetTOproperty u can change logincal name of test
object..

For example..in first build there is a OK button..and u
reorded on OK button..

but in modified build it changed to Yes..and this
modificatio is only for single build...in this situation u
need to change that button name OK to Yes

window("XXXX").winbutton("OK").SetTOProperty "Text","Yes"

like this u can change any property of test object..and
remember that u can not a property value of Run Time object.

If any Queries..

Nanda.dreddy@gmail.com

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More QTP Interview Questions

How to Import data from a ".xls" file to Data table during Runtime.

1 Answers   Crea,


we have 10 automation scripts. how to call them from one main script.

2 Answers  


How to call Datable values in the QTP program. exp: I have two parameters like Email id and Password this two i would like to add multiple entries in the datable to use it. What is the difference between Gobal/Action datatable

3 Answers  


What is environment variable in qtp and why to use it?

0 Answers  


can any one please tell me which is the best institute in Bangalore to learn QA (crash course)? Thanks

0 Answers   iFocus,






Hi any body can tell me the in detaled information about Description.Create() thanks in advance

2 Answers  


Plz explain about object propeties in object identification? means.. explain about 1. mandatory properties.2. assestive properties 3. ordinal properties.

3 Answers   TCS,


can u put checpoints for moving images

2 Answers   Accenture,


Can any body explain me how to prepare QTP frame work with an example?? alexander.gdk@gmail.com

1 Answers  


how to compare two excell sheets by using vbscript??

2 Answers  


What In-string function will do?

1 Answers  


Hi All As per the requirements i have to copy the data from word document to excel sheet using the QTP Note : Data in word document is in tabular format i.e there is 80 rows and 5 columns table Can any body provide code for this ? Thanks in advance Regards Test123Test

1 Answers  


Categories