DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41779>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41779

           Summary: If the test plan node is given a name, it is always
                    "dirty" after being loaded
           Product: JMeter
           Version: 2.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I set the name of my test plan to something different from the default "Test
Plan". I.e. I set the name of the "Test plan" node. Then I save my test plan,
and exit Jmeter.

Then I start Jmeter, and I open my saved test plan. If I now try to close the
test  plan, Jmeter tells me that something has changed, and that I asks me if I
want to save my changes.

I'll attach to test plans, both just containin the test plan element itself.
The first test plan has the default name "Test Plan". That test plan I can open
and close as many times I want in a Jmeter session without problems.
The second test plan hat the name "Another Name". That test plan I can open, but
whenever I try to close it, Jmeter thinks I have changed it.

I've looked a bit at the code, and the problem seems to be in the CheckDirty 
class.
I've been able to trace the problem to the following line in the CheckDirty
class, in the method addNode :
if (!previousGuiItems.get(treeNode).equals(treeNode.getTestElement())) {
What I observe, is that the treeNode.getName() returns "Another Name" and
previousGuiItems.get(treeNode)).getName() returns "Test Plan".

I do not know where the bug is, but it seems like the name of the item in the
hash map is not set correctly. I'm a bit unsure when the tree node for the root
of the testplan is made.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to