Old format or invalid type library exception

6 posts, 0 answers
  1. matt
    matt avatar
    10 posts
    Member since:
    Feb 2016

    Posted 09 Feb Link to this post

    We have a suite of approximately 60 automated tests that pass when ran individually. However, when attempting to run the entire suite, we will typically get 20 - 30 tests that pass, then a seemingly catastrophic exception occurs that causes all remaining tests to fail with the same exception. I searched the existing forum threads and did not see any other references to this error or type of behavior. 

    Below is the output of one of these tests failures.

     

    Test Name:  CreateBankAccounts
    Test Outcome:   Failed
    Result Message:
    Test method Keefe.KeepTrak.Testing.UI.AcceptanceCriteria.AdministrationSetupForAccountsRulesAndAccountingEventsFeature.CreateBankAccounts threw exception:
    ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
    InError set by the client. Client Error:
    System.Runtime.InteropServices.COMException (0x80028019): Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT))
       at mshtml.HTMLDocumentClass.IHTMLDocument2_get_frames()
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFramesInternal(IHTMLDocument2 topDocument, String parentID, Dictionary`2 frames)
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFrames(IHTMLDocument2 parentDocument)
       at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
    BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'http://wkcn3817y52.centric.com/Banking/Security/LogOff',ClientId:'Client_f95022b4-38ac-4e33-bad9-8d38e6aca6c9',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80028019): Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT))
       at mshtml.HTMLDocumentClass.IHTMLDocument2_get_frames()
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFramesInternal(IHTMLDocument2 topDocument, String parentID, Dictionary`2 frames)
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFrames(IHTMLDocument2 parentDocument)
       at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
    InnerException: none.
     
    TestCleanup method Keefe.KeepTrak.Testing.UI.AcceptanceCriteria.AdministrationSetupForAccountsRulesAndAccountingEventsFeature.ScenarioTearDown threw exception. ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
    InError set by the client. Client Error:
    System.Runtime.InteropServices.COMException (0x80028019): Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT))
       at mshtml.HTMLDocumentClass.IHTMLDocument2_get_frames()
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFramesInternal(IHTMLDocument2 topDocument, String parentID, Dictionary`2 frames)
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFrames(IHTMLDocument2 parentDocument)
       at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
    BrowserCommand (Type:'Information',Info:'ElementRectangle',Action:'NotSet',Target:'ElementId (tagName: 'html',occurrenceIndex: '0')',Data:'',ClientId:'Client_f95022b4-38ac-4e33-bad9-8d38e6aca6c9',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80028019): Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT))
       at mshtml.HTMLDocumentClass.IHTMLDocument2_get_frames()
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFramesInternal(IHTMLDocument2 topDocument, String parentID, Dictionary`2 frames)
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFrames(IHTMLDocument2 parentDocument)
       at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
    InnerException: none.
    .
    Result StandardOutput: 
    -> warning: The previous ScenarioContext was not disposed.
    Given I am logged in as active user 'Bob' with roles: [Administrators] and accounting event groups: [Financial Analysts]
    -> error: ExecuteCommand failed!
    InError set by the client. Client Error:
    System.Runtime.InteropServices.COMException (0x80028019): Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT))
       at mshtml.HTMLDocumentClass.IHTMLDocument2_get_frames()
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFramesInternal(IHTMLDocument2 topDocument, String parentID, Dictionary`2 frames)
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFrames(IHTMLDocument2 parentDocument)
       at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
    BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'http://wkcn3817y52.centric.com/Banking/Security/LogOff',ClientId:'Client_f95022b4-38ac-4e33-bad9-8d38e6aca6c9',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x80028019): Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT))
       at mshtml.HTMLDocumentClass.IHTMLDocument2_get_frames()
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFramesInternal(IHTMLDocument2 topDocument, String parentID, Dictionary`2 frames)
       at ArtOfTest.InternetExplorer.IEFramesCollection.BuildFrames(IHTMLDocument2 parentDocument)
       at ArtOfTest.InternetExplorer.IECommandProcessor.SetTargetDocument(BrowserCommand& request, IHTMLDocument2 document)
       at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommandInternal(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
    InnerException: none.
     
    When I click the [Administration >> Bank Accounts] navigation menu item
    -> skipped because of previous errors
    Then I am taken to the [Bank Accounts] page
    -> skipped because of previous errors
    When I click the [Create] button
    -> skipped because of previous errors
    Then I am taken to the [Create Bank Account] page
    -> skipped because of previous errors
    When I enter the following into the [Create Bank Account] form:
      --- table step argument ---
      | Account Name     | Description                 | Bank Name    | Account Number | Routing Number | Address     | City    | State | Zip Code |
      | 'Bank Account 1' | Offender trust fund account | Bank Account | 11111111       | 222222222      | 123 Main St | Anytown | MO    | 63105    |
    -> skipped because of previous errors
    And I click the [Save] button
    -> skipped because of previous errors
    Then I am taken to the [Bank Accounts] page
    -> skipped because of previous errors
    And I see the following bank account:
      --- table step argument ---
      | Account Name     | Description                 | Bank Name    | Account Number | Routing Number | Address     | City    | State | Zip Code |
      | 'Bank Account 1' | Offender trust fund account | Bank Account | 11111111       | 222222222      | 123 Main St | Anytown | MO    | 63105    |
    -> skipped because of previous errors

  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 12 Feb Link to this post

    Hi Matt,

    Thank you for contacting us.

    We have seen such error in very old versions of Test Studio? What version of Test Studio / Testing framework do you use?

    Looking forward to hearing from you.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  3. matt
    matt avatar
    10 posts
    Member since:
    Feb 2016

    Posted 12 Feb in reply to Boyan Boev Link to this post

    Hi Boyan,

     We're using version '2015.2.723.0' of the ArtOfTest.WebAii.

  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 15 Feb Link to this post

    Hello Matt,

    Please upgrade to our latest version (1314) and give that a try.

    You can download it from your Telerik account.

    Let me know the results.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
  5. matt
    matt avatar
    10 posts
    Member since:
    Feb 2016

    Posted 16 Mar in reply to Boyan Boev Link to this post

    We've implemented the latest version (1429) and it does seem to have resolved this issue.

    Thank you

  6. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 21 Mar Link to this post

    Hello Matt,

    Happy to hear that.

    If you need further assistance please let us know.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top