Xstream.Core dependancy issue in v0.2.1

Aug 19, 2011 at 2:27 PM

Hello,

I've just upgraded from 0.2.0 to 0.2.1, but am experiencing the exception below when using position based searching: 

myWindow = _myApp.GetWindow(SearchCriteria.ByAutomationId("MyWindow"), InitializeOption.NoCache.AndIdentifiedBy("MyWindow"));

It appears that the Xstream.Core.dll hasn't been rebuilt with White.Core.dll V0.2.1.

Unprocessed Documents: Xstream.Core.ConversionException : Could not load file or assembly 'White.Core, Version=0.2.0.0, Culture=neutral, PublicKeyToken=2672efbf3e161801' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  ----> System.IO.FileLoadException : Could not load file or assembly 'White.Core, Version=0.2.0.0, Culture=neutral, PublicKeyToken=2672efbf3e161801' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

at Xstream.Core.XStreamMarshaller.FromXml(String xml, IMarshalContext context)
at Xstream.Core.XStream.FromXml(String xml)
at Xstream.Core.FileXStream.FromFile()
at White.Core.ScreenMap.WindowItemsMap.Create(InitializeOption initializeOption, Point currentWindowPosition)
at White.Core.Sessions.WindowSession..ctor(ApplicationSession applicationSession, InitializeOption initializeOption)
at White.Core.Sessions.ApplicationSession.WindowSession(InitializeOption initializeOption)
at White.Core.Application.GetWindow(SearchCriteria searchCriteria, InitializeOption initializeOption)
...

Regards

Matthew

Coordinator
Aug 30, 2011 at 2:25 PM
Edited Aug 30, 2011 at 2:26 PM

Position based search is based on remembering the position of controls across test runs. This is done by storing it in XML files on the file system. The location of these files is under the directory as defined by value of WorkSessionLocation property in configuration. The default is current directory. You can also check the location by looking at the logs (also in console) when the tests start. You need to delete these files when you switch to new version of white. After first run they would be cached again.

WorkSessionLocationas