Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 142244 - Inconsistent behaviour when renaming test suites
Summary: Inconsistent behaviour when renaming test suites
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jerome Gout CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 166025
Blocks:
  Show dependency tree
 
Reported: 2006-05-17 11:10 EDT by Barbara Rosi-Schwartz CLA
Modified: 2016-05-05 11:06 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barbara Rosi-Schwartz CLA 2006-05-17 11:10:10 EDT
Renaming of test suites using the either  the "Rename" context menu
item in the Test Navigator or the Name field in the suite editor appears to
be inconsistent: if I add a character to the name in the editor, this
is also reproduced in the file name in the navigator. If I do the
opposite, sometimes it works and sometimes it doesn't. Even when it works,
the changes are not reproduced in the editor's Name field. 

Spaces are another example of odd behaviour: the Rename action in the navigator
ignores spaces, whereas the editor's Name field allows them, but then they
are not reproduced in the file name in the navigator.
Comment 1 Joe Toomey CLA 2007-01-17 17:34:27 EST
Reassigning to Jerome to triage and add time estimate
Comment 2 Jerome Gout CLA 2007-02-27 03:44:38 EST
(In reply to comment #0)
> Renaming of test suites using the either  the "Rename" context menu
> item in the Test Navigator or the Name field in the suite editor appears to
> be inconsistent: if I add a character to the name in the editor, this
> is also reproduced in the file name in the navigator. 

Not agree, the *file* name is not changed when test suite name is changed in the test suite editor (Name text field), it only change the name of the test suite which is contained in the file (.testsuite).
Test suites files are EMF zipped files with .testsuite extension. This EMF model persisted contains a field name. The rename action only acts on this model attribute and thus changes the content of the file not the file name itself.
Actually, the new name appears in the test navigator (which focus upon test assets) but if you look at the Resource navigator (default navigator of Eclipse) you still see the same file name with the .testsuite extension.

> If I do the
> opposite, sometimes it works and sometimes it doesn't. Even when it works,
> the changes are not reproduced in the editor's Name field. 

> Spaces are another example of odd behaviour: the Rename action in the navigator
> ignores spaces, whereas the editor's Name field allows them, but then they
> are not reproduced in the file name in the navigator.

Be careful, don't watch the navigator but the Test navigator.
Elements in the test navigator have not extension because it is the name of the element not the name of the file.

Fell free to reopen with more detailed information in order to reproduce.
(driver used, detailed step that leads to the problem)


Comment 3 Paul Slauenwhite CLA 2007-02-27 07:37:34 EST
Correcting targets.
Comment 4 Paul Slauenwhite CLA 2007-06-02 14:51:53 EDT
Reporter: Please verify and close in preparation for shutting down the TPTP 4.4 release.  Thanks.
Comment 5 Barbara Rosi-Schwartz CLA 2007-07-14 13:01:55 EDT
I guess if the interpretation of the behaviour is the one given by Jerome above, it makes sense (although I still think it is a bit confusing...). Closing.