**********Updates****************
With Tosca version 12.x & above, there is change in reporting definitions,
Please follow the below KB articles for generating reports successfully.
https://support.tricentis.com/community/article.do?number=KB0013928
https://support.tricentis.com/community/article.do?number=KB0012634
Implementation Solution on How to send automated email notifications of execution reports
Tricentis Tosca - Email Notification of Execution Reports
1. Bilal Ahmed – Senior Automation Engineer @ The Testing Consultancy
Linkedin Page 1
Tosca
Email Notification of Execution Report
Abstract:-
Implementation Guide for setting up Email Notification of execution reports in
Tosca Commander
Modify TCshell.exe.config file
Create Execution List/Test Mandates
Map Automated Test cases to the execution list/Test Mandate
Create <script.tcs> to perform execution task
Create batch file to invoke execution
2. Bilal Ahmed – Senior Automation Engineer @ The Testing Consultancy
Linkedin Page 2
1. Modify TCshell.exe.config file
1. Navigate to Tricentis Setup folder either via Explorer or just type in
%Tricentis_Home% in Run
2. Look for TCshell.exe.config file
3. Copy the TCshell.exe.config to location
“C:ProgramDataTRICENTISTOSCA Testsuite7.0.0Settings”
4. Open the TCshell.exe.config into Notepad++ or Notepad
Under Section group, add the following line
<section name="Tricentis.TCAddIns.Reporting.Properties.Settings" type="System.Configuration.ClientSettingsSection,
System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser"
requirePermission="false" />
5. Add the following parameters before the closing of </userSettings>
6. Save the Changes made to the Config file & Close it.
3. Bilal Ahmed – Senior Automation Engineer @ The Testing Consultancy
Linkedin Page 3
2. Create Execution List/Test Mandates
1. Create 2 Execution list as shown in the screenshot
a. Regression Suite Execution List
This suite should contain all the test cases that you wish to
execute as a regression pack
b. Send Report Execution List
This list should contain only 1 test case, which will pick up the
Report & send via outlook
4. Bilal Ahmed – Senior Automation Engineer @ The Testing Consultancy
Linkedin Page 4
3. Create Script.tcs to perform execution task
Attached is the script file, & the script contains 2 parts
Part 1: Executes the first execution list which contains Normal test cases
Part 2: Executes the second execution list which contains test case to send
email
5. Bilal Ahmed – Senior Automation Engineer @ The Testing Consultancy
Linkedin Page 5
4. Create batch file to invoke execution
1. Navigate to Tricentis Home Folder – This is where the TCShell.exe is available
2. Enter the Workspace path that you wish to Run
3. Enter the Username & Password for the workspace
4. Entire path of the Script.tcs file
5. Save the file as .bat extension
6. Double click to begin the execution
@Echo ON
@Echo "Starting TCShell Command"
//Change Directory to Tricentis Home
CD "C:Program Files (x86)TRICENTISTosca Testsuite"
//Launch TCShell with Arguments
TCShell -workspace "C:Tosca_ProjectsTosca_WorkspacesIntegrationIntegration.tws" -login
"Admin" "" C:UsersBilalAhmedDesktopToscaReportingscript.tcs"
6. Bilal Ahmed – Senior Automation Engineer @ The Testing Consultancy
Linkedin Page 6
5. Screenshot of the Test Case
7. Bilal Ahmed – Senior Automation Engineer @ The Testing Consultancy
Linkedin Page 7
For Queries you can always reach out to me
Official : bilal.ahmed@testingconsultancy.com
Personal: bilals.ahmed925@gmail.com
Linkedin: Bilal Ahmed - Senior Automation Engineer