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

What are the different ways to invoke an application using QTP?

0 Answers  


Explain quicktest professional (qtp) testing process?

0 Answers  


How to insert a check point to a image to check enable property in QTP?

1 Answers  


Hi All, I am 4 yrs experieced in manual testing and new to automation tool QTP. Iam trying to learn it thru online and material i have.I am able to understand but unable to trace out which method or function to be used where necessary in VB Script. How come we know the functions or methods to be used to open a window when clicking on button or so...Pls suggest me.How can i proceed further to apt VB Script.

0 Answers  


How does qtp identify objects in the application?

0 Answers  






What is SQL injection?

2 Answers   CTS,


Where can i get the QTP tutorials. I wanna move to automation testing. Is there any book or URL, where i can find the source to read...

1 Answers  


what is testing process with QTP in organization

1 Answers   Tech Mahindra,


How to export data in excelsheet to qtp without using datatable.

4 Answers  


what is the use of descripting programming?

8 Answers   Ordain Solutions,


WHICH functionalities of QTP used in Banking project?

2 Answers   Tarang, Wipro,


QTP Data Table Having 10 records with 10 to 15 fields(lets say).now i want to get alternative records from datatable.pls can any one answer it?

3 Answers   Syntel,


Categories