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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we call qtp test from another test using scripting. Suppose there are 4 tests and I want to call these tests in a main script. Is this possible in qtp?

731


For QTP Test Engineer, What is his contribution to the Project? Means, As as automation test engineer what is his role in the current project?

1825


Can any one tell me.......How the test engg's start testing in the compy environment.....real time tester PLSSSS help me i need in depth information regarding this...

1600


If you have two monitors one is of 19inch and the 2nd one is of 24inch,if you want to write same QTP script in both the two monitors is there any changes required in the script?

1666


1.Qtp suppots Unix& linx or not 2why qtp suppots shell script.

1777






How to add verification steps to tests?

9266


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1786


Explain the concept of how quicktest professional identifies object?

619


Did the scripts need lot of maintenance? If yes, why?

3408


How many types of actions are there in quicktest professional (qtp)?

626


How to make qtp understand the difference amongst the same type of objects .suppose there are 5 check boxes in a page and I have to choose the 2nd one, how to do that through script?

660


Hi, I am working on microsoft infopath forms..It is standalone form..(not dotnet or web.) . I am not able to indentify any objects in it.. I am currently using active accessibility in the macro for the same but its execution is too slow.. Kindly help in case you have better solution.

2509


In the Hybrid framework, data can access the database, excel file, XML etc. Is it true?

655


How do you convert manual test cases to automated test cases?

667


How to connect to a database?

671