HOW TO PRINT STANDARD REPORT AFTER TEST EVENT HAS BEEN TRIGGERED THROUGH TOSCA CI
How to print standard report after test event has been triggered through Tosca CI
You want to generate a report once the test event has been triggered through CI.
Follow the steps below:
-) Create a .tcs file with below content. Here, we are jumping to the execution list, doing a print report task and saving the file.
//navigate to Execution List
jumptonode "Node path of the execution list"
task "Print Report ... ExecutionEntries with ActualLog"
//Save your files
-) Then create a batch file with below content. First command is to trigger the test event (CITestExecutionConfiguration.xml will contain the test event name). Second command is the TC Shell command to trigger the .tcs file which indeed will jump to the execution list and print a repot.
Here, CI will wait untill the test event is been executed and once the test event is completed TC shell will be triggered.
"C:\Program Files (x86)\TRICENTIS\Tosca Testsuite\ToscaCI\Client\ToscaCIClient.exe" -m distributed -c "C:\Program Files (x86)\TRICENTIS\Tosca Testsuite\ToscaCI\Client\CITestExecutionConfiguration.xml" -r "C:\result.xml"
TCShell.exe -workspace "Path of the workspace" -login "Username" "Password" "C:\Users\shitr\Downloads\Vatan\AutomationScriptRun_v_01.tcs"
Please check the online manual to know more about CI and TC Shell.