Tests can run on different browsers in parallel to speed execution and confirm multiple configurations. They can run locally on only Chrome, or on Chrome and other browsers in supported grids including Testim's grid, 3rd party grids like Sauce Labs and Browserstack, or on your own internal Selenium-based grid.
The operating system running the browser will depend on the grid you are running.
On what browsers and OS you can run your tests?
|Browser||Testim Grid||Selenium Grid||3rd Party Grid|
|Chrome||Yes - Linux||Yes - multiple OS||Yes - multiple OS|
|Firefox||Yes - Linux||Yes - multiple OS||Yes - multiple OS|
|Safari||Yes - macOS||Yes - macOS||Yes - macOS|
|Edge Chromium||Yes - Windows||Yes - Windows||Yes - Windows|
To run your tests on multiple browsers, you will need to run them using CLI or using Scheduler instead using the Testim Editor.In this article we will focus on running using CLI, see how it's done.
First you need to define the configuration you want to run on. This will include: browser type, operating system and resolution.
- Navigate to "Runs", and then to "Configuration List" tab.
This list includes all available configurations, you can use one from this list or create a new one.
- Click on "Create New".
- Add a name for your configuration
- Choose browser, operating system and resolution.
- Click "OK"
In this section, we will focus only on what you need to add to the CLI to run on different browsers. You can read here about how to use CLI.
- The basic CLI can be found on Testim setting page.
- Add to the CLI the configuration you want to run on using --test-config "".
- When running on Firefox, and Safari browsers you will also need to add --mode selenium. See (https://help.testim.io/docs/the-command-line-cli#mode-selenium-web-only)
- Update the grid parameter of the grid you want to run. Read here how to set up your grid.
--test-config "My configuration"
--test-config "My configuration" --mode selenium
- Under runs --> Scheduled runs --> Select the scheduler you would like to edit/add new scheduler
- In "What to run on" select "Override default config"
- Either select which config you would like the scheduler to run, or create a new config
- For new config, you can select which browser you would like the scheduler to run on
- Click ADD
- Save the scheduled run
Updated about 19 hours ago