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
  • AddFilter
  • ClearFilter
  • FindImage
  • FindImages
  • FindText
  • FindTexts
  • GetCurrentScreen
  • GetRemoteClipboard
  • GetRemoteClipboard (int?)
  • GetRemoteClipboard (bool, int?)
  • GetText
  • RefreshScreen
  • RegisterForUpdateCheck
  • SaveImage
  • SetRemoteClipboard
  • TakeScreenshot
  • UnregisterFromUpdateCheck

Was this helpful?

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

ITestee Methods

AddFilter

Adds a global image processing filter. All filters will be applied to the current screen of the subject under test before further processing (image recognition, ocr) takes place.

Syntax:

void AddFilter(
	IImageFilter filter
)

Parameter

Description

filter

ClearFilter

Removes all globally registered image processing filters.

Syntax:

void ClearFilter()

FindImage

Executes an image search (single result) on the subject under test.

How TestResults.io works with image references:

The engine will try to find the image that is specified by imageName or all images contained in the folder (incl subfolders) specified by imageName. imageName refers to the relative location within the Images directory of the project, folders are separated by dots. E.g. "Screens.MyScreen.MyImage". However the designer automatically generates classes so you can use intelliSense to specify the image, the same image would be provided with TestImages.MyProject.Images.Screens.MyImage or just Images.Screens.MyImage if the correct using is set.

Syntax:

IEngineResult FindImage(
	string imageName,
	TimeSpan searchDuration = default,
	ImageDetectionParameters parameters = null,
	params IImageFilter[] filters
)

Parameter

Description

imageName

[searchDuration]

[parameters]

[filters]

Specifies a collection of possible filters that are used to pre-process the current screen image before the image will be searched for

FindImages

Executes an image search (multiple results) on the subject under test.

Syntax:

IList<IEngineResult> FindImages(
	string imageName,
	TimeSpan searchDuration = default,
	ImageDetectionParameters parameters = null,
	params IImageFilter[] filters
)

Parameter

Description

imageName

[searchDuration]

[parameters]

[filters]

Specifies a collection of possible filters that are used to pre-process the current screen image before the image will be searched for

FindText

Executes a text search (single result) on the subject under test

Syntax:

IEngineResult FindText(
	string content,
	TimeSpan searchDuration = default,
	OcrEngineParameters parameters = null,
	params IImageFilter[] filters
)

Parameter

Description

content

[searchDuration]

[parameters]

[filters]

Specifies a collection of possible filters that are used to pre-process the current screen image before the text is search for

FindTexts

Executes a text search (multiple results) on the subject under test

Syntax:

IList<IEngineResult> FindTexts(
	string content,
	TimeSpan searchDuration = default,
	OcrEngineParameters parameters = null,
	params IImageFilter[] filters
)

Parameter

Description

content

[searchDuration]

[parameters]

[filters]

Specifies a collection of possible filters that are used to pre-process the current screen image before the text is search for

GetCurrentScreen

Returns the screen of the currently active SUT.

Syntax:

Bitmap GetCurrentScreen(
	params IImageFilter[] filters
)

Parameter

Description

[filters]

Specifies a collection of possible filters that are used to pre-process the current screen before the image is taken

GetRemoteClipboard

Overload List

Name

Description

GetRemoteClipboard (int?)

Returns the clipboard content of the subject under tests.

GetRemoteClipboard (bool, int?)

Returns the clipboard content of the subject under tests.

GetRemoteClipboard (int?)

Returns the clipboard content of the subject under tests. The method waits until the subject under test signals that there is new content in its clipboard. If the subject under test signals the availablity of new content before this method is called the call will return instantly with the information of the remote clipboard. If no new content is received during waitTimeout, the last content that was received is returned.

Note that for most VNC servers no new content is signaled, when the same content is copied again, or an empty text selection is copied.

Syntax:

string GetRemoteClipboard(
    int? waitTimeout = null
)

Parameter

Description

[waitTimeout]

Return Value: The content of the SUT clipboard.

GetRemoteClipboard (bool, int?)

Returns the clipboard content of the subject under tests. The method waits until the subject under test signals that there is new content in its clipboard. If the subject under test signals the availablity of new content before this method is called the call will return instantly with the information of the remote clipboard. If no new content is received during waitTimeout, the last content that was received is returned, but wasTimeoutTriggered is set to true.

Note that for most VNC servers no new content is signaled, when the same content is copied again, or an empty text selection is copied.

Syntax:

string GetRemoteClipboard(
	out bool wasTimeoutTriggered,
	int? waitTimeout = null
)

Parameter

Description

wasTimeoutTriggered

