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