Quick Reference: Property Lists
The following tables list SenseTalk properties that you can use with common Eggplant Functional (EPF) commands.
CaptureScreen Properties
Key | Description |
---|---|
ImageInfo | An image property list |
Increment | Whether to append an automatically incremented number to the image; true or false |
Name | An image file name and optional path information, in quotation marks |
Rectangle (or Rect ) | A coordinate pair indicating the top left and bottom right corners of a rectangle to capture. |
For information about using CaptureScreen
, see CaptureScreen Command.
Connection Properties
The properties in a connection property list vary depending on the type of connection.
The properties for a VNC or RDP connection may include:
Key | Description |
---|---|
BlendScaledScreen | Whether or not VNC server blends pixel colors when scaleRemoteScreen is Yes |
Bonjour | Whether or not the SUT was found via Bonjour or zeroconf |
ColorDepth | The color depth of the SUT in the Viewer window: 8, 16, 32 |
Connected | Whether or not Eggplant Functional is currently connected to the SUT |
Height | For RDP connections only, the height of the Viewer window in pixels |
MonitorCount | The number of monitors for an RDP connection |
Name | The display name of the SUT |
Password | Password for the VNC server for a VNC connection, or the Windows user password for an RDP connection |
PortNum | Port number used by the SUT VNC server |
Reverse | Whether or not the connection is a reverse connection (i.e., initiated by the SUT) |
ScaleRemoteScreen | Whether or not VNC server dimensions are scaled by 50 percent |
ScreenSize | The width and height of the SUT screen |
ServerID (required) | SUT host name, IP address, or display name |
sshHost | Host name or IP address of an SSH host |
sshPassword | Password of the user account on the SSH host computer |
sshUser | User account on the SSH host computer |
Type | The method to use to connect to the SUT. Possible values are RDP, VNC, or screenshot |
Username | The Windows username when connecting via RDP |
Visible | Whether or not the Viewer window opens upon connection |
Width | For RDP connections only, the width of the Viewer window in pixels |
The properties for a Sauce Labs connection may include:
Key | Description |
---|---|
APIKey | The Sauce Labs API key for the account |
App | The URL of the app to execute on the device |
BrowserName | The name of the browser, such as "Chrome", "Firefox", etc. |
BrowserVersion | Specific browser version |
ColorDepth | The color depth of the SUT in the Viewer window: 8, 16, 32 |
Connected | Whether or not Eggplant Functional is currently connected to the SUT |
DataCenter | The Sauce Labs data center to connect to |
DeviceName | The device identifier, such as "Iphone 12", etc |
Name | The display name of the SUT |
PlatformName | The name of the operating system platform, such as "Windows 10" or "Android" |
ScreenResolution | The browser screen size in the form width X height, such as "1400x1050" |
ScreenSize | The width and height of the SUT screen, as a list |
Type | For a Sauce Labs connection this will be "SauceLabs" |
URL | The URL of the site to connect to in the browser |
User | The user name for the Sauce Labs account being used |
Visible | Whether or not the Viewer window opens upon connection |
For information about using connection property lists see the Connect
Command and the ConnectionInfo
Function. For general information about connections, see Creating Connections to SUTs.
Image Properties
Key | Description |
---|---|
CaptureDate | The date of image capture, including the time |
CaptureHost | The SUT from which the image was captured |
CaptureLocation | Screen coordinates of the image when it was captured. (This value cannot be changed.) |
CaptureScreenSize | Screen size of the SUT in pixels at time of image capture, given as (width ,height ) |
Characters | Refers to image names from a character collection. See Image Searches Using a Character Collection for more information. |
Cliprectangle | Coordinates that define a rectangle within the image; any pixels outside the cliprectangle are disregarded for image matching |
Discrepancy | The percentage or absolute number of pixels that may differ between an image and a match in the Viewer window. The percentage of pixels (with a percent sign) or number of pixels (with no percent sign) by which the image and a match in the Viewer window can differ. Note: Discrepancy can be slow to use and can result in false positive matches. Preferable approaches include setting the Search Type to Smoothed for Text in the Image Update panel, cropping the image using the Image Editor, or creating an Image Collection that includes several acceptable versions of a basic image. You can also capture a new image if the current image can only be found using a discrepancy search. |
HotSpot | Coordinates of the hot spot within the image, relative to the top-left corner of the image |
ImageDescription | The images description in the Suite Editor Images pane. (This value cannot be changed.) |
ImageName | Name of the image file. (File extension is not used.) |
ImagePath | File path of the image file. (This value cannot be changed.) |
ImageSize | Width and height in pixels. (This value cannot be changed.) |
ImageTolerance | The acceptable difference between color values in an image and a match in the Viewer window |
Pulsing | Whether the search type allows for pulsing; true or false |
Rotate | A degree of rotation (or list or range of degrees) that the image should be found at, if you expect an image to appear at a different angle than was originally captured. Rotation is clockwise |
Scale | The scale factor at which the image is to be found (or was found, as in the case of foundimageinfo() ). For more information, see Scaling Images. |
Searchrectangle | Coordinates that define a rectangle in the Viewer window. Eggplant Functional only looks for this image within the defined rectangle |
SearchType | The search type to be used; Tolerant of Background (Tolerant), Smoothed for Text (Smoothed), Adaptive to Image (Adaptive), Precise to Pixel (Precise), Pulsing to Element (Pulsing), or Smooth and Pulsing. |
WaitFor | The maximum time Eggplant Functional waits for the given image to appear on the SUT |
For information about using image properties, see:
- Image and OCR Searches
- Image File and Suite Information
- Found-Image and Found-OCR Information Functions