jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 63069] New: ResultCollector does not write end of XML file if user exits while a Recording or a test is running
Date Tue, 08 Jan 2019 20:07:58 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=63069

            Bug ID: 63069
           Summary: ResultCollector does not write end of XML file if user
                    exits while a Recording or a test is running
           Product: JMeter
           Version: 3.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: support@ubikloadpack.com
  Target Milestone: JMETER_5.1

Reproducer while sampling:

- Create a test plan that contains a View Results Tree that write XML (click on
Configure and check all except "Save Field Names (csv)" and fill in a filename
- Start the test 
- Exit JMeter without stopping test


Reproducer while recording:

- Use Recording Template
- Start Recorder
- Record some action
- Quit JMeter without stopping recorder

Expected result:
XML file is valid.

KO Result:
Check the XML file, it does not contains :
</testResults>



Fix is to use finalizeFileOutput in ShutdownHook instead of using
flushFileOutput.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message