Run automated web tests on BrowserStack Automate using setupBrowserStackAutomateTests MCP tool. Use for cross-browser testing with Selenium/Playwright/Cypress.
setupBrowserStackAutomateTests - Integrate BrowserStack SDK and run testsfetchAutomationScreenshots - Get screenshots from test sessionsgetFailureLogs - Retrieve error logs for failed testsUse the setupBrowserStackAutomateTests MCP tool:
"Run my Selenium tests on Chrome and Firefox using BrowserStack"
"Setup my Playwright tests for BrowserStack and run on Safari 17"
"Run my Cypress tests on Chrome 120 (Windows 11) and Edge (Windows 11)"
What the tool does:
Example:
"Run my Selenium-JUnit5 tests written in Java on Chrome and Firefox. Enable Percy for visual testing."
Fetch screenshots from test sessions using fetchAutomationScreenshots:
"Get screenshots from Automate session ID abc123xyz"
"Show me screenshots from my last test run"
Retrieve error logs using getFailureLogs:
"Get error logs from session ID 21a864032a7459f1e7634222249b316759d6827f"
"Show me failure logs from my last Automate test"
Setup Different Test Frameworks:
"Setup my Playwright tests for BrowserStack Automate"
"Run my Selenium WebDriver tests on Chrome, Firefox, and Safari"
"Configure my Cypress tests to run on BrowserStack"
Enable Visual Testing:
"Run my tests on BrowserStack with Percy enabled for visual regression testing"
Debug Failed Tests:
"Get screenshots and error logs from session abc123"
"Show me what went wrong in my last Automate test run"
User: "I need to run my Playwright tests on Chrome, Firefox, and Safari"
Steps:
"Setup my Playwright tests for BrowserStack and run on Chrome 120, Firefox 122, Safari 17"setupBrowserStackAutomateTests configures and runs tests"Get error logs from the failed session""Show me screenshots from session XYZ"