ActiveBrowser.RefreshDomTree(); FramesCollection framesCollection = ActiveBrowser.Frames; int frameIndexWithSLApp = GetFrameIDwithSilverlightApp(framesCollection); SilverlightAppsList listOfSLApps = framesCollection[frameIndexWithSLApp].SilverlightApps(); SilverlightApp SLApp = listOfSLApps[0];
[Test]public void SampleWebAiiTest(){// Launch a browser instanceManager.LaunchNewBrowser(BrowserType.InternetExplorer);// The active browserActiveBrowser.NavigateTo("http://localhost/HTMLTestpage.htm");HtmlMainScreen homepage = new HtmlMainScreen(ActiveBrowser.Find);homepage.TextField1.Text = "Automation Test";homepage.OkButton.Click();Assert.AreEqual("Automation Test", homepage.Div1.InnerText, "Elements are not equal");}HtmlMainScreen attached.
The test pass but I get the following exception. I am runing Visual Studio 2010 on Windows 7 (64bit) and using jetbrains resharper 7.0 to run the unit test
System.Threading.ThreadAbortException
Thread was being aborted.
at
ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.AsyncListenerThreadEntry() at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
Assert.AreEqual("'this' is the text", img.Alt);Expected string length x but was x-1. Strings differ at index 0. Expected: "'this' is the text" But was: "this' is the text"
No matter how long I wait.
Problem signature:
Problem Event Name: APPCRASH
Application Name: JetBrains.ReSharper.TaskRunner.CLR4.MSIL.exe
Application Version: 7.1.25.234
Application Timestamp: 50a26a13
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7601.17965
Fault Module Timestamp: 506dcae6
Exception Code: c000041d
Exception Offset: 000000000000bccd
OS Version: 6.1.7601.2.1.0.274.10
Locale ID: 3079
Additional Information 1: 577c
Additional Information 2: 577cd5470d84ea1c2b40baf699d1553f
Additional Information 3: 1099
Additional Information 4: 10997aaa278c368b022feba3068a6d6c
I found the same issue at http://youtrack.jetbrains.com/issue/RSRP-276146, but without any solution.
However, I´m translating webtests from selenium and WatiN, but this Problem only occurs with the Telerik Testing Framework.
I hope you can help me with this.