ITestee Methods
Last updated
Last updated
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:
Removes all globally registered image processing filters.
Syntax:
Executes an image search (single result) on the subject under test.
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:
Return Value: Returns an IEngineResult with the position where the image was found
Executes an image search (multiple results) on the subject under test.
Syntax:
Return Value: Returns a list of IEngineResult with all positions where the image was found
Executes a text search (single result) on the subject under test
Syntax:
Return Value: Returns an IEngineResult with the position, detected text and corresponding accuracy where the specified text was found as a best match, i.e. highest accuracy
Executes a text search (multiple results) on the subject under test
Syntax:
Return Value: Returns a list of IEngineResults with all positions, detected text and corresponding accuracy where the specified text was found.
Returns the screen of the currently active SUT.
Syntax:
Returns a Bitmap of the filtered current screen.
Overload List
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:
Return Value: The content of the SUT clipboard.
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:
Return Value: The content of the SUT clipboard.
Reads the text on the screen of the subject under test
Syntax:
Return Value: Returns all text found on the current screen
Forces the internal data structure to be updated with a new screenshot from the subject under test
Syntax:
Registers a callback for graphical updates from the SUT. Must be unregistered afterwards by calling UnregisterFromUpdateCheck with the corresponding GUID. Use t.WaitUntilStableScreen or t.WaitUntilScreenUpdate for easier use of this functionality.
Syntax:
Return Value: Returns a GUID to identify the callback that has to be provided when unregistering.
Saves an image with the specified name and additional information which might be setup via the global properties
Syntax:
Sets the clipboard content of the subject under test
Syntax:
Takes a screenshot and saves it with the specified name and additional information which might be setup via the global properties.
Syntax:
Unregisters a callback for graphical updates from the SUT.
Syntax:
Parameter
Description
filter
Type: ImageFilter An implementation of an IImageFilter that should be applied, e.g. Select.
Parameter
Description
imageName
[searchDuration]
Type: TimeSpan Defines how long the search should be run while no result is found
[parameters]
Type: ImageDetectionParameters Additional settings used for this search
[filters]
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen image before the image will be searched for
Parameter
Description
imageName
[searchDuration]
Type: TimeSpan Defines how long the search should be run while no result is found
[parameters]
Type: ImageDetectionParameters Additional settings used for this search
[filters]
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen image before the image will be searched for
Parameter
Description
content
Type: String Text to find
[searchDuration]
Type: TimeSpan Defines how long the search should be run while no result is found
[parameters]
Type: OcrEngineParameters Additional settings used for this search
[filters]
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen image before the text is search for
Parameter
Description
content
Type: String Text to find
[searchDuration]
Type: TimeSpan Defines how long the search should be run while no result is found
[parameters]
Type: OcrEngineParameters Additional settings used for this search
[filters]
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen image before the text is search for
Parameter
Description
[filters]
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen before the image is taken
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.
Parameter
Description
[waitTimeout]
Maximum time in milliseconds the function waits to receive content from the remote clipboard. Defaults to t.Properties.ClipboardTimeOut if null or not set.
Parameter
Description
wasTimeoutTriggered
Type: Boolean
Set to true if the provided timeout passed. To make sure that you got the most accurate content, you can check this property
[waitTimeout]
Maximum time in milliseconds the function waits to receive content from the remote clipboard. Defaults to t.Properties.ClipboardTimeOut if null or not set.
Parameter
Description
[parameters]
Type: OcrEngineParameters Additional settings used for this search
[filters]
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen image before the text is to be found
Parameter
Description
updateHandler
allowedEuclideanDistance
Type: Double
Defines how much of the reference image can be changed
filters
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen image before the screenshot is taken
Parameter
Description
image
Type: Bitmap
Image to save
name
Type: String
Specifies the base name of the image
persistedName
Type: String
Contains the fully qualified name, generated by the TestResults.io runner
Parameter
Description
content
Type: String
Information to put into the remote clipboard
Parameter
Description
name
Type: String
Specifies the base name of the screenshot
[filters]
Type: IImageFilter[]
Specifies a collection of possible filters that are used to pre-process the current screen image before the screenshot is taken
Parameter
Description
updateCheckId
Type: Guid
Identifier received while registering the update check