Telerik Forums
Testing Framework Forum
5 answers
690 views

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

Boyan Boev
Telerik team
 answered on 21 Mar 2016
3 answers
89 views

I have problems with the "Testing_Framework_2015_3_1314_2_Free.exe" the process stuck at the beginning.

Could you provide an offline msi or where could I download it?

Thanks,
Roman 

Ivaylo
Telerik team
 answered on 16 Mar 2016
2 answers
228 views

I have downloaded the latest version of the Testing Framework and I am trying to create my first test a WPF application.

I get a the following error when I try to run the test.

Test Name: TestMethod1
Test FullName: UnitTestProject1.UnitTest1.TestMethod1
Test Source: c:\Dev\PARM\UnitTestProject1\UnitTest1.cs : line 15
Test Outcome: Failed
Test Duration: 0:00:00.0284715

Result Message:
Test method UnitTestProject1.UnitTest1.TestMethod1 threw exception: 
System.NullReferenceException: Object reference not set to an instance of an object.
Result StackTrace: at UnitTestProject1.UnitTest1.TestMethod1() in c:\Dev\PARM\UnitTestProject1\UnitTest1.cs:line 16

 

My test method is:

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.TestTemplates;

using ArtOfTest.WebAii.Wpf;

namespace UnitTestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            WpfApplication wpfApp2 = Manager.Current.LaunchNewApplication(@"C:\Dev\PARM\PARM\bin\Debug\PARM.exe");
        }
    }
}

Ivaylo
Telerik team
 answered on 14 Mar 2016
6 answers
473 views
How to use Specflow with Telerik Testing Framework,
We have Silverlight Application and Want to Test End to End Test Automation?

I have following:-
Telerik Testing Framework.
Silverlight Application running on Browser.
Spec flow.
VS 2012 and NUnit framework.

Could you please provide example or Jing video is really helpful.

Thanks


Boyan Boev
Telerik team
 answered on 09 Mar 2016
6 answers
125 views
I am attempting to manually configure Firefox browser as outlined here: http://docs.telerik.com/teststudio/getting-started/configure-your-browser/Firefox. The instructions call for installation of Telerik Test Studio Automation and Telerik Test Studio Recorder extensions. I have the first one that I installed a while ago, I do not have the second one. As of this writing I cannot find any Telerik authored extensions through Mozilla Add-on manager. I may be failing at Google-fu but it looks like those extensions are no longer available. What is the status of those extensions? Can you point me to where they are available? Or are there updated instructions?

Also, is there support for Firefox Developer Edition? What configuration do I use to call it my script's default browser?
Ivaylo
Telerik team
 answered on 07 Mar 2016
6 answers
218 views
I "accidentally" reinstalled my Telerik testing framework from 2014.1.410 to 2014.2.618, and now my existing Visual Studio xunit tests complain it can't find the ArtOfTest.WebAii version 2014.1.410.

I tried updating the references in my solution but it's still complaining. I figured I've missed updating some dependencies, but I don't have the knowledge/time to chase them down.

Is there a way to reinstall the 2014.1.410 framework? I tried the old 2014.1.410 installer, but I think it grabs the newer version of the framework.
Ivaylo
Telerik team
 answered on 07 Mar 2016
5 answers
231 views
I am attempting to enter a file name and click the save button for a save file dialog in a WPF application with the following 

         SaveAsDialog saveDlg = SaveAsDialog.CreateSaveAsDialog( Manager.ActiveApplication, DialogButton.SAVE,  @"C:\Temp\TelerikTestStudioTestDatabase" );
         Manager.DialogMonitor.AddDialog( saveDlg );
         Manager.DialogMonitor.Start();

         //Enter the code that triggers the dialog here...

         saveDlg.WaitUntilHandled( 30000 );
         Manager.DialogMonitor.Stop();
      
When the test executes I get:

'1/15/2016 1:12:18 PM' - 'Fail' : 11. [CodedStep] : CreationDialog
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[CodedStep] : CreationDialog'.
InnerException:
System.TimeoutException: Timed out waiting '30000' msec. for any dialog to be handled '1'
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilAnyHandled(IEnumerable`1 dialogs, Int32 handleCount, Int64 timeoutMilliseconds, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 handleCount, Int32 timeout, Boolean resetHandleCount)
   at ArtOfTest.WebAii.Win32.Dialogs.BaseDialog.WaitUntilHandled(Int32 timeout)
   at TestStudio.CreateNewTestDatabase.CreateNewTestDatabase_CodedStep() in C:\....
Plamen
Telerik team
 answered on 03 Mar 2016
4 answers
1.0K+ views

Hi!

Like the title says, I have a problem with deleting Text of a WPF textbox. I tried using

element.KeyPress()
and
element.User.KeyPress()
The element is the Textbox.

I could add new text with

element.User.TypeText()
, but the other two methods don't work. Is there any possibility to fix this?

 

Greetings and thanks for help,

Max

Ivaylo
Telerik team
 answered on 25 Feb 2016
1 answer
168 views

Using the Telerik testing framework, I am able to locate, and interact with, standard WPF controls in my app. However I cannot use the same methods to find Telerik elements.

It does say on the Telerik Testing Framework web page that the framework has native support for WPF Telerik controls, so I imagine I'm missing something obvious.

The error I get when trying to use:

var grid = myApp.MainWindow.Find.byName<RadGridView>("GridName");

is:

"The type 'Telerik.Windows.Controls.RadGridView' cannot be used as type parameter 'T' in the generic type or method 'ArtOfTest.WebAii.Silverlight.VisualFind.ByName<T>(string)'. There is no implicit reference conversion from 'Telerik.Windows.Controls.RadGridView' to 'ArtOfTest.WebAii.Controls.Xaml.IFrameworkElement'."

I've seen others using the Testing Framework to find Telerik elements, but I can't work out how to do it myself.

Thanks in advance.

Boyan Boev
Telerik team
 answered on 25 Feb 2016
1 answer
209 views

Hi!

I have a problem: I want to check in a coded UI test, whether elements are visible or not. In WPF, they are declared as visibility=hidden, so a user couldn't see them. But the framework handles those elements as silverlight FrameworkElement. Silverlight only knows visibility=visible or collapsed. hidden is read as visible. Any idea how to fix this?

 

Thanks for help,

Max

Elena
Telerik team
 answered on 22 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?