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 |
how to change the properties of object during run time . plz give the code using flight reservation
How to find Total no of Text Fields in the Page..Anybody please answer me..Thanks in Advance
What is operator in VB Script?
Sometimes my QTP scripts works fine and sometimes its not though I am using same shared Repository and am not doing any changes in it.Even though for descriptive programming also its works fine and sometimes it does not work.my application is pretty stable.Could anyone please answer why am facing these types of issue??
Approach for Installation,comaptibility,system testing
Synchronozation types in QTP
what is runmodes in QTP
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
What is the difference between a Test and a Business Component? Is it necessary to use Business Component while testing an application in the real time?
How to test a web application using QTP?there is no any .exe file in web app,then how we can take the application for testing
Hello, How can i capture first letter of any string using QTP. For ex.. i want "j" in the below string "john" could any one explain me? Is there any function for that?
What is standalone database?