Export repository with images

Ranorex Spy, Recorder, and Studio.
besagon
Posts: 8
Joined: Wed Apr 20, 2016 4:12 pm

Export repository with images

Post by besagon » Thu May 26, 2016 4:04 pm

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);
        }

besagon
Posts: 8
Joined: Wed Apr 20, 2016 4:12 pm

Re: Export repository with images

Post by besagon » Mon May 30, 2016 1:02 pm

Anybody home?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Export repository with images

Post by Support Team » Mon May 30, 2016 4:22 pm

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
.
Image

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Export repository with images

Post by Support Team » Wed Jun 08, 2016 4:15 pm

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
.
Image