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
Answers were Sorted based on User's Feedback
Answer / 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 |
Hi Chaitu,
Actually what I want to do is : I want to display the
result of my script in the notepad text file rather than in
the test result window, as it is usually displayed.here I
had given one example of my script. You can take any
example.
I think for this we have to create one function, but this
is not clear to me where to call that function and what
will be the definition of the function.
Please let me know if still it is not clear to you.
Thanks,
Gaytri
| Is This Answer Correct ? | 0 Yes | 1 No |
What is the Difference between copy to action and call to action?
What are the most frequent errors you faced while executing your scripts?
Explain in brief about the QTP Automation Object Model.
What is the difference between CVS and VSS? Are you store QTP SCRIPT In VSS OR CVS? Where you store QTP Script?
1 Answers Brain Roots, Ordain Solutions,
We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario
Basically why we need testing?
Which object repository we use in real time and can we merge 2 object repostiory and how?
Is the qtp course will help to create a virtual object?
how to associate object repository during runtime in qtp
In a web application , there is a table of rows and coloums , i want to pickup the 1st row and 3rd coloums name (not data)how can any one explain
What is exact meaning of Database Checkpoint in QTP 9.2 and what are the different types of the database check points?
What is difference between design time and run time data table?