Page 1 of 1

Wait for image comparison and remove from report

Posted: Thu Sep 03, 2015 10:43 am
by Tzahi
Hi All,

I create test for flash games, I have a problem after clicking on an object (container), I need to wait until image color will be the same again (it switch to grey for 4 to 20 secs. more then 20 another problem happened :D ).
so I wrote this:

Code: Select all

Imaging.FindOptions MyFindOptions = new Imaging.FindOptions (0.97); // higher success
Validate.Options MyValidOption = new Validate.Options(false,ReportLevel.None); // remove exception + I thought I remove report :)
string IsImageFound = "false";
int i=0;
while (IsImageFound !="True" && i<5)
{            	
	IsImageFound = Validate.CompareImage(repo.WebDocumentIE.ContainerSpinButtonInfo, ContainerSpinButton_ScreenshotBtn,MyFindOptions,"",MyValidOption).ToString();		
	Delay.Milliseconds(4000);
	i++;
}
This solution works, but It fill me reports with images (Expected image & Searched image), in case it took more then 12 secs I have 6 pictures.
Can someone please help me to remove this images? :roll:

I am using Ranorex studio 5.3.2, C#.

Re: Wait for image comparison and remove from report

Posted: Thu Sep 03, 2015 11:16 am
by Tzahi
Sorry, found the answer :) (switch it to debug).

Code: Select all

Validate.Options MyValidOption = new Validate.Options(false,ReportLevel.Debug);
now. should I delete the post?
Thanks a lot
Tzahi

Re: Wait for image comparison and remove from report

Posted: Mon Sep 07, 2015 9:26 am
by Support Team
Hello Tzahi,

Thank you for sharing your experiences with Ranorex, there is no need to delete the post.

Regards,
Robert