robotframework / RIDE

Test data editor for Robot Framework
Apache License 2.0
969 stars 382 forks source link

Do not normalise tag names in View All Tags dialog #1492

Open robotride opened 9 years ago

robotride commented 9 years ago

Framework Version: 2.8.7 Python: 2.7 Operating System: Win 7 Enterprise Using RIDE 1.3

If I have tag: TableCleanUp

on one test, and: Table CleanUp

on another test, when I select Tools -> View All Tags, nothing happens. I hooked RIDE into an IDE, and got the following:

Connected to pydev debugger (build 135.1057) Traceback (most recent call last): File "C:\DeploymentUnit\Anaconda\Lib\site-packages\robotframework_ride-1.3-py2.7-win32.egg\robotide\ui\actiontriggers.py", line 379, in call action.act(event) File "C:\DeploymentUnit\Anaconda\Lib\site-packages\robotframework_ride-1.3-py2.7-win32.egg\robotide\action\action.py", line 86, in act self.action(event) File "C:\DeploymentUnit\Anaconda\Lib\site-packages\robotframework_ride-1.3-py2.7-win32.egg\robotide\utils\eventhandler.py", line 22, in wrapped method(self, event) File "C:\DeploymentUnit\Anaconda\Lib\site-packages\robotframework_ride-1.3-py2.7-win32.egg\robotide\ui\mainframe.py", line 248, in OnViewAllTags self._view_all_tags_dialog.show_dialog() File "C:\DeploymentUnit\Anaconda\Lib\site-packages\robotframework_ride-1.3-py2.7-win32.egg\robotide\ui\tagdialogs.py", line 114, in show_dialog self._execute() File "C:\DeploymentUnit\Anaconda\Lib\site-packages\robotframework_ride-1.3-py2.7-win32.egg\robotide\ui\tagdialogs.py", line 92, in _execute self._search_for_tags() File "C:\DeploymentUnit\Anaconda\Lib\site-packages\robotframework_ride-1.3-py2.7-win32.egg\robotide\ui\tagdialogs.py", line 139, in _search_for_tags self._tagit[tag_name].append(tag) KeyError: u'Table CleanUp'

yanne commented 9 years ago

This should already be fixed in RIDE 1.4, please try to upgrade.

robotride commented 9 years ago

In 1.4, the issue no longer hampers the 'View all tags' UI from coming up. Good stuff!

Unfortunately, both tags show up under the same tag in the 'View all tags' UI. Thus, if I have two tests, with the tag names I noted in this ticket, when 'View all tags' UI appears, it shows "TableCleanUp" with 2 Occurrences, and doesn't break out "Table CleanUp" as a different tag. Should I write a new ticket for this? Or keep it contained here? Thx.

yanne commented 9 years ago

Tag name normalisation is done because that's how Robot Framework groups tags in report. However, it might be useful for RIDE to show the tags as they are, or at least offer an option to do so. Since the original bug was fixed already, I'll edit this issue.