Ask a Question

Windows10 operating system with Oulook2013

Chaste01
Occasional Contributor

Windows10 operating system with Oulook2013

I'm having a problem on Windows10 operating system with Oulook2013.  For your information, I'm also running the exact same code on our Win2012R2 server with Outlook2013 and no problem occurs, everything is working fine.

 

   function isMessageReceived2010(accountName, senderEMail, eMailSubject)

  {

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

          var NamespaceMAPI = OutlookApplication.GetNamespace("MAPI");

 

 

In execution, it stops (crashes) at :  var OutlookApplication = Sys.OleObject("Outlook.Application");

Error:  JScript runtime error

Could you please help us out and find a solution to this important problem ?

 

Regards

Stéphane 

10 REPLIES 10
tristaanogre
Community Hero

Re: Windows10 operating system with Oulook2013

Any more details on the JScript error?  Usually there's more... check the "Additional Info" pane in the log.

Without that... this is just a guess... but is it a matter of bit-version? Do you have the 32-bit or 64-bit version of Outlook installed on your Windows 10 box?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Chaste01
Occasional Contributor

Re: Windows10 operating system with Oulook2013

Outlook is 64 bits

 

Additional log :

 

Possible reasons:
 - An error or warning occurred during the test run. See the preceding log entries to locate and identify the error.
 - The test run was stopped manually.
 - The test run was terminated as a result of the Runner.Halt method call.
tristaanogre
Community Hero

Re: Windows10 operating system with Oulook2013

64 bits in both environments? Because, on the 2012 R2, if the Outlook is 32 bit, that could explain why it's working there but not on your Windows 10.

The other possibility could be with elevation of access.  Double check whether or not TC instance on your Windows 10 machine is running as admin.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Chaste01
Occasional Contributor

Re: Windows10 operating system with Oulook2013

The 2012 R2 is in fact running Outlook 2013 - 32 bit.

Please note that I've tried running the test on another Windows10 machine, this time with Outlook 2013 - 32 bit and I still have the same error. 

 

function isMessageReceived2010(accountName, senderEMail, eMailSubject)

{

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

 

 

It stops on this line of code. with Outlook 2013 - 32 and 64 bit. 

This seems to occur only if running on Windows10 !

 

tristaanogre
Community Hero

Re: Windows10 operating system with Oulook2013

OK... so, on your Windows 10 box, have you removed the 64 bit and reinstalled the 32 bit versions of Outlook?

Secondly, what about permissions as I mentioned in my last message?


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Chaste01
Occasional Contributor

Re: Windows10 operating system with Oulook2013

Like previously indicated, I had tested with Outlook 2013 - 32 bit also,  and I had reproduced the exact same error has with the 64 bit version.  The code that we are running and that is causing this problem was taken from your web site (https://support.smartbear.com/viewarticle/9022/).   Like said, it works fine except when working on Windows10.

 

For permissions, how can I  check whether or not TC instance on my Windows 10 machine is running as admin ?

tristaanogre
Community Hero

Re: Windows10 operating system with Oulook2013

Your log entry you posted earlier from the Additional Info looks like the Additional Info from the NEXT log entry... do you have the Additional Info for the JScript runtime error log entry?

 

As for how to tell... best way to see if it's a problem is to close TestComplete, right click on your shortcut, select "Run as Administrator" and try again and see if your problem is fixed... if it is, then that was the problem and you aren't running as admin... if it is not fixed, then the cause is something else which, since we don't have a lot of info to go on with the error, is all guess work right now.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
Chaste01
Occasional Contributor

Re: Windows10 operating system with Oulook2013

I've attached an image of the error message box.

I've also executed TestComplete as administrator with the exact same results.

tristaanogre
Community Hero

Re: Windows10 operating system with Oulook2013

A quick google search shows that you're not the only one dealing with issues with instantiating the Outlook.Application COM object on a Windows 10 box.  There are some solutions out there concerning turning off UAC and such so those are some things to try as well.  Perhaps someone else has a better idea because, for whatever reason, I'm not wrapping my brain cells around this today.

 

Sorry. 😞

 


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
cancel
Showing results for 
Search instead for 
Did you mean: