Forum Discussion

maxime38's avatar
maxime38
Occasional Contributor
14 years ago

Region Checkpoint

Hi all,



I use TestComplet8 ans I have a problem with the Region checkpoint functionality.

I want to compare a stored images (my reference) with the active window. But when the image of the active window is different from the reference, as you probably know TestComplet will make several image comparison and then, will fails in error.

My problem is that those several comparisons makes my screen becoming grey for some milliseconds, and TestComplet takes the grey image instead of the real image.



If somebody knows if there is an option or a way to force TestComplet to wait a moment before taking a screen shot for the image comparison, I would be happy to know it !





Thanks in advance for any help, and please forgive my bad English :)



Regards

Max

4 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Max,


    as you probably know TestComplete will make several image comparison and then, will fails in error


    If the region checkpoint compares the stored image with a Window or Onscreen object, TestComplete waits for the image that matches the baseline copy for the delay specified by the Auto-wait timeout setting. That is, the test engine captures the image of the object and performs a comparison until the verification passes or until the timeout elapses. This allows you to synchronize the test with the application without using hard-coded delays. For example, you can wait for an animation to get completed or the object's appearance to change.


    As for the fact that the captured image is gray, I have one suggestion: if you are using the Windows 7 or Windows Vista operating system, you can try changing the value of the Disable DWM before capturing image project setting. For more information, see the Capturing Images Under Windows Vista and Later Operating Systems help topic.


    Also, there are some help topics that contain useful information on what affects the image comparison and why it may fail. So, I'd recommend that you refer to these topics (if you haven't done it yet), and maybe you'll find the reason of the behavior there:

    1. Factors Affecting Image Comparison

    2. Why Image Comparison Fails


    I hope this helps :)

  • maxime38's avatar
    maxime38
    Occasional Contributor
    Hi Lukina,



    Thanks a lot for your answer and your help !



    Unfortunately, playing with those options didn't solve my problem. And I had already red the help topics, without find solution.

    I don't know if it's normal, but when TestComplet captures an image, the screen becomes grey for a few milliseconds (I can see it when TestComplet is running). On Window Seven, sometime TC takes the right picture, and sometime it takes the grey screen. On Window XP, it takes the grey screen each time. I think it may be because of the computer slowness, in wish case a hard coded delay or a specific option could help. Do you know if it is possible ? Or maybe it's another problem.



    The object I want TestComplet to capture is a 3D view in a integrated 3D CAD software (like 3DS Max or Pro Enginer).



    Thanks in advance,



    Regards



    Max
  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Max,


    I've consulted our developers, and here are the results:

    1. We haven't faced such behavior yet. So, to help us reproduce it and find a solution faster, please provide us with additional information on your operating system (the total amount of RAM, your processor name, and so on). Any additional information on this problem is appreciated.

    2. Also, it will be very helpful if we get a video demonstrating the problem. For instance, you can record the test execution and the general results. Make sure that the video contains the contents of the Picture panel (that contains the compared pictures) and an image showing the difference between the compared images (for this purpose, click the Comparison Mode button in the Picture panel).


    If you don't want to share this video here on the forum, you can send it to our Support Team via the Contact Support web form.


    Thanks.

  • maxime38's avatar
    maxime38
    Occasional Contributor
    Hi Lukina,



    I'm going to prepare the video and I will send it and all informations needed to your Support Team via the Contact Support web form.



    Thank you very much for your assistance.



    Regards



    Max