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
The Python module <span class="img file_py">qtools/qspy/py/qutest.py</span> defines a small Domain Specific Language (DSL) for writing test scripts in Python. The structure of this DSL is very simple. Each test script consists of two sections:
144
143
145
144
146
145
@subsection qutest_dsl-preamble Preamble
147
146
The "preamble" section of a test script file specifies include scripts and defines callback functions common to all tests in this file. It can contain the following functions:
148
147
149
-
- include()
150
-
- on_reset()
151
-
- on_setup()
152
-
- on_teardown().
148
+
- @ref qutest_dsl::include() "include()"
149
+
- @ref qutest_dsl::on_reset() "on_reset()"
150
+
- @ref qutest_dsl::on_setup() "on_setup()"
151
+
- @ref qutest_dsl::on_teardown() "on_teardown()"
153
152
154
153
The `on_...()` callback functions can call any of the @ref qutest_dsl-commands "test commands".
155
154
156
155
157
156
@subsection qutest_dsl-tests Tests
158
157
The "tests" section of a test script file contains the actual tests. Each test starts with the test() command and can contain any number of the @ref qutest_dsl-commands "test commands". The test continues until another test() command, or the skip() command.
159
158
160
-
- test()
161
-
- skip().
159
+
- @ref qutest_dsl::test() "test()"
160
+
- @ref qutest_dsl::skip() "skip()"
162
161
163
162
164
163
@subsection qutest_dsl-commands Commands
165
164
The commands that you can place in the tests (as well as inside the callback functions) are:
0 commit comments