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

VB scrip has a special command named LBound, which returns the starting index of an arry. What are the possible indexes an array can start with? options are given below. and one only the correct answer. pl select it 1. any index 2. only even non-negative 3. only 0 4. any non-negative integer

1 Answers  


Explain about Hybrid Framework

2 Answers   IBM,


for example u can take ebay or plifcart online shoping web application--------- write acode in vbscript in qtp---- search box and write (iphone6)and click on go button then opened diff prise iphones in next page but u can select 30,000 to 90,000 list pls write code? 

2 Answers   FFASVA, Genpact, Wipro,


In my QTP script I have a word in notepad that ends in a question mark, for example... "father?" As part of my script I want to delete the question mark. How do you delete a character in notepad?

4 Answers  


What is the regular expression for Yahoo mail Inbox?

2 Answers  






How to differentiate the webedit field like user name and password? Please tell any other best answer is ther

3 Answers   Navis,


how to count spaces in a given string ex: "this is jagadeesh" in QTP with simple functional script

5 Answers   Cap Gemini,


What is chaild object method? When we will go for chaild object method? How to use chaild object method?

2 Answers  


hi friends can any one provide me the project in qtp because i have to attend to interview within one week atleast you provide the website address which provide the qtp projects

2 Answers  


Without using gui map editor we can recognize the application in winrunner ?

0 Answers  


what is the difference between quality and testing ?

2 Answers  


Could any one explain about the nested actions in QTP? This question is asked by Qualitree and CA

3 Answers   CA, Qualtree Solutions,


Categories