Page 1 of 1

Recorder module produces messy repository

Posted: Thu Oct 19, 2017 8:53 am
by uhmdown
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?)

Re: Recorder module produces messy repository

Posted: Thu Oct 19, 2017 1:44 pm
by krstcs
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.

Re: Recorder module produces messy repository

Posted: Thu Oct 19, 2017 3:34 pm
by uhmdown
Awesome !

That did it. Thanks alot.

Re: Recorder module produces messy repository

Posted: Thu Oct 19, 2017 3:37 pm
by krstcs
You're welcome! Glad it helped!