Hi
Could it be that you build your solution with 3.2.1 and execute it with 3.3?
I definitly updated all Ranorex installations to releasde 3.3.2
Obvisiouly the problem is not the missing image resource files, but that the code for the compressed image will be generated differently.
When I opened the solution first time the code for images was migrated, which seems to be correct for reading the image out of the image resource file.
Code: Select all
CompressedImage GueltigBis_ScreenshotEmpty
{ get { return repo.IsagClient.Orte.mdifrmOrt.GueltigBisInfo.GetScreenshotEmpty(new Rectangle(0, 0, 4, 23)); } }
Also, the repository has been modified with an accessor for the images:
Code: Select all
/// <summary>
/// Gets the ScreenshotEmpty item image.
/// </summary>
/// <returns>The ScreenshotEmpty image.</returns>
[RepositoryImage("7c0f4f7a-eaa2-4180-ad3e-b8fa4b84dcc6")]
public CompressedImage GetScreenshotEmpty()
{
return GetImage("7c0f4f7a-eaa2-4180-ad3e-b8fa4b84dcc6");
}
/// <summary>
/// Gets the ScreenshotEmpty item image.
/// </summary>
/// <param name="cropRect">The bounds of the sub-image in <paramref name="image"/> to return.</param>
/// <returns>The cropped image.</returns>
[RepositoryImage("7c0f4f7a-eaa2-4180-ad3e-b8fa4b84dcc6")]
public CompressedImage GetScreenshotEmpty(System.Drawing.Rectangle cropRect)
{
return GetImage("7c0f4f7a-eaa2-4180-ad3e-b8fa4b84dcc6", cropRect);
}
When I open the testcase in recorder, the code will be generated back to old style
Code: Select all
CompressedImage GueltigBis_ScreenshotEmpty
{ get { return new CompressedImage(@"
iVBORw0KGgoAAAANSUhEUgAAAAQAAAAXCAIAAACj0XkcAAAAAXNSR0IArs4c6QAAAARnQU1BAACx
jwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAbSURBVChTY2iZuxeOGICs/zAwyvn/HxQGcAQA
KVnyavKy6+cAAAAASUVORK5CYII="); } }
I can't figure out, why ranorex regenerates the code in old style!
Regards
Andreas