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

Error encountered during execution.

11 Answers 129 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joakim Nilsson
Top achievements
Rank 1
Joakim Nilsson asked on 18 May 2010, 09:17 PM
Hi,

Getting the following error when running tests. Tried running them several times with the same result. Steps of the test is executed but all steps fail showing an exclamation mark.

From log:

--------------------------------------------------
'2010-05-18 22:14:01' - Error encountered during execution.
--------------------------------------------------
'2010-05-18 22:14:01' - Error inside the callback listener. Error: System.Runtime.Serialization.SerializationException: Det går inte att hitta sammansättningen System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
   vid System.Runtime.Serialization.Formatters.Binary.BinaryAssemblyInfo.GetAssembly()
   vid System.Runtime.Serialization.Formatters.Binary.ObjectReader.GetType(BinaryAssemblyInfo assemblyInfo, String name)
   vid System.Runtime.Serialization.Formatters.Binary.ObjectMap..ctor(String objectName, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
   vid System.Runtime.Serialization.Formatters.Binary.ObjectMap.Create(String name, String[] memberNames, BinaryTypeEnum[] binaryTypeEnumA, Object[] typeInformationA, Int32[] memberAssemIds, ObjectReader objectReader, Int32 objectId, BinaryAssemblyInfo assemblyInfo, SizedArray assemIdToAssemblyTable)
   vid System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryObjectWithMapTyped record)
   vid System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectWithMapTyped(BinaryHeaderEnum binaryHeaderEnum)
   vid System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   vid System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   vid System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   vid ArtOfTest.WebAii.Messaging.Process.PipeCommand.FromBinary[T](Byte[] bytes)
   vid ArtOfTest.WebAii.Messaging.Process.PipeCommunication.ReadCommandFromPipe[T](PipeStream pipe)
   vid ArtOfTest.WebAii.Design.Execution.RunnerController.CallBackListener()
--------------------------------------------------
'2010-05-18 22:14:01' - Aborting....


Any ideas?

/Joakim

11 Answers, 1 is accepted

Sort by
0
Missing User
answered on 19 May 2010, 12:13 AM
Hello Joakim,

Thanks for the post and trial of WebUI Studio, and I'm sorry you ran into this problem. We are currently investigating this, so please bare with us. Could you please confirm that you are using Swedish version of Windows and Internet Explorer?

All the best,
Nelson Sin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Joakim Nilsson
Top achievements
Rank 1
answered on 19 May 2010, 07:02 AM
Yes I am using the swedish version of both OS and IE.

/Joakim
0
Missing User
answered on 20 May 2010, 07:00 PM
Hello again Joakim,

Thanks for the confirmation, we are still looking into this and will definitely get back to you when we find something on this.

Greetings,
Nelson
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Sebastian
Top achievements
Rank 1
answered on 02 Jul 2010, 10:29 AM
I get the same error.
First time I tried I got the broken pipe error, after which I rebooted my system to try again. Next try I run into this.
The test seems to execute as intended but when it finishes the last step this is displayed instead of 'test ok'.
I'm also in sweden, however I'm on an english version of windows 7 -64 and IE.
0
Missing User
answered on 02 Jul 2010, 04:52 PM
Hi Sebastian,

Thanks for posting here with your information.

If you could please check out this video on configuring Windows for WebUI. While it is recorded over Vista, it should be mostly the same except please disable UAC completely. Also, please try running WebUI with a user account that is part of the Admin Group for the machine.

And if you can please verify that IE 32 bit is being launched instead of IE 64 bit. You can do this in the first Navigate to test step for your test and change it's Pause property to 'After'. The test will pause after IE is launched and you can click the '?' icon, then 'About Internet Explorer' which should say 64 bit if it is IE 64.

Greetings,
Nelson Sin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Sebastian
Top achievements
Rank 1
answered on 05 Jul 2010, 08:46 AM
Thanks for the reply

I did what you suggested, followed the steps to disable some security in IE and the UAC. The test seems to run successfully until it's finished and I get this error:

