You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/introduction/command-line-runner.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,9 @@ title: Command-line Runner
4
4
sidebar_label: Command-line Runner
5
5
---
6
6
7
-
You can now run your tests cross-browser, in parallel, and on a Grid without needing to write any code.
7
+
You can now run all of your Selenium IDE tests on any browser, in parallel, and on a Grid without needing to write any code.
8
8
9
-
It's a simple matter of installing the Selenium IDE command line runnerand launching it from a command prompt.
9
+
There's just the small matter of installing the Selenium IDE command line runner, getting the necessary browser drivers (if running your tests locally), and launching the runner from a command prompt with the options you want.
@@ -37,10 +37,12 @@ Once everything's installed, running your tests is a simple matter of calling `s
37
37
38
38
_NOTE: If you have multiple `.side` files you can use a wildcard (e.g., `/path/to/*.side`)._
39
39
40
-
When you run this command it will launch your tests in parallel, launching multiple browser windows spread across `n` processes (where `n` is the number of available cores on your machine).
40
+
When you run this command it will launch your tests in parallel, in multiple browser windows, spread across `n` processes (where `n` is the number of available cores on your machine).
41
41
42
42
The number of processes is configurable (amongst other things) at run time through various arguments you can provide.
43
43
44
+
__NOTE: Parallel execution happens automically at the suite level. If you want the tests within a suite to be executed in parallel there is a setting you'll need to change. See [Test Parallelization In A Suite](command-line-runner.md#test-parallelization-in-a-suite) for details.__
45
+
44
46
## Run-time configuration
45
47
46
48
With the runner you have the ability to pass in different configuration arguments at run time.
@@ -53,7 +55,7 @@ The most common example of this is specifying a different browser for local test
53
55
selenium-side-runner -c "browserName=firefox"
54
56
```
55
57
56
-
__NOTE: For Firefox to work you'll need to download Mozilla's `geckodriver` and add it to your path (just like with ChromeDriver). For details, see <ahref="https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/Usage.html"target="_blank"rel="noopener noreferrer">the `geckodriver` project page</a>.__
58
+
__NOTE: For Firefox to work you'll need to download Mozilla's `geckodriver`. This can easily be installed through `npm` (e.g., `npm install geckodriver`). Or you can download the binary yourself and add it to your sytem path. For details, see <ahref="https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/Usage.html"target="_blank"rel="noopener noreferrer">the `geckodriver` project page</a>.__
57
59
58
60
### Running on a remote WebDriver server
59
61
@@ -63,6 +65,8 @@ To run your tests on a Grid (e.g., your own Grid or on a hosted provider like Sa
You can see a full list of the available capabilities [here](https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities).
69
+
66
70
### Specify the number of parallel processes
67
71
68
72
When running on a Grid you will likely want to control how many parallel sessions you are running. For that you can use the `-w n` command flag (where `n` is the number of processes you want).
@@ -98,6 +102,7 @@ With the ability to specify a different base URL you can easily point your tests
98
102
```sh
99
103
selenium-side-runner --base-url https://localhost
100
104
```
105
+
101
106
### Filter tests
102
107
103
108
You also have the option to run a targeted subset of your tests with the `--filter target` command flag (where `target` is a regular expression value). Test names that contain the given search criteria will be the only ones run.
@@ -127,14 +132,29 @@ If you want to ignore the file and use command line arguments instead, use `--no
127
132
128
133
#### Option 2
129
134
130
-
As an alternative to the `.side.yml` file, you can specify your run-time parameters in a YAML file with a name and location of your choosing and specify its location when running your tests.
135
+
Alternative to using a `.side.yml` file, you can specify your run-time parameters in a YAML file with a name and location of your choosing, and then specify its location when running your tests.
0 commit comments