cancel
Showing results for 
Search instead for 
Did you mean: 

problem with TestComplete and Outlook 2010

SOLVED
Highlighted
Occasional Contributor

problem with TestComplete and Outlook 2010

Hi

I am having problem with TestComplete and MS Outlook 2010.

I am trying out the example in TC Document.  It only go as far as the 3 line, where it calls Sys.OleObject("Outlook.Application"); and TC ran into runtime error as below.

Any idea how to fix it?

 

Thanks

Mary

 

 

function testOutlook2010() 

{

var OutlookApplication = Sys.OleObject("Outlook.Application");

}

 

 

 

JScript runtime error.

Server execution failed, ClassID: {0006F03A-0000-0000-C000-000000000046}

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: problem with TestComplete and Outlook 2010

Use WaitProcess() to check if Outlook is already running, if it is, get the process object and go about your business
If it is not running, only then do a Sys.OleObject call against the Outlook.Application
This behavior has been on and off with different versions of Outlook over the years
Simply put, you can only have ONE instance of Outlook running

Cheers
Lino

View solution in original post

4 REPLIES 4
Highlighted
Community Hero

Re: problem with TestComplete and Outlook 2010

Use WaitProcess() to check if Outlook is already running, if it is, get the process object and go about your business
If it is not running, only then do a Sys.OleObject call against the Outlook.Application
This behavior has been on and off with different versions of Outlook over the years
Simply put, you can only have ONE instance of Outlook running

Cheers
Lino

View solution in original post

Highlighted
Community Manager

Re: problem with TestComplete and Outlook 2010

Hi @mttsow,

 

In addition to Lino's advice, please read the Note for Microsoft Office users section of the Sys.OleObject Property article - it may help:

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/sys/oleobject-propert...

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Highlighted
Contributor

Re: problem with TestComplete and Outlook 2010

Hi @mttsow ,

 

please try quitting your outlook application before starting the executing your code.

 

Kind Regards,

Sathish Kumar K

Highlighted
Community Manager

Re: problem with TestComplete and Outlook 2010

HI @mttsow,

 

Was the original issue resolved? Please let us know if you need any more assistance.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Script Wanted
A new challenge is here!

Create a function to drag one element to another for the TechCorner tag!

Will you dare to take the challenge?


Scripts created in July:
- Passing custom command-line arguments as a test parameter
Top Kudoed Authors