--------------------------------------------------
'2010-07-05 09:39:29' - Error encountered during execution.
--------------------------------------------------
'2010-07-05 09:39:29' - Error attempting to ping runner. Error: System.IO.IOException: Pipe is broken.
   at System.IO.Pipes.PipeStream.WinIOError(Int32 errorCode)
   at System.IO.Pipes.PipeStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
   at System.IO.Pipes.PipeStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.WriteCommandToPipe(PipeCommand command, PipeStream pipe, Boolean waitForDrain)
   at ArtOfTest.WebAii.Design.Execution.RunnerController.Ping()
--------------------------------------------------
'2010-07-05 09:39:29' - Aborting....

This is sad cause out of all 5-6 automated testing programs I have tried so far, WebUI seems to be the best one in many ways, except the fact that the test doesn't pass even if it's run successfully...
Any other ideas? :s

Thanks
Sebastian



0
Sebastian
Top achievements
Rank 1
answered on 05 Jul 2010, 12:20 PM
Hello again :)

I just uninstalled Visual Studio 2010 BETA (for which my trial period had run out) and installed Visual Studio 2010 professional full version instead. Next time I ran a test in WebUI test studio all the steps successfully passed and were marked with the previously missing green tick sign.
This seems to have solved my issue, thought I'd let you know in case someone else has the same problem.

Sebastian
0
Konstantin Petkov
Telerik team
answered on 05 Jul 2010, 12:25 PM
Hello Sebastian,

That's good to know! Thanks for sharing and hope this helps someone else.

We're glad that resolves the problem on your end and please let us know if you need further assistance.

Greetings,
Konstantin Petkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Artem
Top achievements
Rank 1
answered on 16 Mar 2011, 12:15 PM
Hello Konstantin,

I'm getting this error with the following details on computer with VS 2010 professional full version installed

------------------------------------------------------------
'3/16/2011 1:05:01 PM' - Error encountered during execution.
------------------------------------------------------------
'3/16/2011 1:05:01 PM' - Error inside the callback listener. Error: System.Runtime.Serialization.SerializationException: AssemblyResolveEvent handlers cannot return Assemblies loaded for reflection only. ---> System.IO.FileLoadException: AssemblyResolveEvent handlers cannot return Assemblies loaded for reflection only.
   at System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   at System.Reflection.Assembly.Load(String assemblyString)
   at System.DelegateSerializationHolder.GetDelegate(DelegateEntry de, Int32 index)
   --- End of inner exception stack trace ---
   at System.DelegateSerializationHolder.GetDelegate(DelegateEntry de, Int32 index)
   at System.DelegateSerializationHolder.GetRealObject(StreamingContext context)
   at System.Runtime.Serialization.ObjectManager.ResolveObjectReference(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 ArtOfTest.WebAii.Messaging.Process.PipeCommand.FromBinary[T](Byte[] bytes)
   at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.ReadCommandFromPipe[T](PipeStream pipe)
   at ArtOfTest.WebAii.Design.Execution.RunnerController.CallBackListener()
------------------------------------------------------------
'3/16/2011 1:05:01 PM' - Aborting....


Do you have any ideas?
0
Stoich
Telerik team
answered on 16 Mar 2011, 02:15 PM
Hello Artem,
    Does your test include Logical statements? this sounds like a know problem that's already logged as a bug.

Here's the workaround:
Go to where Test Studio is installed (example for default 64bit OS):
C:\Program Files (x86)\Telerik\WebUI Test Studio 2010.3\Bin\
and edit the config file ArtOfTest.Runner.exe.config to exclude the .Net Framework4 runtime - it should look like example bellow:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup>
    <!-- <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> -->
    <supportedRuntime version="v2.0.50727" sku=".NETFramework,Version=v3.5" />
  </startup>
</configuration>

Once you've saved this you shouldn't get this error anymore, let me know.


All the best,
Stoich
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
David
Top achievements
Rank 1
answered on 09 Jun 2011, 03:29 AM
I am using the latest version (Test Studio 2011.1) and this fixed my issue.
As soon as I removed the logical IF, or changed the config file, it fixed it.
Tags
General Discussions
Asked by
Joakim Nilsson
Top achievements
Rank 1
Answers by
Missing User
Joakim Nilsson
Top achievements
Rank 1
Sebastian
Top achievements
Rank 1
Konstantin Petkov
Telerik team
Artem
Top achievements
Rank 1
Stoich
Telerik team
David
Top achievements
Rank 1
Share this question
or