Skip to content

Commit 6b56be0

Browse files
authored
Merge pull request #443 from seleniumbase/docs-update
Update several ReadMe files
2 parents c92c545 + 2492d95 commit 6b56be0

File tree

4 files changed

+45
-26
lines changed

4 files changed

+45
-26
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_sb4.png" title="SeleniumBase" height="48">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
1+
[<img src="https://cdn2.hubspot.net/hubfs/100006/images/super_logo_sb10.png" title="SeleniumBase" height="48">](https://github.com/seleniumbase/SeleniumBase/blob/master/README.md)
22

33
[<img src="https://img.shields.io/github/release/seleniumbase/SeleniumBase.svg" alt=" " />](https://github.com/seleniumbase/SeleniumBase/releases) [<img src="https://dev.azure.com/seleniumbase/seleniumbase/_apis/build/status/seleniumbase.SeleniumBase?branchName=master" alt=" " />](https://dev.azure.com/seleniumbase/seleniumbase/_build/latest?definitionId=1&branchName=master) [<img src="https://travis-ci.org/seleniumbase/SeleniumBase.svg?branch=master" alt=" " />](https://travis-ci.org/seleniumbase/SeleniumBase) [<img src="https://badges.gitter.im/seleniumbase/SeleniumBase.svg" alt=" " />](https://gitter.im/seleniumbase/SeleniumBase) [<img src="https://img.shields.io/badge/license-MIT-22BBCC.svg" alt=" " />](https://github.com/seleniumbase/SeleniumBase/blob/master/LICENSE) [<img src="https://img.shields.io/github/stars/seleniumbase/seleniumbase.svg" alt=" " />](https://github.com/seleniumbase/SeleniumBase/stargazers)
44

55
All-in-one framework for web automation, end-to-end testing, and website tours. SeleniumBase uses [pytest](https://pytest.org) for running Python scripts, while using [Selenium WebDriver](https://selenium.dev/) for controlling web browsers.
66

7-
* Helps you build reliable, non-flaky UI tests for any website.
7+
* Helps you quickly build reliable tests for any website.
8+
* Uses easy-to-learn [Python methods](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md) for writing tests.
89
* Includes flexible [command-line options](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/customizing_test_runs.md) for running tests.
9-
* Comes with easy-to-use [Python methods](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/method_summary.md) for writing tests.
10-
* Includes tools for [assisted-QA](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/master_qa/ReadMe.md), [visual testing](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/visual_testing/ReadMe.md), and [web tours](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md).
10+
* Includes tools for [assisted-QA](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/master_qa/ReadMe.md), [visual testing](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/visual_testing/ReadMe.md), & [web tours](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/tour_examples/ReadMe.md).
1111
* Integrates with [Selenium Grid](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_grid/ReadMe.md), [Katalon Recorder](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/utilities/selenium_ide/ReadMe.md), and more.
1212
* To see the full list of SeleniumBase features, [click here](https://github.com/seleniumbase/SeleniumBase/blob/master/help_docs/features_list.md).
1313

examples/ReadMe.md

Lines changed: 33 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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 an example test in Chrome (``--browser=chrome`` is the default):
13+
Run an example test in Chrome: (``--browser=chrome`` is the default)
1414
```bash
1515
pytest my_first_test.py
1616
```
@@ -20,61 +20,76 @@ Run an example test in Firefox:
2020
pytest my_first_test.py --browser=firefox
2121
```
2222

23-
Run an example test in Demo Mode (highlights page objects being acted on):
23+
Run an example test in Demo Mode: (highlight assertions)
2424
```bash
2525
pytest my_first_test.py --demo
2626
```
2727

28-
Run an example test demonstrating parameterization:
28+
Run an example test in Headless Mode: (invisible web browser)
2929
```bash
30-
pytest parameterized_test.py
30+
pytest my_first_test.py --headless
3131
```
3232

33-
Run an example test suite and generate an pytest report: (pytest-only)
33+
Run tests multi-threaded using [n] threads:
3434
```bash
35-
pytest test_suite.py --html=report.html
35+
pytest test_suite.py -n=4
3636
```
3737

38-
Run an example test suite and generate a nosetest report: (nosetests-only)
38+
Run a parameterized test, which generates multiple tests out of one:
3939
```bash
40-
nosetests test_suite.py --report --show-report
40+
pytest parameterized_test.py
4141
```
4242

43-
Run an example test using a nosetest configuration file: (nosetests-only)
43+
Run an example test suite and generate a pytest report: (pytest-only)
4444
```bash
45-
nosetests my_first_test.py --config=example_config.cfg
45+
pytest test_suite.py --html=report.html
4646
```
4747

48-
Run a test demonstrating the use of SeleniumBase Python decorators available:
48+
Run a failing test: (See the ``latest_logs/`` folder for logs and screenshots)
4949
```bash
50-
pytest rate_limiting_test.py
50+
pytest test_fail.py
5151
```
5252

53-
Run a failing test: (See the ``latest_logs/`` folder afterwards for logs and screenshots)
53+
Run an example test using Chrome's mobile device emulator: (default settings)
5454
```bash
55-
pytest test_fail.py
55+
pytest test_swag_labs.py --mobile
5656
```
5757

58-
Run a failing test with Debugging-mode enabled: (If a test failure occurs, pdb activates)
58+
Run a failing test with Debug-mode enabled: (``pdb`` activates on failures)
5959
```bash
6060
pytest test_fail.py --pdb -s
6161
```
6262

63+
Run an example test suite that demonstrates the use of pytest markers:
64+
```bash
65+
pytest -v -m marker_test_suite
66+
```
67+
6368
Run an example test suite that reuses the browser session between tests:
6469
```bash
6570
pytest test_suite.py --reuse-session
6671
```
6772

68-
Run an example test suite that demonstrates the use of pytest markers:
73+
Run an example test demonstrating the ``rate_limited`` Python decorator:
6974
```bash
70-
pytest -v -m marker_test_suite
75+
pytest rate_limiting_test.py
7176
```
7277

73-
Run a test that demonstrates how to upload a file to a website:
78+
Run an example test that demonstrates how to upload a file to a website:
7479
```bash
7580
pytest upload_file_test.py
7681
```
7782

83+
Run an example test suite and generate a nosetest report: (nosetests-only)
84+
```bash
85+
nosetests test_suite.py --report --show-report
86+
```
87+
88+
Run an example test using a nosetest configuration file: (nosetests-only)
89+
```bash
90+
nosetests my_first_test.py --config=example_config.cfg
91+
```
92+
7893
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)
7994

8095
--------

help_docs/customizing_test_runs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ pytest my_first_test.py
1313
# Run my_first_test.py in Firefox
1414
pytest my_first_test.py --browser=firefox
1515

16-
# Run tests in Demo Mode to see assertions
16+
# Run a test in Demo Mode (highlight assertions)
1717
pytest my_first_test.py --demo
1818

19-
# Run tests in Headless Mode (invisible browser)
20-
pytest test_suite.py --headless
19+
# Run a test in Headless Mode (invisible browser)
20+
pytest my_first_test.py --headless
2121

2222
# Run tests multi-threaded using [n] threads
2323
pytest test_suite.py -n=4

help_docs/features_list.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
* Has [Plugins](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/plugins) for logging data and screenshots automatically. ([Click to learn more](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/example_logs/ReadMe.md))
1414
* Uses a [global config file](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/config/settings.py) for configuring SeleniumBase to your specific needs.
1515
* Backwards-compatible with [WebDriver](http://www.seleniumhq.org/projects/webdriver/). (Use ``self.driver`` anywhere.)
16+
* Can run tests in Headless Mode to hide the web browser. (Use ``--headless``)
1617
* Can run tests through a proxy server. (Use ``--proxy=IP_ADDRESS:PORT``)
1718
* Can use an authenticated proxy server. (``--proxy=USERNAME:PASSWORD@IP_ADDRESS:PORT``)
1819
* Can change the web browser's user agent string. (Use ``--agent=USER_AGENT_STRING``)
20+
* Can run tests using Chrome's mobile device emulator (Use ``--mobile``)
1921
* Can set a Chrome User Data Directory / Profile to load. (Use ``--user_data_dir=DIR``)
2022
* Can load Chrome Extension ZIP files (comma-separated). (Use ``--extension_zip=ZIP``)
2123
* Can load Chrome Extension folders (comma-separated). (Use ``--extension_dir=DIR``)
@@ -24,5 +26,7 @@
2426
* Integrates with [MySQL](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/testcase_manager.py), [Selenium Grid](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities/selenium_grid), [Azure](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/azure/jenkins/ReadMe.md), [Google Cloud](https://github.com/seleniumbase/SeleniumBase/tree/master/integrations/google_cloud/ReadMe.md), [Amazon S3](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/plugins/s3_logging_plugin.py), and [Docker](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/docker/ReadMe.md).
2527
* Has the ability to connect to a [BrowserStack](https://www.browserstack.com/automate#), [Sauce Labs](https://saucelabs.com/products/web-testing/cross-browser-testing), or [TestingBot](https://testingbot.com/features) Selenium Grid.
2628
* Includes a [tool to convert Selenium IDE recordings](https://github.com/seleniumbase/SeleniumBase/tree/master/seleniumbase/utilities/selenium_ide) into clean, robust SeleniumBase scripts.
27-
* Written in Python, but can also make JavaScript calls using ``self.execute_script()``.
29+
* Can load and make assertions on PDF files from websites or the local file system.
30+
* Can reuse the same Selenium browser session between tests. (Use: ``--reuse-session``)
31+
* Written in Python, but can also make JavaScript calls. (Use: ``self.execute_script()``)
2832
* Includes useful Python decorators and password obfuscation methods. ([Learn more here](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/common/ReadMe.md))

0 commit comments

Comments
 (0)