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
(NOTE: The short versions of this are ``self.find_element(ELEMENT)`` and ``self.assert_element(ELEMENT)``. The find_element() version returns the element)
880
+
(NOTE: The short versions of that are ``self.find_element(ELEMENT)`` and ``self.assert_element(ELEMENT)``. The ``find_element()`` version returns the element.)
881
881
882
-
Since the line above returns the element, you can combine that with .click() as shown below:
882
+
Since the line above returns the element, you can combine that with ``.click()`` as shown below:
Copy file name to clipboardExpand all lines: help_docs/case_plans.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
## [<imgsrc="https://seleniumbase.io/img/logo6.png"title="SeleniumBase"width="32">](https://github.com/seleniumbase/SeleniumBase/) SeleniumBase Case Plans 📒🗂️
1
+
## [<imgsrc="https://seleniumbase.io/img/logo6.png"title="SeleniumBase"width="32">](https://github.com/seleniumbase/SeleniumBase/) SeleniumBase Case Plans 🗂️
2
2
3
3
<imgsrc="https://seleniumbase.io/cdn/img/cp/sb_case_plans.png"title="SeleniumBase Case Plans Summary"width="625">
4
4
5
-
📒 <b>SeleniumBase Case Plans</b> is Test Case Management Software that uses Markdown tables for displaying test plans directly in GitHub (and other source code management systems that support Markdown format).
5
+
🗂️ <b>SeleniumBase Case Plans</b> is Test Case Management Software that uses Markdown tables for displaying test plans directly in GitHub (and other source code management systems that support Markdown format).
6
6
7
-
📒 The ``case_summary.md`` file is generated from individual Case Plans that exist in the ``case_plans/`` folders of your repository. (See the example below to learn how the Case Summary file may look.)
7
+
🗂️ The ``case_summary.md`` file is generated from individual Case Plans that exist in the ``case_plans/`` folders of your repository. (See the example below to learn how the Case Summary file may look.)
8
8
9
9
--------
10
10
@@ -152,15 +152,15 @@
152
152
153
153
--------
154
154
155
-
📒 Before you can generate a ``case_summary.md`` file that includes your existing Case Plans, first you'll need to select which existing tests you want to create boilerplate Case Plans from. For that, you can use the SeleniumBase Case Plans GUI:
155
+
🗂️ Before you can generate a ``case_summary.md`` file that includes your existing Case Plans, first you'll need to select which existing tests you want to create boilerplate Case Plans from. For that, you can use the SeleniumBase Case Plans GUI:
156
156
157
157
```bash
158
158
sbase caseplans
159
159
```
160
160
161
161
<imgsrc="https://seleniumbase.io/cdn/img/cp/case_plan_boilerplate_gen.png"title="SeleniumBase Case Plans GUI"width="525">
162
162
163
-
📒 Once you are running the Case Plans GUI, select the existing tests that need Case Plans, and then click: ``Generate boilerplate Case Plans for selected tests missing them``. For each selected test that didn't already have a Case Plan file, one will be generated. Each new Case Plan file starts with default boilerplate code with a Markdown table. Eg:
163
+
🗂️ Once you are running the Case Plans GUI, select the existing tests that need Case Plans, and then click: ``Generate boilerplate Case Plans for selected tests missing them``. For each selected test that didn't already have a Case Plan file, one will be generated. Each new Case Plan file starts with default boilerplate code with a Markdown table. Eg:
164
164
165
165
```bash
166
166
``proxy_test.py::ProxyTests::test_proxy``
@@ -172,7 +172,7 @@ sbase caseplans
172
172
173
173
```
174
174
175
-
📒 When rendered as a Markdown table, the result looks like this:
175
+
🗂️ When rendered as a Markdown table, the result looks like this:
176
176
177
177
``proxy_test.py::ProxyTests::test_proxy``
178
178
---
@@ -181,9 +181,9 @@ sbase caseplans
181
181
| 1 | Perform Action 1 | Verify Action 1 |
182
182
| 2 | Perform Action 2 | Verify Action 2 |
183
183
184
-
📒 Markdown tables are flexible, but must be constructed correctly to be displayed. For a Markdown table to render, it's important that you place pipes (``|``), dashes (``-``), and spaces in the correct locations. If you want a line break in a step, use ``<br />``. If you want an empty step, put a space between pipes, eg: ``| |``.
184
+
🗂️ Markdown tables are flexible, but must be constructed correctly to be displayed. For a Markdown table to render, it's important that you place pipes (``|``), dashes (``-``), and spaces in the correct locations. If you want a line break in a step, use ``<br />``. If you want an empty step, put a space between pipes, eg: ``| |``.
185
185
186
-
📒 Here's an example of a Case Plan for [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py):
186
+
🗂️ Here's an example of a Case Plan for [my_first_test.py](https://github.com/seleniumbase/SeleniumBase/blob/master/examples/my_first_test.py):
187
187
188
188
``my_first_test.py::MyTestClass::test_swag_labs``
189
189
---
@@ -196,15 +196,15 @@ sbase caseplans
196
196
| 5 | Click on the ``FINISH`` button. | There is a ``Thank You`` message and a ``Pony Express`` delivery logo. |
197
197
| 6 | Log out from the website. | Logout was successful. |
198
198
199
-
📒 After you've created some Case Plans, you can use the ``Generate Summary of existing Case Plans`` button in the Case Plans GUI to generate the Case Plans Summary file.
199
+
🗂️ After you've created some Case Plans, you can use the ``Generate Summary of existing Case Plans`` button in the Case Plans GUI to generate the Case Plans Summary file.
200
200
201
201
<imgsrc="https://seleniumbase.io/cdn/img/cp/case_plan_summary_gen.png"title="SeleniumBase Case Plans GUI"width="550">
202
202
203
-
📒 The generated Case Plans summary file, ``case_summary.md``, gets created in the same location where the Case Plans GUI was launched. This is NOT the same location where individual Case Plan boilerplates are generated, which is in the ``case_plans/`` folders. The ``case_plans/`` folders are generated where individual tests live, which means that if you have your tests in multiple folders, then you could also have multiple ``case_plans/`` folders. A ``case_summary.md`` file may look like this when rendered:
203
+
🗂️ The generated Case Plans summary file, ``case_summary.md``, gets created in the same location where the Case Plans GUI was launched. This is NOT the same location where individual Case Plan boilerplates are generated, which is in the ``case_plans/`` folders. The ``case_plans/`` folders are generated where individual tests live, which means that if you have your tests in multiple folders, then you could also have multiple ``case_plans/`` folders. A ``case_summary.md`` file may look like this when rendered:
204
204
205
205
<imgsrc="https://seleniumbase.io/cdn/img/cp/case_plan_summary.png"title="SeleniumBase Case Plans Summary"width="550">
206
206
207
-
📒 When calling ``sbase caseplans``, you can provide additional arguments to limit the tests that appear in the list. The same discovery rules apply as when using ``pytest``. Eg:
207
+
🗂️ When calling ``sbase caseplans``, you can provide additional arguments to limit the tests that appear in the list. The same discovery rules apply as when using ``pytest``. Eg:
The above not only runs tests in parallel processes, but it also tells tests in the same process to share the same browser session, runs the tests in headless mode, displays the full name of each test on a separate line, creates a realtime dashboard of the test results, and creates a full report after all tests complete.
0 commit comments