Wait for image comparison and remove from report

Ask general questions here.
Tzahi
Posts: 16
Joined: Sun May 17, 2015 2:24 pm

Wait for image comparison and remove from report

Post by Tzahi » Thu Sep 03, 2015 10:43 am

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#.
Best Regards
Tzahi Caspi

Tzahi
Posts: 16
Joined: Sun May 17, 2015 2:24 pm

Re: Wait for image comparison and remove from report

Post by Tzahi » Thu Sep 03, 2015 11:16 am

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
Best Regards
Tzahi Caspi

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Wait for image comparison and remove from report

Post by Support Team » Mon Sep 07, 2015 9:26 am

Hello Tzahi,

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

Regards,
Robert