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 expansion of "MIC" in MICPASS (TEST ReportPAGE)
What is meant by virtual obj and Y do v need virtual obj configuration.
What is the Risk Analysis? Waht types of risk analysis are there?
How to handle Dynamically changing Objects in QTP?
How to get Traceability matrix from TD?
how can i add an action(external action) programmatically?
If we put all properties in mandatory and assistive list of Normal Identification, Do we still need Smart?
How can i count the list box elements in QTP ?using script plz explain me (Chandana)
Inserting a Call to Action is not Importing all columns in Datatable of globalsheet. Why?
Hi, i have a string like "INDIA". I need to display this string vertically in Msgbox?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
To which environments does quicktest professional supports?