Recorder module produces messy repository

Ranorex Spy, Recorder, and Studio.
uhmdown
Posts: 54
Joined: Mon Apr 03, 2017 12:00 pm

Recorder module produces messy repository

Post by uhmdown » Thu Oct 19, 2017 8:53 am

Hi,

I have a colleague that doesn't have the coding experience to create tests with C# or manually build a repository with good Xpath queries.
So instead, the person is trying to use the recording module exclusively.

But the thing is, the repository that the recorder generates is messy. Like, super messy.

It puts in a bunch of ? and // and generally flattens the repo in a way that makes it unreadable and unreliable. Some containers that it generates incorrectly matches other containers because the path and properties it generates are too generic (so when you try to play the recording, it fails).

Is there some setting that tells the recorder to generate a nicer repository ? (something closer to the structure seen in the Spy app?)

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Recorder module produces messy repository

Post by krstcs » Thu Oct 19, 2017 1:44 pm

What you want is RanoreXPath generation mode, which can be found in the Ranorex Settings (click the Settings button on the far right of the bottom bar at the top of Studio).

Change the setting to "Simple" and it will generally try to avoid wildcards ("?" and "*") and descendant breaks ("//").

However, this doesn't mean that Ranorex will setup the repo the way you expect it to, or want. They have it setup to create the elements in a logical way using an internal algorithm that probably doesn't work the same way you do, so you might still have to massage it a bit, but at least you won't have all of the extraneous stuff in the paths.
Shortcuts usually aren't...

uhmdown
Posts: 54
Joined: Mon Apr 03, 2017 12:00 pm

Re: Recorder module produces messy repository

Post by uhmdown » Thu Oct 19, 2017 3:34 pm

Awesome !

That did it. Thanks alot.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Recorder module produces messy repository

Post by krstcs » Thu Oct 19, 2017 3:37 pm

You're welcome! Glad it helped!
Shortcuts usually aren't...