Skip to content

Commit 460c684

Browse files
committed
Update the examples ReadMe
1 parent 62eb664 commit 460c684

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

examples/ReadMe.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,37 @@ During test failures, logs and screenshots from the most recent test run will ge
1010

1111
**Here are some example run commands to help get you started:**
1212

13-
Run the example test in Chrome:
13+
Run an example test in Chrome (it's the default browser when not specified):
1414
```bash
1515
pytest my_first_test.py --browser=chrome
1616
```
1717

18-
Run the example test in Firefox:
18+
Run an example test in Firefox:
1919
```bash
2020
pytest my_first_test.py --browser=firefox
2121
```
2222

23-
Run the example test in Demo Mode (highlights page objects being acted on):
23+
Run an example test in Demo Mode (highlights page objects being acted on):
2424
```bash
25-
pytest my_first_test.py --browser=chrome --demo_mode
25+
pytest my_first_test.py --demo_mode
2626
```
2727

28-
Run the example test suite and generate an pytest report: (pytest-only)
28+
Run an example test demonstrating parameterization:
29+
```bash
30+
pytest parameterized_test.py
31+
```
32+
33+
Run an example test suite and generate an pytest report: (pytest-only)
2934
```bash
3035
pytest test_suite.py --html=report.html
3136
```
3237

33-
Run the example test suite and generate a nosetest report: (nosetests-only)
38+
Run an example test suite and generate a nosetest report: (nosetests-only)
3439
```bash
3540
nosetests test_suite.py --report --show_report
3641
```
3742

38-
Run a test using a nosetest configuration file: (nosetests-only)
43+
Run an example test using a nosetest configuration file: (nosetests-only)
3944
```bash
4045
nosetests my_first_test.py --config=example_config.cfg
4146
```
@@ -47,12 +52,22 @@ pytest rate_limiting_test.py
4752

4853
Run a failing test: (See the ``latest_logs/`` folder afterwards for logs and screenshots)
4954
```bash
50-
pytest test_fail.py --browser=chrome
55+
pytest test_fail.py
5156
```
5257

5358
Run a failing test with Debugging-mode enabled: (If a test failure occurs, pdb activates)
5459
```bash
55-
pytest test_fail.py --browser=chrome --pdb -s
60+
pytest test_fail.py --pdb -s
61+
```
62+
63+
Run an example test suite that demonstrates the use of pytest markers:
64+
```bash
65+
pytest -v -m marker_test_suite
66+
```
67+
68+
Run a test that demonstrates how to upload a file to a website:
69+
```bash
70+
pytest upload_file_test.py
5671
```
5772

5873
For more advanced run commands, such as using a proxy server, see [../help_docs/customizing_test_runs.md](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md)

0 commit comments

Comments
 (0)