woensdag 2 december 2015

Tosca tips and tricks: printing reports via TCShell

Tosca has built-in reporting functionality. To be able to generate these report via TCShell one can use the syntax:
task "Print Report ... ExecutionEntries with ActualLog" "Report.pdf"

But this won't work until you add the following to your TCShell.exe.config:<Tricentis.TCAddIns.Reporting.Properties.Settings>
  <setting name="DefaultPrintOutputFormat" serializeAs="String">
       <value>ASKUSER</value>
  </setting>
</Tricentis.TCAddIns.Reporting.Properties.Settings>

And - which I found out today to my own detriment - after you install a new Tosca upgrade or release this file will be overwritten by the default and consequently break your TCShell reporting functionality. Something to be aware of.

This is all perfectly described in the following Tricentis documentation:
https://support.tricentis.com/community/manuals_detail.do?sysparm_document_key=u_webhelp,25d579ec37e78640a30fa16043990e3c
https://documentation.tricentis.com/en/900/content/tchb/commander_config.htm#DefaultPrintOutputFormat
https://documentation.tricentis.com/en/900/content/tchb/configuration_files.htm#Structure_config

Note to self: add 'Output (print) reports' to the list of useful Tosca search terms.

Geen opmerkingen:

Een reactie posten