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 Posted / aiswaryan
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 ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the file extension of the code file in qtp?
Define Error Pane of UFT?
How to handle the exceptions using recovery secnario manager in quicktest professional?
Hi,All How to create a link in excel sheet using qtp
How to carry out bit map check points in QTP
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
How QA specialist can identify when programmatic descriptions are useful?
Have you done batch testing in qtp? If yes how you are doing?
what is the hierarchy to use properties in descriptive programming
I AM TRYING PORT CODE FROM WINRUNNER TO QTP AND DON'T KNOW TO HOW TO CHECK THE ERRORS. IN WINRUNNER FUNCTION RETURNS EIGHER 0 OR -1 AGAINST WHICH RESULT CAN BE MADE PASS OR FAIL BUT IN QTP I DON'T SEE FUNCTIONS RETURNING ANY VALUE. APPRECIATE IF ANYONE COULD HELP ME CONVERTING FOLLWOING WINRUNNER CODE TO QTP. set_window("Customer Service"); rc = web_obj_get_text("Summary","#2","#4",ssn,""," ",1); if (rc != E_OK) { report_msg("[GetSubscriberSummary] Could Not get subscriber SSN; rc = "&rc); myRC = rc; } else { ssn = StripBlank(ssn); if (DEBUG) report_msg ("[GetSubscriberSummary] SSN: "&ssn); }
What are the key points to create a framework in QTP for oracle forms?
What is data driver in qtp?
How will we compare the texts in the two word files using QTP writing the script in Descriptive Programming. Thanks
How many types of actions are there in quicktest professional?
What will be happen if i load object repository at run time, but it has already associated.