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



Hi Everybody, Can anybody please tell me the how to display the result of the QTP in the notepa..

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 Everybody, Can anybody please tell me the how to display the result of the QTP in the notepa..

Answer / gaytri

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

Post New Answer

More QTP Interview Questions

If the object property is changing very frequently, what was your approach?

2 Answers  


Apart from VB script What are the fundamental criteria to gain the knowledge to write QTP script without OR and recording ?

2 Answers  


What is the basic concept of quicktest professional (qtp)?

0 Answers  


Hi All, I am using QTP for one of the Desktop application which uses Keyboard inputs like 'Tab ,F7 etc' and also mouse (Click). After recording when i am running the Script ,it is not able to recognize the keyboard inputs like F7,Tab and mouse Click because of which either i have to skip that part or manually do the inputs. Please answer how can i make script more flexible so that it will recognize both keyboard and mouse operations.

3 Answers  


What are the types of Object Repository’s in QTP?

2 Answers   Crea,


I want two test two agents login for the flight website. Here is the scenario: I want to go through 1-3 rows for one user login and other user login I want to go though 3-5 rows. How would you set this up in qtp. Thank You

0 Answers   IBM,


how qtp identify two objects having same name, supose objects are in same page also with same name,specify spl feature.

5 Answers   IGT, Microsoft,


I would like to do some certifications in QTP. please suggese what kind of certifications can i do. I am currently put up at chennai. So please suggest some reputed centres where these courses are offered.

1 Answers  


How to capture screenshots of Exceptions/Errors during run- time?

12 Answers   Ordain Solutions,


suppose i login into gmail page after that i read all the messages (say 10 messages) i have to send (SAVE) the messages in Html,notepad and i have to replay(Compose) send the messages please give me the code and give mail id so that i can clear my question

0 Answers  


Where we can use the synchronization?

0 Answers  


How u send bugs to dev'lpment team all at once or one by one or waht is the process?

2 Answers   kenexa,


Categories