How to create log file in qtp?
Answers were Sorted based on User's Feedback
Answer / naveen
Using CreateTextFile method of File System Object property.
we can create a log file and write the data into it.
Sub CreateAfile
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("c:\testfile.txt", True)
MyFile.WriteLine("This is a test.")
MyFile.Close
End Sub
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / keerthykannan
Dim fso,objLogFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set objLogFile = fso.OpenTextFile ("C:\Log" &var
&".txt",2,true)
objLogFile.Writeline(time)
objLogFile.Close
| Is This Answer Correct ? | 2 Yes | 1 No |
Hello everyone! I am just writing a small test for a windows application. I have a problem with a text output value. The value i am trying to catch is presented in a scrollable textbox. When the text is too long, only a portion of it gets captured. Do you have any experience with this?
How should i find out whether the cursor is moving horizantally. when tabbing continuously
I have the script like this: Browser("Login").Page ("Application").Frame("ScopeFrame").Link("DC3701737 (Active)").Click in which the value "DC3701737" will get changed and i have to use the same value in so many places. I got the value "DC3701737" in to a variable(Say x). Now if i want to pass the variable in to link object .. how? Browser("Login").Page("Application").Frame ("ScopeFrame").Link(x).Click Is it possible to pass any variable into a link object .. so, that the application will select that link automatically? If ur not able to understand, pls let me know.
what r the executing modes in QTP
Which environments does qtp support?
Explain about Standard output value, Text output value, database o/p value, Xml O/p value, Xm o/p Value
Tell about automation object model(Aom) in qtp?
how to identify the objects if application consists of objects that have same properties.
How do u connect database through QTP tell me both Ms Access and SQL
hi i want write code for "test engineer" in this i want write reverse how ca plz let me know through script
How many add-ins comes by default with quicktest professional (qtp)?
I want to test advanced Java applications what kind of add- ins I have to install?