How can you Open a Notepad and How can you write the test
Resuts in Notepad by Using QTP?
Answers were Sorted based on User's Feedback
Answer / sushma
Result = "The test is passed"
Set a=createobject("Scripting.filesystemobject")
Set b=a.opentextfile("E:\raju\1.txt",2)
b.writeLine Result
b.close
Set a = Nothing
Set b = Nothing
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / kavitha
dim fso,f,x,y
Set fso=createobject("Scripting.filesystemobject")
Set f=fso.opentextfile("path of the file",1/2/8) {1-reading
mode, 2-writing mode, 8- read and write mode }
While f.atendofline<>true
x=f.readline 'it reads the value
In notepad file u have to put the data and attached to this
program to run the file morethan one time.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / 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 |
What type of VB script u had done in expert view?
How to retrieve the data from database?
After creating testcases, how do you start testing in QTP? what methodology will follow?
7 Answers Actran, American Well,
what is the diff b/w assistive and mandatary rules of object repository in QTP???
How do you invoke an application using the step generator in qtp?
what kind of frame work you used in your last project?
Explain the Different types of QTP test assets and their extensions?
explain structured testing? plz guys with exp. do answer
What is a programmatic description?
How QTP recognizes Objects in AUT?
how to capture (or) checkpoint for chineese or any other language except english using QTP in a web page. ( my application have 24 language, how to check those lanugages using QTP? is it possible). Please let me know
what is KEYWORD DRIVEN TESTING ? I M NOT ASKIN WHAT IS KEY WORD VIEW PLZ ANS FOR ONLY WHAT IS KEYWORD DRIVEN TESTING EXACTLY THANX