TestResults.io
  • What is TestResults.io
  • System Architecture
  • Regulated Markets
    • Health Care Industry
    • Financial Services Industry
  • What's new?
    • Update Instruction
      • Update of the Designer extension in Visual Studio
      • Update the Execution Engine
      • Update the Base- and Environment Models
    • Migration to new project file
  • Designer
    • Overview
    • First Steps
    • Installation
    • TestResults.io solution
    • The development environment
      • Tool Window Overview
        • Test Environments
          • Steps to configure a SUT VM
          • How to access files on the system under test
        • Remote Viewer
          • Control Mode
          • Capture Mode
          • Screen Editor
          • Capture Single Image
        • Screen Explorer
        • Test Case Designer
        • Image Explorer
        • API Testing
        • TestResults.io options
          • Engines
          • Servers
    • Test Cases
      • Adding Test Cases
      • Test Case structure
      • Simple Test Case (Example)
      • Executing your Test Case
      • Generating Test Containers
      • Publishing Test Cases
      • Execution Variables
    • Software Models
      • Adding SW Models
      • Referencing the Model in the Test Case
      • Generating Test Containers
      • Publishing SW Models
      • Screens and Screen Elements
        • Tables
        • Visual Sense
        • Custom Screen Elements
    • Installers
      • Adding Installers
      • Generating Test Containers
      • Publishing Installers
    • Automation Framework Reference
      • Attributes
      • Enumerations
      • Filters
        • IImageFilter Interface
        • Select
        • Resize
      • GlobalEngineParameters
      • ImageDetectionParameters
      • ImageReference
      • Interfaces
        • ITester Interface
          • ITester Methods
          • ITester Properties
        • ITestee Interface
          • ITestee Methods
        • IConnections Interface
          • IConnections Methods
          • IConnections Properties
        • IDebug Interface
        • IEngineResult
        • IHelpers Interface
        • IImageHelper Interface
          • IImageHelper Methods
        • IKeyboard Interface
          • IKeyboard Methods
        • IMouse Interface
          • IMouse Methods
          • IMouse Properties
        • IReport Interface
          • IReport Methods
        • ISUTConnection Interface
      • OcrEngineParameters
        • Best practise
        • IronOcrEngineParameters
        • LEADOcrEngineParameters
        • OcrEngineRelatedCharacters
        • OcrPreprocessingParameters
      • ResultRectangle
      • SutNotReadyException
      • TestStepAbortedException
    • FAQ
      • Two-factor authentication (2FA) and One Time Passwords (OTP)
      • Receive and verify Emails
      • Using Excel as test data source
      • Verify PDF Content
  • Portal
    • Overview
    • First Steps
    • User's Guide
      • Login
      • Projects
      • Dashboard
      • Test Cases
      • Software & Environments
      • Test Sets
      • Job Queue
      • Management
      • Notifications Summary
    • Automation Engineer's Guide
      • Test Automation Workflow
      • Automating a test case
      • Enabling Software & Environments
    • REST API Reference
      • Authentication
      • Projects
      • Test Sets
      • Test Cases
      • Test Plans
      • Test Reports
      • Files
      • Software
      • Environments
      • Untitled
      • Executions
      • Favorites
      • Statistics
      • User Management
      • Customer Management
      • Notifications
      • Configurations
      • Invoicing
  • Models
    • Overview
    • Base Model
      • BaseScreen
        • BaseScreen Properties
        • BaseScreen Methods
      • OnScreenElement
        • OnScreenElement Methods
        • OnScreenElement Properties
      • Primitives
        • Button
          • Button Methods
          • Button Properties
        • Checkbox
          • Checkbox Methods
        • ContextMenu
          • ContextMenu Methods
          • ContextMenu Properties
        • Dropdown
          • Dropdown Methods
          • Dropdown Properties
        • DropdownMenu
          • DropdownMenu Methods
          • DropdownMenu Properties
        • GenericScroller
          • GenericScroller Methods
          • GenericScroller Properties
        • HorizontalScroller
        • IconButton
          • IconButton Properties
        • Label
        • LabelWithButton
          • LabelWithButton Properties
        • LabelWithCheckbox
          • LabelWithCheckbox Properties
        • LabelWithValue
          • LabelWithValue Methods
          • LabelWithValue Properties
        • PwTextBox
          • PwTextBox Methods
        • TextBox
          • TextBox Methods
          • TextBox Properties
        • Tables and lists
          • Column
            • Column Methods
            • Column Properties
          • ItemList
            • ItemList Methods
            • ItemList Properties
          • Row
            • Row Methods
            • Row Properties
          • TableBase
            • TableBase Methods
            • TableBase Properties
        • LabelWithElementBase
          • LabelWithElementBase Properties
      • Enumerations
      • Extensions
        • EngineResultExtensions Methods
        • EnumExtensions Methods
        • ReportExtensions Methods
        • StringExtensions Methods
        • TesterConnectionExtensions Methods
        • TesterDebugExtensions Methods
        • TesterHelperExtensions Methods
        • TesterMouseExtensions Methods
        • TesterOnScreenElementExtensions
        • TesterSelectExtensions Methods
      • Helper Classes
        • BaseModelHelpers
          • BaseModelHelpers Methods
          • BaseModelHelpers Properties
        • Attributes for Designer
        • ListHelpers
      • Exceptions
        • ElementNotFoundException
        • InteractionFailedException
        • ScreenNotFoundException
      • Interfaces
        • IAppBasics Interface
          • IAppBasics Methods
          • IAppBasics Properties
        • IBrowser
        • ICommandLineWindow
        • IScroller Interface
          • IScroller Methods
          • IScroller Properties
        • ISutLocale Interface
          • ISutLocale Methods
          • ISutLocale Properties
        • ISystemHelpers
        • ISystemInteractions
        • IWindow
    • Environment Model
      • Windows
        • Screens
          • CmdWindow
            • CmdWindow Methods
            • CmdWindow Properties
          • FileDialog
            • FileDialog Methods
            • FileDialog Properties
          • FileExplorer
            • FileExplorer Properties
          • RunWindow
            • RunWindow Methods
            • RunWindow Properties
          • Window
            • Window Methods
            • Window Properties
        • SutLocale
          • SutLocale Methods
          • SutLocale Properties
        • SystemHelpers
          • SystemHelpers Methods
          • SystemHelpers Properties
        • SystemInteractions
        • WebBrowser
          • Browser
            • Browser Methods
            • Browser Properties
          • BrowserScroller
            • BrowserScroller Methods
            • BrowserScroller Properties
          • AuthenticationDialog
            • AuthenticationDialog Methods
            • AuthenticationDialog Properties
          • DownloadDialog
            • DownloadDialog Methods
            • DownloadDialog Properties
        • EnvironmentModel Enumerations
        • Interfaces
          • IWebAppBasics
            • IWebAppBasics Property
