Forum Discussion

lvl's avatar
lvl
Occasional Contributor
9 years ago

Web testing: update baseline image with regions.compare, and ignore mouse position

Hello,

 

I use Regions.compare to test my web apps. According to help, if I check "update" both in "Options" of TC and per individual check, my baseline images in Régions should be updated automatically. But it's not the case. What should I do to get them updated automatically? Also, I put false to ignore mouse position, but in the screenshot, it still have mouse on it. Can anyone please help? Thnaks!

  • Hi,

     

    Let me quote the "Compare Method" article:

     

    "Also, one of the Compare method parameters should be the image stored in the Stores | Regions collection; another parameter should be the image that will replace the stored image. In this case, Regions.Compare will replace the stored image with the specified one, post a message reporting that the image was updated to the log and return True."

     

    Can you confirm that you are using the method correctly?

     

    If you can stably reproduce this behavior, please create a support case and send us the steps. We will try to reproduce it on our side.

    • lvl's avatar
      lvl
      Occasional Contributor

      Hello,

       

      Thanks for the reply, yes, I have the baseline picture in the store of my project. this is how I call the method:

       

      Call Regions.compare(regions.GetPicture("Credit_impot_plafonne"), Aliases.browser.pageQuantixAssuranceVie.pagepicture, , , , 400,3)

       

      Did I missed something?