Reference for capabilities in Perfecto
Use this reference to familiarize yourself with the capabilities Perfecto supports for automated testing using Appium and Selenium. See also Supported Appium capabilities.
On this page:
Perfecto authentication
Capability name | Description |
---|---|
|
Your personal security token For Appium 2, make sure to provide the security token in a Copy
|
* Mandatory
Capabilities for selecting a mobile device
The following table lists the supported capabilities for selecting a real mobile device. For usage guidance, see Example: Selecting a mobile device for testing.
To view capabilities supported for virtual mobile devices, see Supported capabilities for virtual mobile devices.
Capability name | Description | Values/examples |
---|---|---|
|
Device automation infrastructure of the mobile |
For example: XCUITest, UIAutomation (for iOS), UIAutomator1, UIAutomator2 (for Android) |
|
Determine if device playback audio should be added to the video recording of the execution or not |
true, false. Default is false |
|
The device description |
|
|
The deviceId |
For example: 345304573489573498 |
|
The platform type |
Web, Mobile |
|
The device location |
For Example: NA-US-BOS |
|
manufacturer |
For example: Apple, Samsung, HTC, Microsoft |
|
The device model. |
For example: iPhone-5S, Galaxy S III, Xperia Z, 9100, HTC One |
|
The device network |
For example: AT&T, Verizon |
|
The timeout, in minutes, to wait for a specific device in case it is not available at the start of the script (use with caution) |
Max: 9 minutes |
|
The device operating system |
For example: Android, Windows, iOS |
|
The device operating system version |
For example: 9.3.1 |
|
The resolution of the device screen |
For example: 1920x1080 |
screenshotFormat
|
Type of image |
.jpg (default), .png, .bmp |
Capabilities for selecting a mobile browser
Capability name |
Description |
Values |
---|---|---|
|
Browser application name |
chrome, safari, mobileDefault |
|
Browser version |
for example: 131, 130 |
|
|
Any |
Capabilities for development
Capability name |
Description |
---|---|
|
The Eclipse execution id |
Name used as the Report Name for the Report Library and Live Stream interfaces (see also the Smart Reporting capabilities below) |
To learn more see, Supported Appium capabilities.
Capabilities for testing on virtual mobile devices
To learn more, see Supported capabilities for virtual mobile devices.
Capabilities for Desktop Web testing
Learn which capabilities you can use to configure the web machine and web application you want to run.
Web machine configuration capabilities
The following table lists capabilities you can use to define the machine to be used for your Web app testing. Note that Windows machines are VMs. For usage guidance, see Example: Using web machine configuration capabilities.
Capability name | Description | Values | Comments |
---|---|---|---|
|
Add custom records to the VM's hosts file. |
<key, value> entry, where
|
|
|
The browser running on VM. |
Internet Explorer, Chrome, Firefox, Edge, Safari. |
|
|
The browser version. |
See here for supported browser versions. |
The browserVersion capability supports the following values in addition to a version number:
These values will be translated to the appropriate version number and will be listed in the execution report with the version number. When running a Safari session, you must specify the version number in the |
|
The platform type |
Web, Mobile. |
|
|
The list of web certificates to be installed To learn how to install certificates manually and for information on error codes, see Manage Windows web certificates. |
File names, separated by comma, with the following file extensions: .crt, .cer, .pem |
|
|
Location of Perfecto Web machine facility, when using a virtual web platform. When accessing physical Mac devices use same values as for Mobile selection (See Note2 below) |
US East, EU Germany, AP Sydney. |
The location capability is optional when platformName capability is Windows but mandatory when platformName is Mac. |
|
The VM OS. |
Windows, Mac. |
|
|
The OS version. |
See list of supported versions. |
|
|
The VM display resolution. |
1024x768 (default) See here for complete list of supported resolutions. |
|
|
Upload a file from the Perfecto repository to the virtual machine. Perfecto then downloads the file to the following location on the Mac or virtual Windows machine: Windows: Mac: The location of the uploaded file is returned as part of the return capability uploadedFileLocation. This functionality is also available through the Perfecto extension |
uploadFromRepo |
To use this capability, add it to your test scripts as follows, where Tip: For information on retrieving the file location, see Manage the repository > View, copy, or update file information.
|
* Mandatory
Web application capabilities
Taking screenshots affects the execution time of the desktop web test. Screenshot capabilities support Selenium commands (not, for example, Visual Analysis or Assert). For usage guidance, see Example: Using web application capabilities.
Capability name | Description | Possible values | Default value |
---|---|---|---|
|
System takes screenshots of application at different points during execution and attaches them to the execution report. |
true | false |
false |
|
System takes screenshot of application at point where an error status is reported. Screenshot is attached to the execution report. |
true | false |
true |
General capabilities
Capability name | Description | Value |
---|---|---|
|
Adds the option to wait for an available license when all licenses are in use. In this case, Perfecto displays the following error message:
|
Boolean (default: |
Smart Reporting capabilities
Test analysis with Smart Reporting uses different test identifying parameters as flags associated with the test reports. These identifying items are used to filter, select, or just to easily identify the test report. These values may be associated with the test using the reporting SDK or, alternatively, using the desired capabilities shown in Example: Using Smart Reporting capabilities.
Capability name | Description | Values |
---|---|---|
|
Identifier of the test run project name |
String |
|
Version number associated with the project |
String |
|
CI Job name for this test |
String |
|
CI Job number for this test |
Integer |
|
Name of test branch, if relevant |
String |
|
Any tags user associated with this test |
Strings, separated by a comma (',') |
|
Any set of custom parameters to associate with the test run |
Strings in the format |