How can you Open a Notepad and How can you write the test
Resuts in Notepad by Using QTP?

Answer Posted / king

Set a=createobject("Scripting.filesystemobject")
Set b=a.opentextfile("E:\raju\1.txt",2) {1-reading mode, 2-
writing mode, 8- appending mode }
While b.atendofline<>true
y=b.readline ---- Read the line on particular
mentioned fine

b.writeline "I Love QTP" --- write the line on particular
mentioned file

Wend


i think it's working proerly, if u have any quarries plz
let me know
raju.gudla@gmail.com
9823257761

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?

1419


Sql questions to find second max salary and how to use joins

955


can u explain relative path architecture framework in qtp?

1556


What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?

2259


Dear Friends, I having total 3+year experience in manual testing including automation testing QTP, if i am attending any interview what kind of question will i get? please help me out

1573






What is the parameterization?

571


How does you test a weblink which is changing dynamically?

544


What are the types of environment variables in qtp?

540


How to add object to object repository in qtp9.0 Suppose for brower yahoo home page

1423


How to use debug tools?

2188


What is the use of Debug Viewer?

1478


Have you done batch testing in qtp? If yes how you are doing?

497


Hi, How Accessibility checkpoint in QTP can be implemented in the test script?

1601


How we can import data from database?

643


Explain advantages and disadvantages kdf?

514