
Testing Your Component
After you create an Adobe Flex project, test it in Dashboards in design mode, in Preview mode, and
at run-time after exporting it as as a SWF.
After you create an HTML5 project, test it in Dashboards in designer mode, in Preview mode, and File
> Save to Platform to test it in the SAP BusinessObjects Mobile application.
Note:
You can test the property sheets for custom components in design mode, but since SWF source files
are not executed until the model is run, you cannot test custom connections and functions in design
mode. To test custom connections and functions, you can use the Preview button to run the model.
This way, you can test the connections and functions within Dashboards without having to export the
model.
1.
Package the Debug version of your component for testing
Before you can test your component in Dashboards you need to package your component as a
Dashboards add-on (add-ons have an .xlx file extension) using the Dashboards Add-On Packager.
Note:
For testing purposes, use the debug version of your SWF so the additional metadata for your
component is available to the Dashboards default property sheet.
Package your debug SWF (for testing purposes) along with the Dashboards default property sheet
unless you created a custom property sheet.
For more information about using the Dashboards Add-On Packager, see To create Dashboards
add-on packages (.xlx files) Refer to "Package your component as a Dashboards Add-On" .
2.
In Dashboards, use the Add-on Manager, to install your packaged debug component.
For more information about using the Add-on Manager, see the “Customizing Dashboards with
Add-On Components” section in the
SAP BusinessObjects Dashboards User Guide
.
3.
Debug your component using trace statements
• Using Mozilla Firefox
a.
To view trace statements without the Adobe Flex Builder debugger there is a Firefox add-on
called Flash Tracer which displays ALL trace statements from SWF files.
a.
Download the Mozilla Firefox Flash Tracer add-on, available from: https://addons.mozil
la.org/en-US/firefox/addon/3469
b.
From within Mozilla Firefox, enable the Flash Tracer. Select Tools > Add-ons > Flash Tracer.
The Flash Tracer window is opened.
c.
Select Options. The options window opens.
2013-05-0623
Testing Your Component
Komentáře k této Příručce