Getting Repository Comments into Code

Ask general questions here.
User avatar
Andymann
Posts: 41
Joined: Wed Jul 27, 2016 12:22 pm
Location: Hamburg
Contact:

Getting Repository Comments into Code

Post by Andymann » Thu Jul 28, 2016 10:27 am

Hi everyone,

there is this post from 2014 where it's said that it is not possible to get a repository item's comment into a code-module in any way: "how-to-get-the-comment-of-repository-in-codemodule-t6524" (I'm not allowed to post links as I'm a new user)

Has this situation changed in Ranorex 6.0?
Vorsprung durch Wahnsinn
www.Doktor-Andy.de

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

Re: Getting Repository Comments into Code

Post by krstcs » Thu Jul 28, 2016 3:54 pm

No, there is still no way to get that information.

You could name your repo items using the information you want and use that name instead.
Shortcuts usually aren't...

User avatar
Andymann
Posts: 41
Joined: Wed Jul 27, 2016 12:22 pm
Location: Hamburg
Contact:

Re: Getting Repository Comments into Code

Post by Andymann » Fri Aug 05, 2016 1:25 pm

Somehwat unfortunately we established a naming convention which proved to be quite well-working (we are coming from a RationalFunctionalTester background). Furthermore I see potential problems in naming a button " Button 'Neu' im Fenster 'Änderungen schließen' " with all the special characters etc. .

Anyways: I realized that I can access the comments by analyzing the repository's underlying xml file.
I already hacked together an application that analyzes the testcase's xml (*.rxlog.data) and the repository's xml and provides me the data I need to create a heavily customized log.
Vorsprung durch Wahnsinn
www.Doktor-Andy.de