Powered by GitBook
On this page
  • Description
  • ISystemHelpers Interface
  • Methods
  • Properties

Was this helpful?

  1. Models
  2. Base Model
  3. Interfaces

ISystemHelpers

Description

Various methods to interact with the operating system.

You can access the SystemHelpers through the generated App class from your test case:

App.SystemHelpers.CreateFolderPath(@"C:\Temp");

Or from a screen through the IAppBasics Interface:

AppBasics.SystemHelpers.DeleteFile(@"C:\Temp\Dummy.txt");

ISystemHelpers Interface

Namespace: Progile.TRIO.BaseModel Assembly: Progile.TRIO.BaseModel (in Progile.TRIO.BaseModel.dll)

Methods

Name

Description

Checks if a file or folder exists on the SUT filesystem. To check if a folder exist pass in the folder with the path without the last "\" at the end.

Closes all instances of the webbrowser. Warning for Close all tabs will be confirmed. Throws an exception if after 5 minutes not all windows could be closed.

Copies the file(s) from the source path to the destination folder path. The name of the file will remain the same.

Note: For copying of whole folders use CopyFolder instead.

Copies the folder (with all files and subfolders) from the source path to the destination folder path.

If destination folder doesn not exist yet, it will be created.

Creates new folders for the specified path using mkdir command. If path already exists, command will return an error, but no further action is done (the outcome of the CreateFolderPath method is unaffected).

Deletes a file or folder on the SUT filesystem. To delete a folder include the "\" at the end to indicate it's a folder.

Determines the current CPU load percentage on the SUT.

Gets the computer name of the SUT.

Gets the build version of the operating system on the SUT.

Kills a program or process from the run menu in windows (using Win-R key-shortcut).

Logs in the most recent user to the operating system from the welcome or lock screen if required.

If login failed a TestStepAbortedException is thrown.

Checks if a command line window is already open on the screen, if not opens a new command line window, if yes prepares it for new commands.

Runs the webpage.bat from Installer directory that will open the target webpage for the SUT.

Starts a program or process from the run menu in windows (using Win-R key-shortcut).

Mounts the remote directory that is provided by the execution host. If assigned drive is already in use, it is disconnected first. Uses default drive letter R.

Extracts an archive to the destination folder.

Properties

Name

Description

The path to the artifacts directory that is mapped on the SUT. The content of the artifacts directory will be provided for download in artifacts folder for the report in the TestResults.io portal. By default: "R:\"

The path to the directory where the installer files are mapped on the SUT. By default: "R:\RequestedContent\SoftwareExecutable\"

The Type of the SUT OS, e.g. Windows or MacOSX.

The path to the directory where the supporting files are mapped on the SUT. Default: "R:\SupportingFiles\"

The path to a temporary folder that is unique to the currently running tc. Default: "C:\Temp\{reportId}\"

The rectangle of the SUT screen that can be used by a windowed application. In particular for Windows it subtracts the taskbar height from the fullscreen.

PreviousISutLocale PropertiesNextISystemInteractions

Last updated 2 years ago

Was this helpful?

This method checks that the desktop of the environment is completely loaded and checks the CPU load of the SUT from the cmd window to ensure the system is responsive (CPU load below 40%). If an is used, this should be called from installer step, otherwise from test case step.

Logs the name and version of the environment model contained in this assembly. Should be called in step of every test case using the environment model.

Gives access to the implementation that provides basic interactions such as keyboard shortcuts for the target operating system.

system interactions
ArtifactsDirectory
InstallerDirectory
OsType
SupportingFilesDirectory
SystemInteractions
TempFolderOnSut
UsableScreen
installer testcase
setup test
Precondition
Precondition
CheckFileExists
CloseAllBrowsers
CopyFiles
CopyFolder
CreateFolderPath
DeleteFile
EnvironmentReady
GetCpuLoadPercentage
GetComputerName
GetOsBuildVersion
KillProcess
LogEnvironmentModelVersion
LoginRecentUser
OpenCommandLineWindow
OpenWebUrl
RunProcess
SetUpRemoteDirectory()
UnzipFile