Details
Description
As reported by Ben Sullivan, when running scenarios via Ant CLI, the reports are being outputted to $ANT_HOME/lib instead of target dir.
Problem stems from the fact that the FilePrintStreamFactory uses the
scenarioClass.getProtectionDomain().getCodeSource().getLocation().getFile();
to identify the output dir. The classloading of Ant by default must be setting the code source location to $ANT_HOME/lib.
Need to find a way to configure Ant classloading or allow explicit setting of the output directory (currently only the entire output file of the print stream is configurable, which makes it pretty useless for running with multiple scenarios).
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Allowed configuration of output directory in builder to be absolute, so it can bypass the class source code location.
Updated the TraderScenario configuration to use the absolute directory.
The Ant build.xml in the trader example has been used to verify the ability to run scenario reports and render them.