Set to true if the provided timeout passed. To make sure that you got the most accurate content, you can check this property

[waitTimeout]

Return Value: The content of the SUT clipboard.

GetText

Reads the text on the screen of the subject under test

Syntax:

string GetText(
	OcrEngineParameters parameters,
	params IImageFilter[] filters
)

Parameter

Description

[parameters]

[filters]

Specifies a collection of possible filters that are used to pre-process the current screen image before the text is to be found

Return Value: Returns all text found on the current screen

RefreshScreen

Forces the internal data structure to be updated with a new screenshot from the subject under test

Syntax:

void RefreshScreen()

RegisterForUpdateCheck

Syntax:

Guid RegisterForUpdateCheck(
	Action<double> updateHandler,
	double allowedEuclideanDistance,
	params IImageFilter[] filters
)

Parameter

Description

updateHandler

Method to call once an update happens

allowedEuclideanDistance

Defines how much of the reference image can be changed

filters

Specifies a collection of possible filters that are used to pre-process the current screen image before the screenshot is taken

SaveImage

Saves an image with the specified name and additional information which might be setup via the global properties

Syntax:

IEngineResult SaveImage(
	Bitmap image,
	string name,
	out string persistedName
)

Parameter

Description

image

Image to save

name

Specifies the base name of the image

persistedName

Contains the fully qualified name, generated by the TestResults.io runner

SetRemoteClipboard

Sets the clipboard content of the subject under test

Syntax:

void SetRemoteClipboard(
	string content
)

Parameter

Description

content

Information to put into the remote clipboard

TakeScreenshot

Takes a screenshot and saves it with the specified name and additional information which might be setup via the global properties.

Syntax:

IEngineResult TakeScreenshot(
	string name,
	params IImageFilter[] filters
)

Parameter

Description

name

Specifies the base name of the screenshot

[filters]

Specifies a collection of possible filters that are used to pre-process the current screen image before the screenshot is taken

UnregisterFromUpdateCheck

Unregisters a callback for graphical updates from the SUT.

Syntax:

void UnregisterFromUpdateCheck(
	Guid updateCheckId
)

Parameter

Description

updateCheckId

Identifier received while registering the update check

PreviousITestee InterfaceNextIConnections Interface

Last updated 5 years ago

Was this helpful?

Type: An implementation of an IImageFilter that should be applied, e.g. .

Type: Name of the image to find (see for details)

Type: Defines how long the search should be run while no result is found

Type: Additional settings used for this search

Type: []

Return Value: Returns an with the position where the image was found

Type: Name of the image to find (see for details)

Type: Defines how long the search should be run while no result is found

Type: Additional settings used for this search

Type: []

Return Value: Returns a list of with all positions where the image was found

Type: Text to find

Type: Defines how long the search should be run while no result is found

Type: Additional settings used for this search

Type: []

Return Value: Returns an with the position, detected text and corresponding accuracy where the specified text was found as a best match, i.e. highest accuracy

Type: Text to find

Type: Defines how long the search should be run while no result is found

Type: Additional settings used for this search

Type: []

Return Value: Returns a list of with all positions, detected text and corresponding accuracy where the specified text was found.

Type: []

Returns a of the filtered current screen.

Type: <>

Maximum time in milliseconds the function waits to receive content from the remote clipboard. Defaults to t.Properties.if null or not set.

Type:

Type: <>

Maximum time in milliseconds the function waits to receive content from the remote clipboard. Defaults to t.Properties.if null or not set.

Type: Additional settings used for this search

Type: []

Registers a callback for graphical updates from the SUT. Must be unregistered afterwards by calling with the corresponding GUID. Use or for easier use of this functionality.

Type: <>

Type:

Type: []

Return Value: Returns a to identify the callback that has to be provided when unregistering.

Type:

Type:

Type:

Type:

Type:

Type: []

Type:

IEngineResult
IEngineResult
IEngineResult
IEngineResults
Bitmap
GUID
ImageFilter
Select
TimeSpan
ImageDetectionParameters
IImageFilter
TimeSpan
ImageDetectionParameters
IImageFilter
String
TimeSpan
OcrEngineParameters
IImageFilter
String
TimeSpan
OcrEngineParameters
IImageFilter
IImageFilter
Nullable
Int32
Boolean
Nullable
Int32
OcrEngineParameters
IImageFilter
Action
Double
Double
IImageFilter
Bitmap
String
String
String
String
IImageFilter
Guid
String
above
String
above
UnregisterFromUpdateCheck
t.WaitUntilStableScreen
t.WaitUntilScreenUpdate
ClipboardTimeOut
ClipboardTimeOut