Testing Mashup Scripts from the Command Line
All of the component mashables you invoke in a mashup script must be registered and activated in Prestoto successfully test the mashup.
To test a mashup script from the command line
1. Open a command window and move to the presto-install/prestocli/bin folder.
Tip: | You may wish to put a copy of the mashup script in this directory to simplify paths. |
2. Enter the emml command in this form:
emml -f mashup-script-file-name-u user-name-p password[-D params- url presto-url-V -silent]
Use your user name and password for
Presto.
Use the -D option to specify any input parameters for the mashup. Enter parameters as:
-Dparam-name=value[-D...]
The URL is optional. It defaults to
http://localhost:app-server-port/presto/edge/api where
app-server-port is the port you defined during installation.
Use the -url option, if you need to test this mashup on a remote server or the default host or port is incorrect.
Use the -V option if you only want to validate your mashup script. This option does not actually execute the mashup.
Use the -silent option to skip the output from any <display> statements.
The mashup script is processed. Any debugging messages in <display> statements will display in the command window in addition to being logged.
Note: | Occasionally you may see an error message Invalid parameter Q when you test mashup scripts. This error has no effect on processing and can safely be ignored. You can also receive errors that must be corrected if the names of the mashables that are invokved within the mashup script are not valid for the Presto Server used in the test. |