Could not locate image for ID

Bug reports.
Taz
Posts: 13
Joined: Thu Mar 03, 2022 8:58 am

Could not locate image for ID

Post by Taz » Mon Mar 06, 2023 9:44 am

This is a strange one. It is only happening recently when updating existing tests that have been working for months. A dialog has changed and therefore a new screenshot image was required for validation. Everything works fine when the recording is tested on it´s own, but as soon as the full test is run, Ranorex doesn´t find the screenshot image. The image clearly is there, so what is happening?

Error message: Could not locate image for ID '49e8f291-806c-4f6b-9e8b-1beda81e1b76'.

The error points to this code:

Code: Select all

    CompressedImage NewChargenBezeichnung_Screenshot2
    { get { return repo.AfxWnd140.NewChargenBezeichnungInfo.GetScreenshot2(new Rectangle(0, 10, 31, 8)); } }

roza
Posts: 7
Joined: Thu Jun 30, 2022 12:18 pm

Re: Could not locate image for ID

Post by roza » Fri Mar 31, 2023 1:54 pm

Hi there. We had the same issue, we could solve it by making sure that only one repository exists for each project.
Maybe check that.

Marie143
Posts: 30
Joined: Tue Jul 26, 2022 5:20 pm

Re: Could not locate image for ID

Post by Marie143 » Fri Dec 22, 2023 4:14 pm

Thank you for the advice. hamilton tree service

Taz
Posts: 13
Joined: Thu Mar 03, 2022 8:58 am

Re: Could not locate image for ID

Post by Taz » Wed Feb 28, 2024 11:31 am

roza wrote:
Fri Mar 31, 2023 1:54 pm
Hi there. We had the same issue, we could solve it by making sure that only one repository exists for each project.
Maybe check that.
Thanks for the reply. Unfortunately this wouldn't work for us as we use many repositories as only one was too much for Ranorex to handle with hundreds of tests in our project. We resolved the issue by redoing the steps and now it works. However it shows that Ranorex is very sensitive.