VIAVI TestCenter: How to generate PDF/CSV/HTML files from VIAVI TestCenter Result Reporter DB (Data Base) file using Command Line Interface (CLI)?
Knowledge Base - FAQ
VIAVI TestCenter: How to generate PDF/CSV/HTML files from VIAVI TestCenter Result Reporter DB (Data Base) file using Command Line Interface (CLI)?
A PDF/CSV/HTML file can be generated using the appropriate Result Reporter Templates and the Results Reporter CLI (command line interface).
In order to use the CLI, you will need to know the following:
• path to the results file you want to generate the file from
• path to where you want results written to
• the template you want to use to export the file
• you can find that from opening the Results Reporter
• the export file format
The example below shows:
• How to generate pdf format
• Using custom throughput Database file
• Since, this custom throughput test, using CustomStats.rtp template
• CLI can run from any directory and does not need to be from the installation directory
Linux Environment:
"./STC_installtion_Dir/VIAVI_TestCenter_X.XX/VIAVI_TestCenter_Application_Linux/results_reporter/ResultsReporterCLI.sh “ -o MyResults.db -f pdf -d MyResults.pdf -t templates/CustomStats.rtp
Windows Environment:
• Launch the command window
• enter the following command with parameters
• "C:\Program Files (x86)\VIAVI Communications\VIAVI TestCenter X.XX\VIAVI TestCenter Application\Results Reporter\ResultsReporterCLI.bat” ^
-o .db ^
-f ^
-d . ^
-t templates\.rtp
• for example:
"C:\Program Files (x86)\VIAVI Communications\VIAVI TestCenter X.XX\VIAVI TestCenter Application\Results Reporter\ResultsReporterCLI.bat” ^
-o MyResults.db ^
-f pdf ^
-d MyResults.pdf ^
-t templates\CustomStats.rtp
Sample command in Windows:
"C:\Program Files\VIAVI Communications\VIAVI TestCenter \VIAVI TestCenter Application\Results Reporter\ResultsReporterCLI.bat" -o "C:\Users\\Documents\VIAVI\TestCenter \Results\" -f -d "\." -t "C:\Program Files\VIAVI Communications\VIAVI TestCenter 5.23\VIAVI TestCenter Application\Results Reporter\templates\"
Usage
The full list of options is printed on the console if you run the script with no parameters:usage: VIAVI TestCenter Results Reporter CLI
-d,--dest the path to save to
-f,--format the format to save as
-h,--help print this message
-o,--open open a result file at the given path
-t,--template applies a template located at the given path
NOTE: You will need the proper template to convert the file. If you use a non-valid template, the report file will be created, but it will not include any information.