how can i replace any text from the qtp script with some
anothere text



how can i replace any text from the qtp script with some anothere text..

Answer / aiswaryan

'Replace(expression, find, replacewith)
reptext=replace("Good Morning", "Morning", "Evening")
msgbox reptext

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

What is the entry and exit point of automation testing

2 Answers   Infosys,


If there are 100 checkboes in a page then how can we select 10th & 11th & 14th chexkboxes at once through descriptive programing in QTP using vb script. Please send the answers...

5 Answers   NTT Data,


please write a script to find the text in a application. Note: i dont know the location of that text where it is located. just like negative testing.

2 Answers   BSL,


when i am running login page i got test run error? Please give me the script to handle run time exceptions. It's urgent for me.

4 Answers  


How you are maintaining shared object repository in your team or your project?help me plz

1 Answers   CTS,






Hi guys, Please suggest some thing these points are correct???, Is UFT 12 and QTP outdated ??? and also VBscript is also deleted/Removed from QTP ???? Javascript is added latest and tool name is called JFT ??? From this year ??

2 Answers  


If i entered 2 columns and 4 rows inputs in DDT Like Mango fruit, Banana Fruit, Brinjal Veget, Carrot Veget.. . My Q is How to get the 2nd column value for corresponding 1 column input in 3rd row ie, ( i need to get "veget" in messge box @ run time

5 Answers   CTS,


Q) Please any body can help me how we can create descriptive programming if the application is not ready i.e we don't have unique property of object ? note:build not ready means we can't use object spy in build to get unique property .

2 Answers  


What are they Advantages and Disadvantages in QTP 9.2?

1 Answers   Infotech,


Please give me the steps to carry out datadriven in QTP8.2

2 Answers  


How to retrieve the property of an object?

1 Answers  


What are output values and why they are used ?

0 Answers  


Categories