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: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ SeleniumBase automatically handles common WebDriver actions such as spinning up
88
88
```
89
89
pytest my_first_test.py --browser=chrome
90
90
91
-
nosetests my_test_suite.py --browser=firefox
91
+
nosetests test_suite.py --browser=firefox
92
92
```
93
93
94
94
Python methods that start with ``test_`` will automatically be run when using ``pytest`` or ``nosetests`` on a Python file, (<i>or on folders containing Python files</i>).
@@ -248,14 +248,14 @@ Here are some other useful **nosetest**-specific arguments:
248
248
--with-id # If -v is also used, will number the tests for easy counting.
249
249
```
250
250
251
-
During test failures, logs and screenshots from the most recent test run will get saved to the ``latest_logs/`` folder. Those logs will get moved to ``archived_logs/`` if you have ARCHIVE_EXISTING_LOGS set to True in [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py), otherwise log files with be cleaned up at the start of the next test run. The ``my_test_suite.py`` collection contains tests that fail on purpose so that you can see how logging works.
251
+
During test failures, logs and screenshots from the most recent test run will get saved to the ``latest_logs/`` folder. Those logs will get moved to ``archived_logs/`` if you have ARCHIVE_EXISTING_LOGS set to True in [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py), otherwise log files with be cleaned up at the start of the next test run. The ``test_suite.py`` collection contains tests that fail on purpose so that you can see how logging works.
252
252
253
253
```
254
254
cd examples/
255
255
256
-
pytest my_test_suite.py --browser=chrome
256
+
pytest test_suite.py --browser=chrome
257
257
258
-
pytest my_test_suite.py --browser=firefox
258
+
pytest test_suite.py --browser=firefox
259
259
```
260
260
261
261
If you want to run tests headlessly, use ``--headless``, which you'll need to do if your system lacks a GUI interface. Even if your system does have a GUI interface, it may still support headless browser automation.
The ``--report`` option gives you a fancy report after your test suite completes. (Requires ``--with-testing_base`` to also be set when ``--report`` is used because it's part of that plugin.)
@@ -72,7 +72,7 @@ Or you can create your own Selenium Grid for test distribution. ([See this ReadM
72
72
#### **Example tests using Logging:**
73
73
74
74
```bash
75
-
pytest my_test_suite.py --browser=chrome
75
+
pytest test_suite.py --browser=chrome
76
76
```
77
77
(During test failures, logs and screenshots from the most recent test run will get saved to the ``latest_logs/`` folder. Those logs will get moved to ``archived_logs/`` if you have ARCHIVE_EXISTING_LOGS set to True in [settings.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py), otherwise log files with be cleaned up at the start of the next test run.)
78
78
@@ -120,7 +120,7 @@ The code above will leave your browser window open in case there's a failure. (i
120
120
Using ``--html=report.html`` gives you a fancy report of the name specified after your test suite completes.
0 commit comments