ITester Methods
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 test plan or the software version.
Syntax:
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:
Parameter | Description |
[minVersion] | Type: Version Name of the variable to return. Casing does not matter. |
[maxVersion] | Type: Version 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:
Parameter | Description |
content | Type: Version Information to write to the execution log |
PopLogScope
Removes the last log scope from the stack. See below under PushLogScope for details of usage.
Syntax:
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:
Syntax:
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:
Syntax:
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:
Parameter | Description |
seconds | Type: Double Amount to wait for in second, e.g. half a second can be represented by 0.5 |
WaitForInteractionTimeout
Waits for the specified interaction timeout (GeneralInteractionWaitTime) 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 Mouse.Click or Keyboard.Type, but not for all "low-level" actions such as Keyboard.Down.
Syntax:
WaitForManualInteraction
Blocks the execution of the current step until the manual interaction is confirmed
Syntax:
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:
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. |
Last updated