Tricentis Tosca 16.0 Released on Feb-2023 ----- UFT has been upgraded from UFT 15.0.1 to UFT One 15.0.2, Beginning at November 2020.

Wednesday, 28 June 2023

TBox Start Program

We can run any program via this module, suppose i want to start the firefox in private mode along with some additional properties. These properties can be defined in the arguments attribute. 

The official definition says this module can open an application or an executable file. Environment variables can also be used to open any applicatin.

NOTE - You cannot run or execute any program or process out of Windows OS

This Module allows you to open an application or an executable file stored in a Microsoft Windows® file system.

Path -- 

The folder TBox Automation Tools->Process Operations in the Standard subset contains the Module TBox Start Program.


TBox Start Program has the following ModuleAttributes:

Path -- Path to the application that you want to open. You can also use environment variables.This entry is mandatory.

Directory --  Specify a working directory for the program. By default, Tricentis Tosca uses the home directory of the registered user: C:\Documents and Settings\<user name>.

Arguments -- If you want to start the application via arguments, specify arguments. By default, Tosca Commander uses ActionMode Select.

Arguments->Argument -Define an argument. You can specify several arguments, one per sub-ModuleAttribute.

WaitforExit -- You can instruct Tricentis Tosca to wait until the application has been exited. To do so, set the value True and use ActionMode Select.

Optionally, specify StandardOutputFile, TimeoutForExit, and ExitCode.

WaitforExit->StandardOutputFile -- If you want Tricentis Tosca to create a log, specify the path and name of the log file.The log includes standard output (stdout) and standard error (stderr).

WaitforExit->TimeoutForExit -- Specify the maximum time in seconds that Tricentis Tosca should wait before exiting the application.

WaitforExit->ExitCode -- Verify your application's exit code. To do so, enter the code into the Value column and use ActionMode Verify

Run as -- Define which domain or local user credentials Tricentis Tosca should use to open the application. By default, Tosca Commander chooses ActionMode Select.

Run as->Username -- User Principal Name (UPN) format of the user name that should open the application.For example: jdoe@company.com.

Run as->Password -  If needed, specify the password of the user.


Opening the application Notepad.exe, which is located at C:\Windows.


Note - Credentional are optional

Opening the  file Test01.xml, which is located at D:\, with the program notepad.exe, which is located at C:\WindowsThe defined working directory is C:\Temp.


Opening the www.tricentis.com in Internet Explorer  private mode



No comments:

Post a Comment

Note: only a member of this blog may post a comment.