DevTest provides built-in support for custom report generators. The predefined report generators provide output for most situations. However, you can create your own report generator to handle site-specific situations.
Follow these steps:
This class tells DevTest that your class is a custom report.
public class ReportEventsToFile extends ReportGenerator { }
This method provides the name that is used to identify the custom report in the Staging Document Editor.
public String getTypeName() { return "Report Events To a File"; }
For each item in the Report Attributes section of the Reports tab in the Staging Document Editor. Add a Parameter to the ParameterList for the report.
When DevTest tries to execute a report, it first creates an instance of the custom class. It then calls the initialize method, passing the ParameterList that was read from the XML of the staging document. DevTest automatically reads and writes the XML representation of report attributes by making each of the Parameter objects in getParameters a child tag of the report XML tag. Each parameter key becomes the tag name and the child text of the tag is the value.
When DevTest finishes the test, it invokes this method on your report generator. This invocation is your opportunity to complete your processing, like saving the current document.
Copyright © 2014 CA Technologies.
All rights reserved.
|
|