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?)
Recorder module produces messy repository
Re: Recorder module produces messy repository
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.
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...
Re: Recorder module produces messy repository
Awesome !
That did it. Thanks alot.
That did it. Thanks alot.
Re: Recorder module produces messy repository
You're welcome! Glad it helped!
Shortcuts usually aren't...