Forum Discussion

anhvu's avatar
anhvu
Frequent Contributor
10 years ago

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.

    Open the image in the editor

    Learn about possible causes of the error

 

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:

  • 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:

      • TanyaYatskovska's avatar
        TanyaYatskovska
        SmartBear Alumni (Retired)

        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.