CmdWindow
Description
The CmdWindow class represents the Window console or command window and allows to run commands (e.g. copying file, mapping remote directory etc.) Open the cmd window with SystemHelpers.OpenCmdWindow(). Then you can run you own commands like so:
CmdWindow Class
Namespace: Progile.TRIO.EnvironmentModel Assembly: Progile.TRIO.EnvironmentModel.Windows (in Progile.TRIO.EnvironmentModel.Windows.dll)
Inheritance Hierarchy:
Object Progile.TRIO.BaseModel.OnScreenElement Progile.TRIO.BaseModel.BaseScreen Progile.TRIO.EnvironmentModel.Window Progile.TRIO.EnvironmentModel.CmdWindow
Constructors
Syntax:
Parameter | Description |
t | Type: ITester The tester interface. |
systemHelper | Type: ISystemHelpers An instance of the ISystemHelpers interface that allows interaction with the SUT operating system. |
Methods
Name | Description |
Clears the current console session by running the "cls" command. | |
Enters the specified text in the console and verifies the input. | |
Makes sure the console is ready for a new command. Clears existing input text that is not run yet and aborts a running command with Ctrl+C if necessary. | |
Enters the provided command and runs it by pressing enter. Returns as soon as the first output of the command is received (on the next line). | |
Verifies the expected text appears in the output of the last command. Allows to pass in different variants of the text in order to allow for different localisations. | |
Waits for a command to complete by waiting until the console is ready for a new command. Note: an input request is not considered a completed command and will most likely timeout the method. |
Protected Properties
Name | Description |
The cursor marking the input location in the console. | |
The label marking that the console is ready for a new command. |
Last updated