Micro Focus QTP (UFT) Forums

Full Version: Automation testing of Outlook :
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i test my Outlook operations using QTP 9.2?
If i recording any operation in Outlook using QTP, it doesn't record it.
Is it recognizing objects as Win object and winstatusbar etc.?
If not then please first launch QTP and then your Outlook application
What part of outlook are you trying to test ? There are different ways to test Outlook in different ways. Some of them are custom controls and you may have to write extended functions(methods) to work with them.
Are you trying to test Outlook? OR Are you trying to use its COM interface to perform common operations such as sending mail ?

It will be good if you can write in details what you need to do with it.
Hi All,

Thanks for urs replay.

1. My company have provides some special Outlook Plug ins/Add-on in Tool bar.
2. It is not identify the objects.
3. it is recording recognize the objects, even i use the object spy.

my script like this:

Code:
Window(" Microsoft Outlook").WinObject("Standard").Click 39,9
Window("Message (HTML)").WinObject("RichEdit20WPT").Click 42,10
Window("Message (HTML)").WinButton("Send").Click
Window("Message (HTML)").Dialog("Microsoft Office Outlook").WinButton("OK").Click
Window("Message (HTML)").WinObject("RichEdit20WPT").Type "bpailla@conrep.com"
Window("Message (HTML)").WinButton("Send").Click
Dialog("Internet Security Warning").WinButton("Yes").Click
Window("Microsoft Outlook").Close


Thanks & regards,
Bhaskar
Hi All,

Thanks for urs replay.

1. My company have provides some special Outlook Plug ins/Add-on in Tool bar.
2. It is not identify the objects.
3. it is not recording recognize the objects, even i use the object spy.

my script like this:
Code:
Window(" Microsoft Outlook").WinObject("Standard").Click 39,9
Window("Message (HTML)").WinObject("RichEdit20WPT").Click 42,10
Window("Message (HTML)").WinButton("Send").Click
Window("Message (HTML)").Dialog("Microsoft Office Outlook").WinButton("OK").Click
Window("Message (HTML)").WinObject("RichEdit20WPT").Type "bpailla@conrep.com"
Window("Message (HTML)").WinButton("Send").Click
Dialog("Internet Security Warning").WinButton("Yes").Click
Window("Microsoft Outlook").Close


Thanks & regards,
Bhaskar
Hi All,

My outlook script like this:

Code:
Window(" Microsoft Outlook").WinObject("Standard").Click 39,9
Window("Message (HTML)").WinObject("RichEdit20WPT").Click 42,10

Please help me on this.
Thanks in advance,
Bhaskar