We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

anhvu's avatar
anhvu
Frequent Contributor
10 years ago
Solved

TestComplete 11.20: Unable to find back an image in ImageRepository.

All,

 

I have an issue with Imange/checkpoint added to the ImageRepository.

 

I always got the message below:

    The image Pause_Image was not found on the mobile device's screen.

    imagerepository://0|{BD099574-42D4-4C3D-AE00-BE1A7A27F4A6}|{5EB89231-3A0C-4373-9A21-ED925B706D5D}

    aqa-help://2213

 

I have added image/checkpoint via Mobile Screen and added it to my ImageRepository. However, whenever I checked it, TestComplete is unable to find the image.

 

This is weird because, I did the same for Play button and it worked perfectly. 

 

My script:

 

if(ImageRepository["SoundCloud"]["Pause_Image"]["CheckImage"]()) // replace ["Exists"]()
{
   Log["Message"]("play_Music_with_SoundCloud: "+"Pass!"+"The Music is playing now!")
}
else
{
   Log["Error"]("play_Music_with_SoundCloud: "+"Failed!"+"Unable to play music with SoundCloud!")
}

  • I have removed the TC 11.20 and go back to version 11.11 and it works very good.

     

    :robotmad:

3 Replies

  • anhvu's avatar
    anhvu
    Frequent Contributor

    I have updated the "Color tolerance" up to 30. Then it worked!

     

    HOWEVER, SOMETIMES IT WORKS SOMETIMES NOT.

    • anhvu's avatar
      anhvu
      Frequent Contributor

      I have removed the TC 11.20 and go back to version 11.11 and it works very good.

       

      :robotmad:

      • Hi Anhvu,

         

        If you decide to return to TestComplete 11.20, I recommend that you contact our Support Team so that they could investigate this behavior and give you a solution.