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
  • GetVariable
  • IsVersion
  • Log
  • PopLogScope
  • PushLogScope
  • RequestFile
  • Wait
  • WaitForInteractionTimeout
  • WaitForManualInteraction
  • WaitForParallelTestCasesToBeAvailable

Was this helpful?

  1. Designer
  2. Automation Framework Reference
  3. Interfaces
  4. ITester Interface

ITester Methods

PreviousITester InterfaceNextITester Properties

Last updated 8 months ago

Was this helpful?

GetVariable

Returns the content of a variable as a string. If the variable is not defined the defaultValue is returned. The variables can be defined in the portal either under the or the .

Syntax:

string GetVariable(
	string name,
	string defaultValue = ""
)

Parameter

Description

name

Type: String

Name of the variable to return. Casing does not matter.

[defaultValue]

Type: String

Value to return if the variable is not found or defined.

Return Value: Content of the variable defined by name or defaultValue if the variable name is not found.

IsVersion

Checks if the current TR.IO Framework fullfills the required version constraints.

Syntax:

bool IsVersion(
    Version minVersion = null,
    Version maxVersion = null
)

Parameter

Description

[minVersion]

Name of the variable to return. Casing does not matter.

[maxVersion]

Value to return if the variable is not found or defined.

Return Value: True if the constraints are fullfilled, false otherwise.

Log

Writes information to the public execution log.

Syntax:

bool Log(
    string content
)

Parameter

Description

content

Information to write to the execution log

PopLogScope

Syntax:

void PopLogScope();

PushLogScope

Pushes a new scope to the current log scope stack. Every log entry will be started with all currently pushed scopes in the front of it. Log scopes are only valid within a single step and will be automatically removed after a step finished. If you want to use different scopes in the same step, each PushLogScope should be matched by a corresponding PopLogScope. Example for usage:

public void MyMethod()
{
    t.Log("MyScreen.MyMethod()");
    t.PushLogScope("MyScreen.MyMethod");
    try
    {
        // everything in this block will be logged with the scope MyScreen.MyMethod
        DoSomething();
        return;
    }
    finally { t.PopLogScope(); }
}
0000002890,[STEP 1]:MyScreen.MyMethod()
0000002894,[STEP 1]:[MyScreen.MyMethod]:A log from DoSomething
0000002899,[STEP 1]:[MyScreen.MyMethod]:Something else that was logged in MyMethod
0000020101,[STEP 1]:Something that was logged after MyMethod returned

Syntax:

void PushLogScope(
    string logScope
);

Parameter

Description

logScope

Type: string

Name of the new log scope, often given as ClassName.MethodName

RequestFile

Tries to copy the requested filetype from the TestResults.io portal storage to the remote directory that holds the supporting files. Usage:

t.RequestFile(RequestableFileTypeEnum.SoftwareExecutable, out string zipName, false);
SystemHelpers.UnzipFile(SystemHelpers.InstallerDirectory + zipName, installationDir
t.RequestFile(RequestableFileTypeEnum.SoftwareExecutable, out _, true);
SystemHelpers.CopyFile(SystemHelpers.InstallerDirectory + "myFileNameInArchive", targetDir);

Syntax:

bool RequestFile(
    RequestableFileTypeEnum requestedFile,
    out string outputName,
    bool autoExpand = false
)

Parameter

Description

requestedFile

Type: RequestableFileTypeEnum

Filetype to copy to the supporting files remote directory (currently only supports SoftwareExecutable)

outputName

Type: string

Name under which the requested file will be available in the remote directory (relative to the RequestedContent subdirectory). This is especially relevant

[autoExpand]

Type: bool

Specifies if the file should be expanded if required (e.g. a zip file). Default false

Return Value: True if the file could be downloaded, false otherwise.

Wait

Waits for the defined amount of seconds

Syntax:

void Wait(
	double seconds
)

Parameter

Description

seconds

Type: Double

Amount to wait for in second, e.g. half a second can be represented by 0.5

WaitForInteractionTimeout

Syntax:

void WaitForInteractionTimeout()

WaitForManualInteraction

Blocks the execution of the current step until the manual interaction is confirmed

Syntax:

void WaitForManualInteraction(
	string messageToShow
)

Parameter

Description

messageToShow

Type: String

Message to show to the user

WaitForParallelTestCasesToBeAvailable

For performance tests only. Stops the execution of the test case until all other test case instances are ready to be executed simultaneously.

Syntax:

void WaitForParallelTestCasesToBeAvailable(
	double maxRequestIntervallTimeInMinutes = 5,
	double maximumWaitTimeInMinutes = 60
)

Parameter

Description

[maxRequestIntervallTimeInMinutes]

Type: Double

Specifies the maximum wait time until the method queries the API for a start time. A start time will only returned after all test cases have queried the API at least once. Default 5.

[maximumWaitTimeInMinutes]

Type: Double

Specifics the maximum time the method waits until it gets an allowed execution start time. The maxmiumWaitTimeInMinutes is only checked until an execution start time was received from the API. Once the time was received the method does not abort anymore. Default 60.

Type:

Type:

Type:

Removes the last log scope from the stack. See below under for details of usage.

Waits for the specified interaction timeout () in case the last operation was an interaction and the time between the last interaction and this call is less than the specified timeout. This is done automatically for "high-level" actions on ITestee such as or , but not for all "low-level" actions such as .

PushLogScope
Version
Version
Version
Keyboard.Type
Keyboard.Down
GeneralInteractionWaitTime
software version
Mouse.Click
test plan