Skip to content

ResultCollector does not write end of XML file if user exits while a Recording or a test is running #4974

@asfimport

Description

@asfimport

UbikLoadPack support (Bug 63069):
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.

Severity: normal
OS: All

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions