Hi, Using 2 elements of the same kind with a TableEditor inside (AssertionCompare), one with its table filled, the other one with an empty table, if I save the test from the element with the empty content every works fine, but if I save from the other element 2 errors are raised (see save.log file attached) NB: This issue is more visible if issue 58742 is fixed. Adding a third element of the same kind after the two others with its table filled and saving the test well, if the test is reloaded, 4 errors are raised (see load.log filee attached) and the empty table of the second element is filled by the same content than the third one.
Created attachment 33354 [details] log when the test is saved
Created attachment 33355 [details] log when the test is loaded
Hello, Could you provide a Test plan and some screenshot ? Thanks
Created attachment 33361 [details] Test case showing the issue that truncates jmx files The test case is composed from a Thread Group with 2 Compare Assertion elements: The first one has a row inserted in its TableEditor widget, the second has an empty one. NB: switching from the to the other produce the bug 58742 so insure to delete intenpestive content added. So if you are focused on the empty assertion element and that you perform a Save Action, everything goes. Switch to the "filled" assertion element and Save the file, 2 errors are raised.
Created attachment 33362 [details] Test case showing issue as a file is loaded The test case is composed from a Thread Group with 2 Compare Assertion elements: The first one has an empty TableEditor widget, the second has a row inserted into its TableEditor widget. Loading the file generates 2 errors.
Hi Philippe, I hope the 2 test cases will help you in your investigations. Feel free to ask more information if required. Thank you
The issue, just have been experienced once again by the JMeter users I'm working with. They lost their files because the issue truncates the XML content. It is a critical data integrity issue. After some investigations in JMeter code, I have difficulties to found where is really the root cause. Maybe you have an idea of what could produce such issue. And from your suggestion, I hope finding the issue and submit you a fix thanks again for your support and suggestion
Scenario related to Bug 60124: - Create a Compare Assertion and fill in a row with 2 fields - Create another Compare Assertion and keep it empty Select last Compare Assertion and save => OK Select first Compare Assertion and save => KO
*** Bug 60124 has been marked as a duplicate of this bug. ***
I've fixed this bug. See patch in this pull request: https://github.com/apache/jmeter/pull/293
Created attachment 34956 [details] Testcase for AbstractProperty#normalizeList The attached patch is for the proposed changes of pr #293.
Thanks Emilian for the fix. This will be included in version 3.3. Date: Fri Apr 28 19:30:23 2017 New Revision: 1793138 URL: http://svn.apache.org/viewvc?rev=1793138&view=rev Log: TableEditor can't be saved, when using two or more instances. Bugfix provided by Emilian Bold (emi at apache.org) This closes #293 on github. Bugzilla Id: 58743 Added: jmeter/trunk/test/src/org/apache/jmeter/testelement/property/AbstractPropertyTest.java (with props) Modified: jmeter/trunk/src/core/org/apache/jmeter/testelement/property/AbstractProperty.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3735