|
| 1 | +# ============================= |
| 2 | +# Set BrowserStack Credentials |
| 3 | +# ============================= |
| 4 | +# Add your BrowserStack userName and accessKey here or set BROWSERSTACK_USERNAME and |
| 5 | +# BROWSERSTACK_ACCESS_KEY as env variables |
| 6 | +userName: 'username' |
| 7 | +accessKey: 'accesskey' |
| 8 | + |
| 9 | +# ====================== |
| 10 | +# BrowserStack Reporting |
| 11 | +# ====================== |
| 12 | +# The following capabilities are used to set up reporting on BrowserStack: |
| 13 | +# Set 'projectName' to the name of your project. Example, Marketing Website |
| 14 | +# Note: Avoid using special characters like |, ;, >, <, ", ?, %, /, \, newlines, carriage returns, or tabs in project names |
| 15 | +projectName: "Sample E-Commerce Application" |
| 16 | +# Set `buildName` as the name of the job / testsuite being run |
| 17 | +buildName: "E-Commerce Selenium Tests" |
| 18 | +# `buildIdentifier` is a unique id to differentiate every execution that gets appended to |
| 19 | +# buildName. Choose your buildIdentifier format from the available expressions: |
| 20 | +# ${BUILD_NUMBER} (Default): Generates an incremental counter with every execution |
| 21 | +# ${DATE_TIME}: Generates a Timestamp with every execution. Eg. 05-Nov-19:30 |
| 22 | +# Read more about buildIdentifiers here -> https://www.browserstack.com/docs/automate/selenium/organize-tests |
| 23 | +buildIdentifier: "#${BUILD_NUMBER}" # Supports strings along with either/both ${expression} |
| 24 | +# ======================================= |
| 25 | +# Platforms (Browsers / Devices to test) |
| 26 | +# ======================================= |
| 27 | +# Platforms object contains all the browser / device combinations you want to test on. |
| 28 | +# Entire list available here -> (https://www.browserstack.com/list-of-browsers-and-platforms/automate) |
| 29 | +platforms: |
| 30 | + - os: Windows |
| 31 | + osVersion: 11 |
| 32 | + browserName: Chrome |
| 33 | + browserVersion: latest |
| 34 | + |
| 35 | +# ======================= |
| 36 | +# Parallels per Platform |
| 37 | +# ======================= |
| 38 | +# The number of parallel threads to be used for each platform set. |
| 39 | +# BrowserStack's SDK runner will select the best strategy based on the configured value |
| 40 | +# |
| 41 | +# Example 1 - If you have configured 3 platforms and set `parallelsPerPlatform` as 2, a total of 6 (2 * 3) parallel threads will be used on BrowserStack |
| 42 | +# |
| 43 | +# Example 2 - If you have configured 1 platform and set `parallelsPerPlatform` as 5, a total of 5 (1 * 5) parallel threads will be used on BrowserStack |
| 44 | +parallelsPerPlatform: 2 |
| 45 | + |
| 46 | +# ========================================== |
| 47 | +# BrowserStack Local |
| 48 | +# (For localhost, staging/private websites) |
| 49 | +# ========================================== |
| 50 | +# Set browserStackLocal to true if your website under test is not accessible publicly over the internet |
| 51 | +# Learn more about how BrowserStack Local works here -> https://www.browserstack.com/docs/automate/selenium/local-testing-introduction |
| 52 | +browserstackLocal: true # <boolean> (Default false) |
| 53 | +browserStackLocalOptions: # Options to be passed to BrowserStack local in-case of advanced configurations |
| 54 | + localIdentifier: 'sample-e-com' # <string> (Default: null) Needed if you need to run multiple instances of local. |
| 55 | + forceLocal: true # <boolean> (Default: false) Set to true if you need to resolve all your traffic via BrowserStack Local tunnel. |
| 56 | + # Entire list of arguments available here -> https://www.browserstack.com/docs/automate/selenium/manage-incoming-connections |
| 57 | + |
| 58 | +# =================== |
| 59 | +# Debugging features |
| 60 | +# =================== |
| 61 | +debug: true # <boolean> # Set to true if you need screenshots for every selenium command ran |
| 62 | +networkLogs: true # <boolean> Set to true to enable HAR logs capturing |
| 63 | +consoleLogs: verbose # <string> Remote browser's console debug levels to be printed (Default: errors) |
| 64 | +# Available options are `disable`, `errors`, `warnings`, `info`, `verbose` (Default: errors) |
| 65 | +# CUSTOM_TAG_<INT>: # <string> (Default: parent folder name of the test file) Custom tag for your test suite |
| 66 | + |
| 67 | +# Test Reporting And Analytics is an intelligent test reporting & debugging product. It collects data using the SDK. Read more about what data is collected at https://www.browserstack.com/docs/test-reporting-and-analytics/references/terms-and-conditions |
| 68 | +# Visit automation.browserstack.com to see your test reports and insights. To disable test reporting and analytics, specify `testReporting: false` in the key below. |
| 69 | +testReporting: true |
| 70 | + |
| 71 | +seleniumVersion: 4.15.0 |
| 72 | +seleniumLogs: true |
| 73 | + |
| 74 | +source: sdk:selenium-javascript:node:v1.* |
0 commit comments