How to save custom properties in a TestElement
Open
documentation
to-triage
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
### 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:
Contributor guide
Assessment
This issue has not been assessed yet.