Forum Discussion

Chaste01's avatar
Chaste01
Occasional Contributor
8 years ago

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 

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    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?

    • Chaste01's avatar
      Chaste01
      Occasional Contributor

      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's avatar
        tristaanogre
        Esteemed Contributor

        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.