Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9539

Quality Center Plugin Error: runTestSet.vbs(133, 5) Microsoft VBScript runtime error: ActiveX component can't create object: 'TDApiOle80.TDConnection'

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • qc-plugin
    • None
    • Windows Vista Enterprise SP2 x64
      Mozilla Firefox 4.0 & Internet Explorer 8
      Jenkins ver. 1.409
      qc plugin 1.0 (script runTestSet.vbs used is version fixed in issue #9267)

      ERROR trying to create the object TDApiOle80.TDConnection in Class QCTestRunner.

      Sub Class_Initialize
      errors = 0
      Set tdConnection = CreateObject("TDApiOle80.TDConnection")
      timestamp = CStr(Now)
      End Sub

      Error message reported is next:

      [TRUNK] $ cscript /nologo xxx\runTestSet.vbs http://xxx/qcbin pablo.garcia_hp.com ******** xxx xxx "xxx" Test1 qcreport-Test1-7.xml
      xxx\runTestSet.vbs(133, 5) Microsoft VBScript runtime error: ActiveX component can't create object: 'TDApiOle80.TDConnection'

      Cant create TDConnection Object

          [JENKINS-9539] Quality Center Plugin Error: runTestSet.vbs(133, 5) Microsoft VBScript runtime error: ActiveX component can't create object: 'TDApiOle80.TDConnection'

          Pablo García created issue -

          Romain Seguy added a comment -

          What are the QC and QTP versions used?

          Romain Seguy added a comment - What are the QC and QTP versions used?

          Pablo García added a comment -

          For QC the 10.0 and for QTP the 11.0

          Thanks!

          Pablo García added a comment - For QC the 10.0 and for QTP the 11.0 Thanks!
          Pablo García made changes -
          Description Original: ERROR trying to create the object TDApiOle80.TDConnection in:
            Sub Class_Initialize
              errors = 0
              Set tdConnection = CreateObject("TDApiOle80.TDConnection")
              timestamp = CStr(Now)
            End Sub
           
          Error message reported is next:

          [TRUNK] $ cscript /nologo xxx\runTestSet.vbs http://xxx/qcbin pablo.garcia_hp.com ******** xxx xxx "xxx" Test1 qcreport-Test1-7.xml
          xxx\runTestSet.vbs(133, 5) Microsoft VBScript runtime error: ActiveX component can't create object: 'TDApiOle80.TDConnection'

          Cant create TDConnection Object
          New: ERROR trying to create the object TDApiOle80.TDConnection in Class QCTestRunner.

          The code is next:

            Sub Class_Initialize
              errors = 0
              Set tdConnection = CreateObject("TDApiOle80.TDConnection")
              timestamp = CStr(Now)
            End Sub
           
          Error message reported is next:

          [TRUNK] $ cscript /nologo xxx\runTestSet.vbs http://xxx/qcbin pablo.garcia_hp.com ******** xxx xxx "xxx" Test1 qcreport-Test1-7.xml
          xxx\runTestSet.vbs(133, 5) Microsoft VBScript runtime error: ActiveX component can't create object: 'TDApiOle80.TDConnection'

          Cant create TDConnection Object
          Pablo García made changes -
          Description Original: ERROR trying to create the object TDApiOle80.TDConnection in Class QCTestRunner.

          The code is next:

            Sub Class_Initialize
              errors = 0
              Set tdConnection = CreateObject("TDApiOle80.TDConnection")
              timestamp = CStr(Now)
            End Sub
           
          Error message reported is next:

          [TRUNK] $ cscript /nologo xxx\runTestSet.vbs http://xxx/qcbin pablo.garcia_hp.com ******** xxx xxx "xxx" Test1 qcreport-Test1-7.xml
          xxx\runTestSet.vbs(133, 5) Microsoft VBScript runtime error: ActiveX component can't create object: 'TDApiOle80.TDConnection'

          Cant create TDConnection Object
          New: ERROR trying to create the object TDApiOle80.TDConnection in Class QCTestRunner.

            Sub Class_Initialize
              errors = 0
              Set tdConnection = CreateObject("TDApiOle80.TDConnection")
              timestamp = CStr(Now)
            End Sub
           
          Error message reported is next:

          [TRUNK] $ cscript /nologo xxx\runTestSet.vbs http://xxx/qcbin pablo.garcia_hp.com ******** xxx xxx "xxx" Test1 qcreport-Test1-7.xml
          xxx\runTestSet.vbs(133, 5) Microsoft VBScript runtime error: ActiveX component can't create object: 'TDApiOle80.TDConnection'

          Cant create TDConnection Object

          Romain Seguy added a comment -

          Unfortunately I have none of these two versions to test the VBS against it...

          Romain Seguy added a comment - Unfortunately I have none of these two versions to test the VBS against it...

          Pablo García added a comment -

          Hi,

          I found this post and maybe the cause is this:

          I recently helped someone who had the same problem, but with a VB Script application, executed with cscript.exe. This VB script application uses a 32-bit COM object and failed to run on a 64-bit OS. The error, Microsoft VBScript runtime error: ActiveX component can't create object: 'XXXXXX'.

          To fix the issue, the script must be executed with the right executable. There are two cscript.exe in the 64-bit OSes. One is located at %WINDOWS%\System32, and the second one is located at %WINDOWS%\SysWOW64.

          The one under System32, is a 64-bit version. The one under SysWOW64 is the 32-bit version. Run the VBS application using the 32-bit application.

          http://blogs.msdn.com/b/helloworld/archive/2007/12/12/activex-component-can-t-create-object-when-creating-a-32-com-object-in-a-64-bit-machine.aspx

          What do you think?

          Pablo García added a comment - Hi, I found this post and maybe the cause is this: I recently helped someone who had the same problem, but with a VB Script application, executed with cscript.exe. This VB script application uses a 32-bit COM object and failed to run on a 64-bit OS. The error, Microsoft VBScript runtime error: ActiveX component can't create object: 'XXXXXX'. To fix the issue, the script must be executed with the right executable. There are two cscript.exe in the 64-bit OSes. One is located at %WINDOWS%\System32, and the second one is located at %WINDOWS%\SysWOW64. The one under System32, is a 64-bit version. The one under SysWOW64 is the 32-bit version. Run the VBS application using the 32-bit application. http://blogs.msdn.com/b/helloworld/archive/2007/12/12/activex-component-can-t-create-object-when-creating-a-32-com-object-in-a-64-bit-machine.aspx What do you think?

          Romain Seguy added a comment -

          Thx for the pointer. I can try to add an option or a mechanism which will use the right cscript binary. Once I've done a patch, can you give it a try?

          Romain Seguy added a comment - Thx for the pointer. I can try to add an option or a mechanism which will use the right cscript binary. Once I've done a patch, can you give it a try?

          Pablo García added a comment -

          Thanks to you.
          Perfect, i can test your patch under my environment.
          But i'm trying to prove the current version in a x86 SO with the same version tools to be sure that it's is the cause.

          Regards.

          Pablo García added a comment - Thanks to you. Perfect, i can test your patch under my environment. But i'm trying to prove the current version in a x86 SO with the same version tools to be sure that it's is the cause. Regards.

          David del Rio added a comment -

          Not sure if you guys have already fixed this--but I have a fix which is working for me. I'm successfully running on a 64-bit OS. I'm unfamiliar with the process, so please contact me if you haven't already addressed the issue.

          David del Rio added a comment - Not sure if you guys have already fixed this--but I have a fix which is working for me. I'm successfully running on a 64-bit OS. I'm unfamiliar with the process, so please contact me if you haven't already addressed the issue.

            danielpetisme Daniel Petisme
            pgarcia Pablo García
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: