Skip to main content

đŸĒ› Setup Configuration

Before starting to automate Web applications, we need to first setup the configuration file for our Application under test.

src/test/resources/boyka-config.json
{
"ui": {
"timeout": {
"implicit_wait": 10,
"explicit_wait": 30,
"page_load_timeout": 30,
"script_timeout": 10
},
"logging": {
"exclude_logs": [
"bugreport"
]
},
"screenshot": {
"enabled": true,
"path": "./screenshots",
"extension": "jpeg",
"prefix": "SCR"
},
"web": {
"test_local_chrome": {
"browser": "CHROME"
},
"test_local_firefox": {
"browser": "FIREFOX"
},
"test_local_edge": {
"browser": "EDGE"
},
"test_local_safari": {
"browser": "SAFARI"
},
"test_browserstack_chrome": {
"browser": "REMOTE",
"target": "BROWSER_STACK",
"user_name": "${env:BS_USER}",
"password": "${env:BS_KEY}",
"capabilities": {
"browser": "Chrome",
"browser_version": "latest",
"os": "Windows",
"os_version": "10",
"resolution": "1920x1080",
"project": "Test Boyka Project",
"build": "Test BrowserStack Build",
"name": "Test BrowserStack Session"
}
},
"test_selenium_grid": {
"browser": "REMOTE",
"target": "LOCAL",
"port": "4444",
"capabilities": {
"browserName": "chrome",
"platform": "MAC"
}
},
"test_lambda_test_chrome": {
"browser": "REMOTE",
"target": "LAMBDA_TEST_WEB",
"user_name": "${env:LT_USER}",
"password": "${env:LT_KEY}",
"capabilities": {
"browserName": "Chrome",
"version": "99.0",
"platform": "Windows 10",
"resolution": "1920x1080",
"build": "Test LambdaTest Build",
"name": "Test LambdaTest Session",
"network": true,
"visual": true,
"video": true,
"console": true
}
}
}
}
}
info

To know more about Web configurations, please refer to the Web Configuration guide.

Details of each Web configurations​

  • test_local_chrome: This is the configuration for running the test on local Chrome browser.
  • test_local_firefox: This is the configuration for running the test on local Firefox browser.
  • test_local_edge: This is the configuration for running the test on local Edge browser.
  • test_local_safari: This is the configuration for running the test on local Safari browser.
  • test_browserstack_chrome: This is the configuration for running the test on BrowserStack Chrome browser.
  • test_selenium_grid: This is the configuration for running the test on Selenium Grid.
  • test_lambda_test_chrome: This is the configuration for running the test on LambdaTest Chrome browser.