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

how to parameterise a test with data base table or excel sheet?

1 Answers   FCG,


Can anybody post some real time scenario in qtp? please its very urgent.

0 Answers   Kanbay,


What r the different filters in defect in quality center

0 Answers  


What is the extension of script and object repositary files?

2 Answers  


What is the difference between QTP and WinRunner? Why do you choose only QTP for automation among remaing tools like Rational robot and silk test? Write the VBscript for any functionality in your project ? What is the cost of QTP ? If you entered into yahoo mail with your valid user name then you will get FOR EXAMPLE , " welcome to krishna " on the top of inbo page , how can you test it in QTP? What type of testing you can do, when we gave you 5 screens and how can you test that application? What type of framework you are using in your company and explain it?

0 Answers   CTS,


What are the different kinds of test steps?

0 Answers  


what is the difference between Automation object model(AOM) and test object model(TOM)

2 Answers   UHG,


WHAT IS DIFFERENCE B/W QC 9.2 AND QC 10.0

1 Answers   SoftTech,


What is the use of "Define new test object" in QTP 9.1 When should we use? Explain?

4 Answers  


how can i do QTP Certification can any 1 tell me . How 1 approch and who to approch

7 Answers   ADP, Hydus,


the question was on what techonlogy u been working on i said VB then he asked me the addin for VB in Qtp?

4 Answers   BirlaSoft,


Can anyone tell me what is the equivalant method to be used in QTP for "web_obj_get_text" used in winrunner. My winrunner code is below. set_window("Confirm Add Subscriber"); rc = web_obj_get_text("Add subscriber:","#8","#1",orderID,"The order number is","\.",1); basically I need to retrieved the "orderID " from a string present in 8th row & 1st col of table "Add subscriber"

1 Answers  


Categories