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

How to attach a file to TD?

651


hi i want license key for qtp 9.2 pls its adjust product name : quick test professional locking code :8 - 54A6A license type : seat license maintenance number : 88888888-8888 pls send license key to my email id borusu.ramkumar@gmail.com

3699


An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?

568


what is the frame work in J-meter?

1598


How to record a qtp script ?

550






I used child objects to get the no of weblist present in the weblist.now i need to select the items present in each weblist ?How to do so

2254


What is business process testing(bpt) in qtp?

691


What is text/text area checkpoint?

562


Can we run multiple QTP scripts one after the other without manual intervention? How?

594


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3006


Difference between test object and run time object?

588


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1503


can i compare two databases using QTP ?

1875


Why we use QTP ,We can use other tools like WR OrSilktest What r the options in Qtp that WR and Swilktest Does not have.

1851


Could anyone help me for the below scenario: i am using the descriptive programming for my account, in which we have to generate the contract in the MS-word. when i generate this doc, we need to click on enable macros to continue further. but i am unable to make qtp to click on this. if anybody faced the problem like this??? pls help to get it resolved? Thanks in advance

1405