Execute Tests in a Grid
Learn to use BELLATRIX to execute tests in a grid.
Explanations
To execute BELLATRIX tests within a grid, you should configure that in the bellatrix.config.ts file.
Configuration
There’s an option about execution type in the bellatrix.config.ts file under the webSettings section.
executionType: 'local', // remote
You can set the grid URL and set some additional arguments under the remoteExecutionSettings section.
executionSettings: {
browserAutomationTool: 'playwright', // playwright, selenium
browser: 'chrome', // chrome, firefox, safari, edge
viewport: { width: 1920, height: 1080 },
headless: false,
executionType: 'local', // remote
baseUrl: 'https://demos.bellatrix.solutions/'
},
remoteExecutionSettings: {
remoteUrl: 'localhost:4444',
user: '',
key: ''
}
This is the structure for RemoteExecutionSettings:
type RemoteExecutionSettings = {
provider: 'Selenium Grid' | 'Selenoid',
remoteUrl: string,
capabilities: Capabilities,
headers?: object,
} | {
provider: 'LambdaTest' | 'BrowserStack',
capabilities: Capabilities,
username: string,
accessKey: string,
}