Hie....
Good to see that you are following the posts!! Thanks.
Lets talk TOSCA again!
Unattended Installation:- By unattended we mean that no user intervention is required in between installation steps. You are just required to write one single command in your Command Prompt and you are done, as simple as that!!
The command which needs to be executed is
TOSCA<versionnumber>.exe /s /V"INSTALLDIR=<installationpath> TOSCA_PROJECTS=<projectsdirectory> TOSCACOMMONAPPDATA=<Appdata directory> /qn"
Or
TOSCA<versionnumber>.exe /s /V" DIAGNOSTICS=0 INSTALLDIR=<installationpath> TOSCA_PROJECTS=<projectsdirectory> TOSCACOMMONAPPDATA=<Appdata directory> /qn"
I am going to explain all the parameters of this statement one by one!
/s - This parameters is passed for silently executing this command, means elements that require user interaction are not displayed after passing this
/V - All parameters after /V that are within quotation marks are passed to Windows Installer Service that comes handy with your Windows OS as a service for installing applications from command prompt.
It is an executable file by the name "msiexec.exe." So, msiexec.exe would be doing everything for you provided that you are passing all the required arguments for the installation of your desired software package like "INSTALLDIR, TOSCA_PROJECTS, TOSCACOMMONAPPDATA" are the required arguments in our case for installing TOSCA.
If you want to dig deep into how msiexec.exe works then please visit the link Microsoft Command Line Installer.
The description of each installation path parameter is briefly given in the table below.
Command
|
Description
|
DIAGNOSTICS
|
This parameter can be used to enable or disable Tosca Diagnostics.
Valid values are DIAGNOSTICS = 1 to enable and DIAGNOSTICS = 0 to disable diagnostics feature.
|
INSTALLDIR
|
This
parameter defines the installation path of Tricentis Tosca Testsuite.
Default
Location: C:\Program Files\TRICENTIS\Tosca Testsuite
|
TOSCA_PROJECTS
|
This parameter is for
defining the path where Tosca Projects are saved
Default Location:
C:\Tosca_Projects
|
TOSCACOMMONAPPDATA
|
This
specifies the directory path where user defined settings are saved
Default
Location: C:\Documents and Settings\All Users\Application
Data\TRICENTIS\Tosca Testsuite\7.0.0
|
/QN
|
This parameter ensures
that windows intaller dialogs are not displayed during installation process
|
Note:- If the installation directory path contains spaces, then it must be specified with a backslash followed by quotation marks e.g., \"<Path>"\
Here is the command which I used for doing unattended installation on my machine:
TOSCA<versionnumber>.exe /s /V"INSTALLDIR=\"c:\program files (x86)\TRICENTIS\Tosca\" TOSCA_PROJECTS=\"C:\MyTOSCAProjects\" TOSCACOMMONAPPDATA=\"C:\TOSCAAppData\" /qn"
One more thing to add here is that if you have placed your TOSCA<versionnumber>.exe in some directory/folder then you first need to navigate to that directory/folder by using Change Directory (cd) command on command prompt and then use the above mentioned command. e.g., cd <path_to_folder>.
We are done with the installation and now there are 2 paths ahead, one, you can directly jump to the section which contains how automation is actually done using TOSCA by clicking on Automation Testing Example Using TOSCA or second, if you are a guy like me who before starting to use the tool loves to learn about the tool then you can click on Next button.


No comments:
Post a Comment