This is a migrated thread and some comments may be shown as answers.

Old format or invalid type library exception

5 Answers 531 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
matt
Top achievements
Rank 1
matt asked on 09 Feb 2016, 09:42 PM

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

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 12 Feb 2016, 11:59 AM
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
 
0
matt
Top achievements
Rank 1
answered on 12 Feb 2016, 02:00 PM

Hi Boyan,

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

0
Boyan Boev
Telerik team
answered on 15 Feb 2016, 01:32 PM
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
 
0
matt
Top achievements
Rank 1
answered on 16 Mar 2016, 06:22 PM

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

Thank you

0
Boyan Boev
Telerik team
answered on 21 Mar 2016, 11:09 AM
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
 
Tags
General Discussions
Asked by
matt
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
matt
Top achievements
Rank 1
Share this question
or