Bug 62421

Summary: Field value of 'Validation Query' (JDBC Connection Configuration) is lost when saving test plan.
Product: JMeter - Now in Github Reporter: patrick.trapp
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: trivial    
Priority: P2    
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description patrick.trapp 2018-05-31 12:46:08 UTC
Steps to reproduce behavior:
- Add "JDBC Connection Configuration" to test plan
- change value of "Validation Query" to something like 'select 1 from dual'
- select "File / Save Test Plan as" from menu
- When the File dialog opens up, the Field value of "Validation Query" is reset.

Expected behavior:
- the Field value of "Validation Query" should keep it's assigned value when storing the Test Plan.
Comment 1 patrick.trapp 2018-05-31 12:56:48 UTC
I think the text field may not be connected with a listener, so the text is not propagated to the TreeModel. Anyway, I have no idea where the plumbing is and how to fix it. Any help is appreciated.
Comment 2 Felix Schumacher 2018-05-31 14:56:39 UTC
Does this happen, when you move the focus out of the field before you open the save dialog, too?

I can reproduce it, but only if the focus is still on the query field when opening the save dialog.
Comment 3 patrick.trapp 2018-06-11 08:51:58 UTC
No, You're right. When I move focus, the Field is stored correctly. So this is just a minor issue.
Comment 4 The ASF infrastructure team 2022-09-24 20:38:13 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4788