Hi Everybody,
Can anybody please tell me the how to display the result of
the QTP in the notepad text file rather than in the QTP
result window.
Suppose this is my simple script:WHich will open the
notepad file and enter some text and then will change the
font then will calculate how much time has been taken.Now,
in this script i want to display the result in notepad file.
Dim s
Dim starttimer,endtimer,timeit
s="uyetuywqtywqte"
SystemUtil.Run "notepad","","Y:\",""
Window("Notepad").WinEditor("Edit").Type micCtrlDwn + "s" +
micCtrlUp
Window("Notepad").Dialog("Save As").WinEdit("File
name:").Set "test1"
Window("Notepad").Dialog("Save As").WinEdit("File
name:").Type micReturn
Window("Notepad_3").Type s
Window("Notepad_3").WinEditor("Edit").Type micCtrlDwn + "s"
+ micCtrlUp
starttimer=timer
Window("Notepad_3").WinMenu("Menu").Select "Format;Font..."
Window("Notepad_3").Dialog("Font").WinEdit
("Font:").Type "cou" + micDwn
Window("Notepad_3").Dialog("Font").WinComboBox
("Font:").Select "Courier"
Window("Notepad_3").Dialog("Font").WinEdit
("Font:").Set "Courier"
Window("Notepad_3").Dialog("Font").WinEdit("Font:").Type
micReturn
endtimer=timer
timeit=endtimer-starttimer
print(timeit)
Please also tell me where the function for the text file
result will be declared and where it should be called.
Thanks,
Gaytri
Answer Posted / chaitu.c
Hi
Gayatri
Your questions Good,But This is not clear,try to send
clearly.i will be try to answer the question
Ok
Bye
Chaitu.C
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is checkpoint in qtp?
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
What is the use of text output value in quicktest professional (qtp)?
How to connect to a database?
Where to use Property Let, Property Get, Property Set in UFT
What is the file extension of the code file in qtp?
how can you do retesting (datadriven test) using notepad amd by using functions NOTE u should not use datatable methods
How do you do batch testing in wr & is it possible to do in qtp, if so explain?
When to use descriptive programming?
How to data driven test for Win objects in QTP ?
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
How do we analyze the checkpoint results?
How many scripts did you have?
What Folder Structure following in Keyword Driven Frame work?
Which functionalities of QTP used in banking project?