Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aabc17f

Browse files
committed
Document new Name setting. #4583
1 parent 609b6cb commit aabc17f

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

doc/userguide/src/Appendices/AvailableSettings.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ importing libraries, resources, and variables.
3131
+-----------------+--------------------------------------------------------+
3232
| Variables | Used for `taking variable files into use`_. |
3333
+-----------------+--------------------------------------------------------+
34-
| Documentation | Used for specifying a `test suite`__ or |
34+
| Name | Used for setting a custom `suite name`_. |
35+
+-----------------+--------------------------------------------------------+
36+
| Documentation | Used for specifying a `suite`__ or |
3537
| | `resource file`__ documentation. |
3638
+-----------------+--------------------------------------------------------+
3739
| Metadata | Used for setting `free suite metadata`_. |

doc/userguide/src/CreatingTestData/CreatingTestSuites.rst

+17-5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ only one high-level keyword.
2525

2626
The following settings in the Setting section can be used to customize the suite:
2727

28+
`Name`:setting:
29+
Used for setting a custom `suite name`_. The default name is created based
30+
on the file or directory name.
2831
`Documentation`:setting:
2932
Used for specifying a `suite documentation`_.
3033
`Metadata`:setting:
@@ -88,8 +91,9 @@ settings similarly as in `suite files`_, but setting some `test case
8891
related settings`__ is also possible. How to use different settings in the
8992
initialization files is explained below.
9093

91-
`Documentation`:setting:, `Metadata`:setting:, `Suite Setup`:setting:, `Suite Teardown`:setting:
92-
These test suite specific settings work the same way as in test case files.
94+
`Name`:setting:, `Documentation`:setting:, `Metadata`:setting:, `Suite Setup`:setting:, `Suite Teardown`:setting:
95+
These suite specific settings work the same way in suite initialization files
96+
as in suite files.
9397
`Test Tags`:setting:
9498
Specified tags are unconditionally set to all tests in all suite files
9599
this directory contains, recursively. New in Robot Framework 6.1. The
@@ -112,7 +116,7 @@ initialization files is explained below.
112116
*** Settings ***
113117
Documentation Example suite
114118
Suite Setup Do Something ${MESSAGE}
115-
Force Tags example
119+
Test Tags example
116120
Library SomeLibrary
117121

118122
*** Variables ***
@@ -130,8 +134,8 @@ __ `Test case related settings in the Setting section`_
130134
Suite name
131135
----------
132136

133-
The test suite name is constructed from the file or directory name. The name
134-
is created so that the extension is ignored, possible underscores are
137+
The test suite name is constructed from the file or directory name by default.
138+
The name is created so that the extension is ignored, possible underscores are
135139
replaced with spaces, and names fully in lower case are title cased. For
136140
example, :file:`some_tests.robot` becomes :name:`Some Tests` and
137141
:file:`My_test_directory` becomes :name:`My test directory`.
@@ -144,6 +148,14 @@ the prefix and underscores are removed. For example files
144148
suites :name:`Some Tests` and :name:`More Tests`, respectively, and
145149
the former is executed before the latter.
146150

151+
Starting from Robot Framework 6.1, it is also possible to give a custom name
152+
to a suite by using the :setting:`Name` setting in the Setting section:
153+
154+
.. sourcecode:: robotframework
155+
156+
*** Settings ***
157+
Name Custom suite name
158+
147159
Suite documentation
148160
-------------------
149161

0 commit comments

Comments
 (0)