You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2016/05/22 23:23:20 UTC

[Bug 58888] HTTP(S) Test Script Recorder (ProxyControl) does not add TestElement's returned by SamplerCreator createChildren ()

https://bz.apache.org/bugzilla/show_bug.cgi?id=58888

Michael Chirlin <mi...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael.chirlin@gmail.com
           Severity|normal                      |blocker

--- Comment #1 from Michael Chirlin <mi...@gmail.com> ---
The change should not specify the node type:

for (int i = 0; subConfigs != null && i < subConfigs.length; i++) {
  if (subConfigs[i] instanceof HeaderManager) {
    subConfigs[i].setProperty(TestElement.GUI_CLASS, HEADER_PANEL);
  }
  treeModel.addComponent(subConfigs[i], newNode);
}

Basically, the treeModel.addComponent needs to be pulled out of the if
statement.  As long as you specify the TestElement.GUI_CLASS in the
createChildren method, you don't need to do it again here.

-- 
You are receiving this mail because:
You are the assignee for the bug.