Telerik Forums
Testing Framework Forum
1 answer
102 views
I've run into a problem where my tests can run x number of times in a row, with 0 changes in my code / silverlight application.  Sometimes the tests will pass, sometimes they will fail, and it's never a consistent failure, it's always something different each time.  I'm trying to debug why the tests sometime fails, and I can't really pinpoint a good way to debug it.  Can someone share some pointers on the best way to debug all these tests and why they are so flaky?

Thanks
Stoich
Telerik team
 answered on 28 May 2011
1 answer
101 views
Is webaii is still adaptable to silverlight version 4.
Anthony
Telerik team
 answered on 26 May 2011
1 answer
123 views
Hello, 
 
In the most recent build 2011.1.502 I seem to be getting this error on our Script Execution machines (Running the Visual Studio Test Agents) whenever a Dialog appears. This is causes the Agent process to stop. I've attached the TRX file that logged the Run.

The DialogMonitor is currently set  to (settings.UnexpectedDialogAction = UnexpectedDialogAction.DoNotHandle;)

Error:
Exception: NullReferenceException
Message: Object reference not set to an instance of an object.
Stack Trace:
   at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleUnexpectedDialog(Window dialogWindow)
   at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.HandleDialog(Window dialogWindow)
   at ArtOfTest.WebAii.Win32.Dialogs.DialogMonitor.AutomationEvent_OnWindowOpened(Object sender, WindowEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.OnWindowOpened(Window window)
   at ArtOfTest.WebAii.Win32.UIAutomationWindowMonitor.HandleAutomationEvent(Object sender, AutomationEventArgs e)
   at MS.Internal.Automation.InvokeHandlers.InvokeClientHandler(Delegate clientCallback, AutomationElement srcEl, AutomationEventArgs args)
   at MS.Internal.Automation.ClientSideQueueItem.Process()
   at MS.Internal.Automation.QueueProcessor.DrainQueue()
   at MS.Internal.Automation.QueueProcessor.WaitForWork()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   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()






Stoich
Telerik team
 answered on 26 May 2011
3 answers
100 views
Is webaii testing framework suitable for Automating windows application ??
Anthony
Telerik team
 answered on 25 May 2011
3 answers
95 views
Does WebAii supports Image content testing? we can do image comparison but is there a way to get the contents of the image through webaii automation??

Thanks,
Naveen
Stoich
Telerik team
 answered on 25 May 2011
5 answers
270 views
Getting the Error message while executing the test cases on the build server, what could be the problem for this error as the tests are executing good till yesterday morning we are geting this problem from yesterday evening.
Looks getting the problem while taking the snapshot.

executing fine while execute from other systems on the build platform.

Getting the Error message :

Overall Result: Fail
System.OutOfMemoryException: Out of memory.

Server stack trace:
   at System.RuntimeMethodHandle._SerializationInvoke(IRuntimeMethodInfo method, Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
   at System.Runtime.Serialization.ObjectManager.DoFixups()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
   at System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage.FixupForNewAppDomain()
   at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at ArtOfTest.WebAii.Design.Execution.ITestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTest(Test testcase, Settings settings, String testBinaryFolder, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'04/05/2011 16:40:05' - Overall Result: Fail
'04/05/2011 16:40:05' - Duration: [0 min: 0 sec: 0 msec]
------------------------------------------------------------
Konstantin Petkov
Telerik team
 answered on 23 May 2011
4 answers
100 views
Hello,

When I'm trying to run my firefox in invisible mode and I'm calling NavigateTo, I get a NullReferenceException:

Settings mySettings = new Settings(BrowserType.FireFox, @"C:\browserlog\");
Manager myManager = new Manager(mySettings);         
myManager.Start();
myManager.LaunchNewBrowser(BrowserType.FireFox, true, System.Diagnostics.ProcessWindowStyle.Hidden);
myManager.ActiveBrowser.NavigateTo("http://www.google.com");


If I choose ProcessWindowStyle.Normal everything works fine. Could you please advise, if and how it is possible to run Firefox in invisble mode?

Many Thanks
Thomas
Konstantin Petkov
Telerik team
 answered on 23 May 2011
7 answers
98 views
In the latest version download dialog processing seems to be broken even in older browsers :(

Run this piece of code in IE8: 
[TestFixture]
public class Class1
{
 
    [Test]
    public void A() {
        new Manager(false).Start();
 
        var m = Manager.Current;           
        m.LaunchNewBrowser(BrowserType.InternetExplorer);
 
        var b = m.ActiveBrowser;
 
        var h = new DownloadDialogsHandler(b, DialogButton.SAVE, "C:\\PQZHoldings.csv", m.Desktop);
 
        HtmlAnchor a = b.Find.ByExpression<HtmlAnchor>("id=ctl00_MainPageLeft_MainPageContent_ExportHoldings1_LinkButton1", "tagname=a");
        a.Click(false);
        h.WaitUntilHandled(10000);                       
    }
}

File download prompt appears and then closes. In 10 seconds I get a timeout error.
I still have to use the old ArtOfTest 2.0 release...



Alexey Ivanov
Top achievements
Rank 1
 answered on 20 May 2011
1 answer
71 views
Hello!

On one of my machines I got this exception when ran tests in Firefox.
I analyzed this method using Reflector and understood that you search FF installations in the registry.

For some reason under HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox\ I had two keys: 3.6.13 and 3.6.17.
I fixed the problem by manually deleting 3.6.13 key. 

I suggest you to add more sanity checks when analyzing keys!
Anthony
Telerik team
 answered on 19 May 2011
1 answer
137 views
Hello,

I'm having an issue where the ActiveBrowser.Capture() feature is returning an Image where the Content window of the Browser is Black. (The Browser Navigation URL and Tool bars are visible)

Here is the Code I'm using:
 
var bitMap = ActiveBrowser.Capture();
var fileName = TestContext.TestName + "_" + DateTime.Now.ToString("MM_dd_yyyy_HH_mm_ss_ffff");
fileName = Path.ChangeExtension(Path.Combine(directory.FullName, fileName), ".jpeg");
bitMap.Save(fileName, ImageFormat.Jpeg);

I've attached what one of the Results looks like.

These Scripts are running on Window 7 VM's.
Stoich
Telerik team
 answered on 19 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?