Skip to main content
Transform your testing process with: Real Device Features, Company-wide Licences, & App Percy
No Result Found

Visual logs

Visual Logs enables you to automatically capture screenshots for various Appium commands executed in your test session. Using visual logs you can:

  • Detect the exact step where the failure occurred.
  • Identify any layout or design related issues in your application.

Visual logs are available on the BrowserStack dashboard for 60 days. These logs will be deleted after 60 days from the day they were generated.

Visual logs are disabled by default. To enable visual logs, use the capability as shown below.

If you are using BrowserStack SDK, you can set the following capability within the browserstack.yml file:

Capability Description Value
debug Generate screenshots for various appium commands in your test true, false
Default: false
browserstack.yml
Copy icon Copy

BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.

Use the following code snippet to set the Visual logs capability to true:

Capability Description Value
debug Generate screenshots for various appium commands in your test true, false
Default: false

Example :

DesiredCapabilities capabilities = new DesiredCapabilities();
HashMap<String, Object> browserstackOptions = new HashMap<String, Object>();
browserstackOptions.put("debug", "true");
var capabilities = {
	'bstack:options' : {
		"debug" : "true",
	}.
}
AppiumOptions capabilities = new AppiumOptions();
Dictionary<string, object> browserstackOptions = new Dictionary<string, object>();
browserstackOptions.Add("debug", "true");
$caps = array(
    'bstack:options' => array(
        "debug" => "true",
    ),
)
desired_cap = {
	'bstack:options' : {
		"debug" : "true",
	},
}
capabilities = {
    'bstack:options' => {
        "debug" => "true",
    },
}
Capability Description Value
browserstack.debug Generate screenshots for various appium commands in your test true, false
Default: false

Example :

DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("browserstack.debug", "true");
var capabilities = {
"browserstack.debug" : "true",
}
AppiumOptions capabilities = new AppiumOptions();
capabilities.AddAdditionalCapability("browserstack.debug", "true");
$caps = array(
"browserstack.debug" => "true"
)
desired_cap = {
"browserstack.debug" : "true"
}
caps = Selenium::WebDriver::Remote::Capabilities.new
caps["browserstack.debug"] = "true"

Access visual logs from the dashboard:

The visual logs can be accessed from the test sessions details page on the App Automate Dashboard. On the Text Logs tab, select the Visuals checkbox to view the screenshots taken during the test execution.

Access visual logs from the dashboard

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle