Wait for image comparison and remove from report
Posted: 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 ).
so I wrote this:
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?
I am using Ranorex studio 5.3.2, C#.
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 ).
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++;
}
Can someone please help me to remove this images?
I am using Ranorex studio 5.3.2, C#.