ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Testing  >>  Automation Testing  >>  QTP
 
 


 

 
 WinRunner interview questions  WinRunner Interview Questions
 Load Runner interview questions  Load Runner Interview Questions
 QTP interview questions  QTP Interview Questions
 Test Director interview questions  Test Director Interview Questions
 Rational TestSuite interview questions  Rational TestSuite Interview Questions
 Silk Test interview questions  Silk Test Interview Questions
 Automation Testing AllOther interview questions  Automation Testing AllOther Interview Questions
Question
How can I replace all the text from the QTP script with 
some other text. 
Is there any replace all function in QTP
Any one can help me
 Question Submitted By :: Rayudu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me
Answer
# 1
I could not find any function for this. We can do by this 
script.

Const ForReading = 1, ForWriting = 2, ForAppending = 8
   Dim fso, f
   Set fso = CreateObject("Scripting.FileSystemObject")
   Set f = fso.OpenTextFile("C:\ais\Totally Data.doc", 
ForWriting, True)
   f.Write "Hello world!"
   f.Close

this will replace everything in the given file and write 
the text ta u hav given.
 
Is This Answer Correct ?    0 Yes 0 No
Aiswaryan
 
  Re: How can I replace all the text from the QTP script with some other text. Is there any replace all function in QTP Any one can help me
Answer
# 2
adding to above answer, we can record the actions like Ctrl+H
which pops up a dialog box where you can enter 
'Text to find' and 'Replace with'strings.here you can
parameterise the strings which you want.
 
Is This Answer Correct ?    0 Yes 0 No
Kr
 
 
 

 
 
 
Other QTP Interview Questions
 
  Question Asked @ Answers
 
For ex we are doing automate testing in that can we do some part of application recording, some part descriptive programing and some part general VB scripting like that ............. Satyam3
what r the executing modes in QTP  2
can any one tell me what is process metrics and what is product metrics if possible give me example. Thank You  2
What is Object Spy in QTP? vsworx10
What is the difference Between LowLevel and Normal Recording Modes?  1
How many function you use in your application? Polaris1
Hi, It is HR question. What are the qualities you like and dislike in your Project Manager? TCS2
How can we see the analog recording steps in QTP..the Steps are stored in a track file with an extension .dat..how can we open the file..  1
What is the main differece between QTP 9.0 and 9.2 VeriSign1
How u perform exception handling in QTp,what is other name for ths Lehman-Brothers1
How to manage a drag drop event in the qtp  1
how to generate numbers in between to numbers suppose numbers in between 500 to 1000 in sequencies using vbscript  1
Where we save all scripts in the QTP Ordain-Solutions3
What is Reusable component is QTP...Anybody can answer it..Thanks in advance... Siemens5
what are build and version plz explain why nomber changes in build and version?  3
what is object repository?  3
I have to pass all the test cases into gmail userid and password using functions please give me code thanks have anice and greate day  2
What is the difference between Call to Action and Copy Action? Satyam1
how can you describe the basic flow of automation with conditional and programmatic logic? Ordain-Solutions1
What is the Limitations of Testing ? TCS3
 
For more QTP Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com