This question is locked. New answers and comments are not allowed.
Hello,
I am setting up a server to build TestStudio 2011 tests using TestStudio 2011 Runtime in a TFS environment - and run them using Microsoft Test Manager. See this thread for details of my environment.
I have setup TFS Build Service, created a build controller and build agent, and installed TestStudio 2011 Runtime (2011.1.712.0) on the server. I have also checked in the 2011 version of the project to TFS - and have created a build definition to build that project.
The test project builds with no problems on the local computer with the full version of TestStudio 2011 installed. However, when I try to build it using the build definition, I am getting many instances of each of the following errors:
Error #1:
Error #2:
The project was upgraded from WebUI 2010 Developer and mostly contains aii,resx and cs files - however, it does contain one tstest file (with associated resx).
The above errors do not appear when the 2010 version of the project is built with its corresponding build definition - and the build definition for the 2011 version is identical to the 2010 version except for the location and name of the solution file to be built.
Any ideas on possible causes of the above build errors?
Note that I have installed TestStudio 2011 Runtime and I believe I have configured it to run as an Execution Server. However, I am not sure if I have done everything I need to do - there is a dialog that comes up with three tabs - Machine configuration, Test Run information and Test Run results. I am not sure what (if anything) I should specify on that dialog for my situation (I only want to use it the Runtime for building and running the tests - do not need scheduling and other capabilities).
I also suspect that the second error may be a result of the first error - I see that none of the aii files are in the drop folder specified in the build definition after the build is complete (all the aii files are in the drop folder after a build using the 2010 build definition).
I need to get this up and running pretty quickly - so your prompt response to this would be very much appreciated.
Thanks,
Shashi
I am setting up a server to build TestStudio 2011 tests using TestStudio 2011 Runtime in a TFS environment - and run them using Microsoft Test Manager. See this thread for details of my environment.
I have setup TFS Build Service, created a build controller and build agent, and installed TestStudio 2011 Runtime (2011.1.712.0) on the server. I have also checked in the 2011 version of the project to TFS - and have created a build definition to build that project.
The test project builds with no problems on the local computer with the full version of TestStudio 2011 installed. However, when I try to build it using the build definition, I am getting many instances of each of the following errors:
Error #1:
<P>Attempting to load test
C:\Builds\93\Fusion_2010\FusionUITestBuild2011\Sources\Main\Tests\WeUiPoc\FusionUITestsPOC2011\FusionUITestsPOC\WebTest1.tstest</P>
<P>Error
in
line 1 position 373. Element
contains data from a type that maps to the name
'http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0:HtmlFindExpression'
. The
deserializer has no knowledge of any type that maps to
this
name. Consider
using
a DataContractResolver or add the type corresponding to
'HtmlFindExpression'
to
the list of known types -
for
example, by
using
the KnownTypeAttribute attribute
or by adding it to the list of known types passed to DataContractSerializer.</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
reader, String name, String ns, Type declaredType, DataContract&
dataContract)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String
ns)</P>
<P>at ReadKeyValuePairOfTechnologyTypeanyTypeHXKb0FV5FromXml(XmlReaderDelegator
, XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[]
)</P>
<P>at
System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator
xmlReader, XmlObjectSerializerReadContext context)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract
dataContract, XmlReaderDelegator reader)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
reader, String name, String ns, Type declaredType, DataContract&
dataContract)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String
ns)</P>
<P>at
ReadArrayOfKeyValuePairOfTechnologyTypeanyTypeHXKb0FV5FromXml(XmlReaderDelegator
, XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString ,
CollectionDataContract )</P>
<P>at
System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator
xmlReader, XmlObjectSerializerReadContext context)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract
dataContract, XmlReaderDelegator reader)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
reader, String name, String ns, Type declaredType, DataContract&
dataContract)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String
ns)</P>
<P>at ReadFindExpressionElementFromXml(XmlReaderDelegator ,
XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[]
)</P>
<P>at
System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator
xmlReader, XmlObjectSerializerReadContext context)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract
dataContract, XmlReaderDelegator reader)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
reader, String name, String ns, Type declaredType, DataContract&
dataContract)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String
ns)</P>
<P>at ReadElementDescriptorFromXml(XmlReaderDelegator ,
XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[]
)</P>
<P>at
System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator
xmlReader, XmlObjectSerializerReadContext context)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract
dataContract, XmlReaderDelegator reader)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
reader, String name, String ns, Type declaredType, DataContract&
dataContract)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String
ns)</P>
<P>at ReadArrayOfElementDescriptorFromXml(XmlReaderDelegator ,
XmlObjectSerializerReadContext , XmlDictionaryString , XmlDictionaryString ,
CollectionDataContract )</P>
<P>at
System.Runtime.Serialization.CollectionDataContract.ReadXmlValue(XmlReaderDelegator
xmlReader, XmlObjectSerializerReadContext context)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract
dataContract, XmlReaderDelegator reader)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
reader, String name, String ns, Type declaredType, DataContract&
dataContract)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
xmlReader, Int32 id, RuntimeTypeHandle declaredTypeHandle, String name, String
ns)</P>
<P>at ReadWebAiiTestFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext
, XmlDictionaryString[] , XmlDictionaryString[] )</P>
<P>at
System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator
xmlReader, XmlObjectSerializerReadContext context)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.ReadDataContractValue(DataContract
dataContract, XmlReaderDelegator reader)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
reader, String name, String ns, Type declaredType, DataContract&
dataContract)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializerReadContext.InternalDeserialize(XmlReaderDelegator
xmlReader, Type declaredType, DataContract dataContract, String name, String
ns)</P>
<P>at
System.Runtime.Serialization.DataContractSerializer.InternalReadObject(XmlReaderDelegator
xmlReader, Boolean verifyObjectName, DataContractResolver
dataContractResolver)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializer.ReadObjectHandleExceptions(XmlReaderDelegator
reader, Boolean verifyObjectName, DataContractResolver dataContractResolver)</P>
<P>at
System.Runtime.Serialization.XmlObjectSerializer.ReadObject(XmlDictionaryReader
reader)</P>
<P>at ArtOfTest.WebAii.Design.ProjectModel.Project.GetTestFromPath(String
testPath, LoadTestResult& result, Boolean reloading)</P>
Error #2:
<P>CreateAppointment.aii.cs(85,27): error CS1061:
'FusionUITestsPOC.Pages'
does
not contain a definition
for
'QAAUTOSYNC1228183918'
and no extension method
'QAAUTOSYNC1228183918'
accepting a first argument of type
'FusionUITestsPOC.Pages'
could be found (are you missing a
using
directive or an
assembly reference?)
[C:\Builds\93\Fusion_2010\FusionUITestBuild2011\Sources\Main\Tests\WeUiPoc\FusionUITestsPOC2011\FusionUITestsPOC\FusionUITestsPOC.csproj]</P>
The project was upgraded from WebUI 2010 Developer and mostly contains aii,resx and cs files - however, it does contain one tstest file (with associated resx).
The above errors do not appear when the 2010 version of the project is built with its corresponding build definition - and the build definition for the 2011 version is identical to the 2010 version except for the location and name of the solution file to be built.
Any ideas on possible causes of the above build errors?
Note that I have installed TestStudio 2011 Runtime and I believe I have configured it to run as an Execution Server. However, I am not sure if I have done everything I need to do - there is a dialog that comes up with three tabs - Machine configuration, Test Run information and Test Run results. I am not sure what (if anything) I should specify on that dialog for my situation (I only want to use it the Runtime for building and running the tests - do not need scheduling and other capabilities).
I also suspect that the second error may be a result of the first error - I see that none of the aii files are in the drop folder specified in the build definition after the build is complete (all the aii files are in the drop folder after a build using the 2010 build definition).
I need to get this up and running pretty quickly - so your prompt response to this would be very much appreciated.
Thanks,
Shashi