Skip to content

How to save custom properties in a TestElement #6500

@hui-huo

Description

@hui-huo

The documentation URL

https://jmeter.apache.org/api/org/apache/jmeter/testelement/AbstractTestElement.html#setProperty(java.lang.String,int)

Feedback

I created a TreeModelListener with the purpose of adding a new property when a node is created. In it, I used element.setProperty(new StringProperty(PROP_STABLE_ID, newId)). It works for some components — I can see the property cb5c157c-bf62 in the JMX file. However, for components like Transaction Controller and HTTP Request, the property is not successfully saved. How can I achieve this?

The test plan tree with the successfully saved properties:
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions