The error:
Test method AgencyTestAutomation.RSSTest.RSS_SkillsTabAddChecklistScales threw exception: ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed! BrowserCommand (Type:'Action',Info:'NotSet',Action:'Click',Target:'ElementId (tagName: 'input',occurrenceIndex: '6')',Data:'',ClientId:'Client_a059478c-adc9-4943-a6db-cb91d0aa7f2d',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'') InnerException: System.Runtime.Serialization.SerializationException: End of Stream encountered before parsing was completed. at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run() 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 ArtOfTest.WebAii.Messaging.Process.PipeCommand.FromBinary[T](Byte[] bytes) at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.ReadCommandFromPipe[T](PipeStream pipe) at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId) at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request) ---> System.Runtime.Serialization.SerializationException: End of Stream encountered before parsing was completed.
Appears to be failing when I am clicking on an HtmlInputButton control, that causes the pop up browser window to be closed. It consistently fails on these two tests, and I have other tests with similar code. Any idea on what I can do to troubleshoot this issue?
8 Answers, 1 is accepted
The first, farily obvious thing to verify is that you're using the same build on all the machines. For example, this could happen if your development machine has 111.8.29.0 installed but the MSTest agent machine has 111.7.15 installed.
If that's not the problem, can you share with us the test that has the problem and tell us which test step is causing this error? We'd like to study it to see if we can reproduce this problem.
Cody
the Telerik team
Ok, that would be great! We'll standby for that update.
Kind regards,Cody
the Telerik team
Another thing to note is that I am running 16 tests, and two of them fail consistently with the same issue inregards to the button.Click(true) method. If I change the tests to use the button.MouseClick() they all pass, consistently.
I changed mstest to run just that one specific test and it still fails. Fails on three different agents, all agents have 111.8.29.0 version, they are three different Windows OS's and between IE7 and IE8. I get the same error. But if I change the test to use the MouseClick() it works.
I cannot duplicate it with my sample test page I was creating so I do not know where to go next from here.
I am going to have to revert back my versions back to .502 so I can demo this for others in my organization so is there anything that could be looked soon before I need to revert versions?
I apologize for the delay responding back to you.
Since we can't see and study the problem first hand we'll be unable to determine what is causing it. I am glad you found that HtmlInputButton.MouseClick seems to resolve the issue. I don't think there's anything we can learn even by watching the problem happen on your machine.
Cody
the Telerik team
Today I've updated Telerik Framework from version 2011 to 2013 and encountered the issue, mentioned in first post.
We have a lot of places in our project where we use HtmlInputSubmit.Click(true) and after update we get the following exception here:
ArtOfTest.WebAii.Exceptions.ExecuteCommandException was unhandled by user code
Message=ExecuteCommand failed!
BrowserCommand (Type:'Action',Info:'NotSet',Action:'Click',Target:'ElementId (tagName: 'input',occurrenceIndex: '9')',Data:'',ClientId:'Client_3158cd78-d9b8-4ecb-8001-1f39d2b9ddac',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'False',Response:'')
InnerException: System.Runtime.Serialization.SerializationException: End of Stream encountered before parsing was completed.
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
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.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at ArtOfTest.WebAii.Messaging.Process.PipeCommand.FromBinary[T](Byte[] bytes)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.ReadCommandFromPipe[T](PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
Source=ArtOfTest.WebAii
StackTrace:
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
at IFS.AF.UIControls.Context.ActivityReportPage.Close() in C:\QA_Telerik_MSpec\IFS.AF.UIControls\Context\ActivityReportPage.cs:line 581
at IFS.AF.UIControls.Tests.FixedFifo_New.Tc_AF_FF_017.<.ctor>b__5() in C:\QA_Telerik_MSpec\IFS.AF.UIControls\Tests\FixedFifo_New\Tc_AF_FF_017.cs:line 124
at Machine.Specifications.Utility.RandomExtensionMethods.InvokeAll(IEnumerable`1 actions)
at Machine.Specifications.Utility.RandomExtensionMethods.InvokeAll(IEnumerable`1 becauseActions)
at Machine.Specifications.Model.Context.EstablishContext()
InnerException: System.Runtime.Serialization.SerializationException
Message=End of Stream encountered before parsing was completed.
Source=mscorlib
StackTrace:
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
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.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at ArtOfTest.WebAii.Messaging.Process.PipeCommand.FromBinary[T](Byte[] bytes)
at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.ReadCommandFromPipe[T](PipeStream pipe)
at ArtOfTest.WebAii.Messaging.Process.BrowserRemoted.ProcessBrowserRequest(BrowserCommand command, String requestId)
at ArtOfTest.WebAii.Core.Browser.ExecuteCommandInternal(BrowserCommand request)
InnerException:
This issue I reproduced on several test machines, where I installed new Telerik version.
Browser type: IE8.
Do you have any ideas why this happens and how to solve it?
Thanks in advance,
Denis
I am sorry to hear that you are experiencing this issue.
Did you try the workaround suggested in a previous reply to use HtmlInputButton.MouseClick()?
If you continue to experience the same problem, we will need more details about that in order to come to the root of the issue. Please provide us with a copy of your test and if it is possible grant us access to your application so we can reproduce the issue on our end and give you a solution.
Looking forward to hearing from you.
Regards,
Velin Koychev
Telerik