This is a migrated thread and some comments may be shown as answers.

Telerik Test Studio Not finding Element : End of Stream encountered before parsing was completed

3 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ashvin
Top achievements
Rank 1
Ashvin asked on 27 Dec 2016, 03:27 PM
Overall Result: Fail
------------------------------------------------------------
'12/26/2016 11:42:28 PM' - Executing test: 'WPFTest', path: 'WPFTest.tstest.'
'12/26/2016 11:42:28 PM' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2016.3.928.0'.
'12/26/2016 11:42:28 PM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'12/26/2016 11:42:36 PM' - Using 'C:\Users\sujanah\SBCNE_1.2\SBCNE_PATH\bin\Debug\SBCNE.PATH.exe' application.
'12/26/2016 11:42:37 PM' - 'Pass' : 1. LeftClick on Item0Textboxview
'12/26/2016 11:42:39 PM' - 'Pass' : 2. Type 'Admin' into TextBoxUserNameTextbox
'12/26/2016 11:42:41 PM' - 'Pass' : 3. LeftClick on Item1Textboxview
'12/26/2016 11:42:43 PM' - 'Pass' : 4. Type 'Admin1' into PasswordBoxPasswordPasswordbox
'12/26/2016 11:42:44 PM' - 'Pass' : 5. LeftClick on LoginTextblock
'12/26/2016 11:45:03 PM' - 'Fail' : 6. LeftClick on DashboardTextblock
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
End of Stream encountered before parsing was completed.
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.Wpf.WpfProxy.ExecuteSLCommand(SilverlightCommand cmd)
   at ArtOfTest.WebAii.Wpf.WpfProxy.GetAllVisualTrees()
   at ArtOfTest.WebAii.Wpf.WpfWindow.RefreshVisualTrees()
   at ArtOfTest.WebAii.Wpf.WpfWindow.EnsureStateIsCurrent()
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'12/26/2016 11:45:03 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'12/26/2016 11:45:03 PM' - Overall Result: Fail
'12/26/2016 11:45:03 PM' - Duration: [2 min: 27 sec: 67 msec]
------------------------------------------------------------
'12/26/2016 11:45:03 PM' - Test completed!

3 Answers, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 29 Dec 2016, 09:03 AM
Hello Ashbin,

Was this test running successfully before? If so are there any updates to your application since you face the thrown exception? Have you tried to re-record the failing step and execute the test again?

Please let me know some further details on the issue to continue the investigation. Thanks in advance! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Ashvin
Top achievements
Rank 1
answered on 29 Dec 2016, 09:39 AM

Hi Elena,

Thanks for quick response.

I was not able to execute the steps single time..

It is WPF App,steps was trying to find element but not able to get it.. after checking logs,we found mentioned error..

 

Please help us ASAP.

Regards 

Ashbin 

0
Elena
Telerik team
answered on 29 Dec 2016, 12:11 PM
Hi Ashbin,

You could try to locate the button using the highlight option in the recorder and locate the element in the DOM tree from the Elements menu. Then manually add an action step against the recorded element. 

Would it be possible to create a sample wpf application with the same control to replicate the issue? This will allow us to debug the occurred behavior and find out what might be causing it. 

Which is the version of Test Studio you have in place? 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Ashvin
Top achievements
Rank 1
Answers by
Elena
Telerik team
Ashvin
Top achievements
Rank 1
Share this question
or