Page 1 of 1

Export repository with images

Posted: Thu May 26, 2016 4:04 pm
by besagon
Hi Support Team

My Team does not use Ranorex Studio for automation, just Ranorex Libraries and Repository.

My question is: how I can export repository with images?

Steps:
1. Open Ranorex Spy and create new repository
2. Add some elements to it with validations screenshots
3. Export repository using "Export->Generate C# code"
4. Now I want to access screenshots from repository but generated code does not contain any auto generated methods to access screenshots.

Note:
When Ranorex Studio used then constructor looks like:

Code: Select all

public ImagingRepository() 
            : base("ImagingRepository", "/", null, 0, false, "4610942b-64d6-49c0-a5c4-884ca4917a5b", ".\\RepositoryImages\\ImagingRepository4610942b.rximgres")
        {
            _calculator = new ImagingRepositoryFolders.CalculatorAppFolder(this);
        }
When export using repository tab in spy:

Code: Select all

public TestRepo()
            : base("TestRepo", "/", null, 0, false, "4641b9cc-ad6f-4abb-8694-0b1a1e95dd33", "")
        {
            _calculator = new TestRepoFolders.CalculatorAppFolder(this);
        }

Re: Export repository with images

Posted: Mon May 30, 2016 1:02 pm
by besagon
Anybody home?

Re: Export repository with images

Posted: Mon May 30, 2016 4:22 pm
by Support Team
Hi besagon,

I was able to reproduce the issues on my machine and forwarded it to our development department in order to verify if this behavior is implemented this way by design or caused by a bug.

As a workaround, you could try generating the files with Ranorex Studio and copying them to the VS project afterwards. Furthermore, you will need to copy the *.rximgres file to the output directory of the project.

I will update this forum thread as soon as possible. Thank you for your patience.

Sincerely,
Johannes

Re: Export repository with images

Posted: Wed Jun 08, 2016 4:15 pm
by Support Team
Hi besagon,

I received an update from our development department.

It was implemented by design that this functionality is only available in Ranorex Studio and not in the standalone Spy. I would suggest using the above-mentioned workaround to generate the files with Ranorex Studio. Unfortunately, there is no other way to generate the *.rximgres files.

Thank you for your understanding.

Sincerely,
Johannes