byteblower-test-cases-tr-398 1.0.0.post1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. byteblower_test_cases_tr_398-1.0.0.post1/LICENSE +165 -0
  2. byteblower_test_cases_tr_398-1.0.0.post1/PKG-INFO +358 -0
  3. byteblower_test_cases_tr_398-1.0.0.post1/README.rst +293 -0
  4. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/.gitignore +1 -0
  5. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/__init__.py +2 -0
  6. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/__main__.py +4 -0
  7. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/_endpoint_factory.py +79 -0
  8. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/_port_factory.py +70 -0
  9. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/_version.py +4 -0
  10. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/airtime_fairness.py +515 -0
  11. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/cli.py +111 -0
  12. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/definitions.py +13 -0
  13. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/exceptions.py +18 -0
  14. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/report_generator.py +185 -0
  15. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/css/embedded-fonts.css +880 -0
  16. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/css/testframework.css +467 -0
  17. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/css/tr398.css +88 -0
  18. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/report.html +27 -0
  19. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/report_footer.html +731 -0
  20. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/report_head_style.html +8 -0
  21. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/report_header.html +119 -0
  22. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/report_main.html +17 -0
  23. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/report_pass_fail.html +31 -0
  24. byteblower_test_cases_tr_398-1.0.0.post1/byteblower/test_cases/tr_398/templates/results_summary.html +203 -0
  25. byteblower_test_cases_tr_398-1.0.0.post1/docs/.gitignore +1 -0
  26. byteblower_test_cases_tr_398-1.0.0.post1/docs/Makefile +20 -0
  27. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/_include/_example_test_scenario.rst +22 -0
  28. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/_static/excentis.css +10 -0
  29. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/cli/index.rst +170 -0
  30. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/conf.py +141 -0
  31. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/config/index.rst +129 -0
  32. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/examples/index.rst +224 -0
  33. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/extra/test-cases/tr-398/json/airtime-fairness/config-schema.json +286 -0
  34. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/extra/test-cases/tr-398/json/airtime-fairness/endpoint/tr_398.json +28 -0
  35. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/images/airtime_fairness_setup.png +0 -0
  36. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/images/html_report_graph.png +0 -0
  37. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/images/html_report_pass_fail.png +0 -0
  38. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/images/html_report_table.png +0 -0
  39. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/index.rst +13 -0
  40. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/master_index.rst +17 -0
  41. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/overview.rst +153 -0
  42. byteblower_test_cases_tr_398-1.0.0.post1/docs/source/quick_start.rst +248 -0
  43. byteblower_test_cases_tr_398-1.0.0.post1/pyproject.toml +311 -0
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,358 @@
1
+ Metadata-Version: 2.1
2
+ Name: byteblower-test-cases-tr-398
3
+ Version: 1.0.0.post1
4
+ Summary: Perform traffic tests for TR-398 using ByteBlower.
5
+ Keywords: ByteBlower,network test,traffic test,test case,airtime fairness,TR-398
6
+ Author-email: ByteBlower Development Team <support.byteblower@excentis.com>
7
+ Maintainer-email: Hamza Malkawi <hamza.malkawi@excentis.com>, Tom Ghyselinck <tom.ghyselinck@excentis.com>
8
+ Requires-Python: >=3.7
9
+ Description-Content-Type: text/x-rst
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Intended Audience :: Telecommunications Industry
13
+ Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Classifier: Programming Language :: Python :: 3.8
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Topic :: Software Development
23
+ Classifier: Topic :: Software Development :: Testing
24
+ Classifier: Topic :: Software Development :: Testing :: Acceptance
25
+ Classifier: Topic :: Software Development :: Testing :: Traffic Generation
26
+ Classifier: Topic :: Software Development :: Libraries
27
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
28
+ Requires-Dist: byteblowerll >=2.19.2a114
29
+ Requires-Dist: byteblower-test-framework >=1.1.0
30
+ Requires-Dist: pandas >=0.24.2
31
+ Requires-Dist: jinja2 >=2.10.1
32
+ Requires-Dist: highcharts-excentis >=0.4.4
33
+ Requires-Dist: pre-commit ; extra == "dev"
34
+ Requires-Dist: yapf[pyproject] ; extra == "dev"
35
+ Requires-Dist: isort ; extra == "dev"
36
+ Requires-Dist: rstcheck[toml] ; extra == "dev"
37
+ Requires-Dist: doc8 ; extra == "dev"
38
+ Requires-Dist: Pygments ; extra == "dev"
39
+ Requires-Dist: pydocstyle[toml] ; extra == "dev"
40
+ Requires-Dist: toml ~=0.10.2 ; extra == "dev"
41
+ Requires-Dist: Sphinx >= 5.0 ; extra == "docs-dev"
42
+ Requires-Dist: sphinx-rtd-theme >=1.0 ; extra == "docs-dev"
43
+ Requires-Dist: sphinx-tabs >= 3.4 ; extra == "docs-dev"
44
+ Requires-Dist: sphinx-jsonschema >= 1.19 ; extra == "docs-dev"
45
+ Requires-Dist: importlib-metadata>=4.8.3 ; extra == "docs-dev" and ( python_version<'3.8')
46
+ Requires-Dist: rstcheck[sphinx,toml] ; extra == "docs-dev"
47
+ Requires-Dist: pylint[spelling] ; extra == "test"
48
+ Requires-Dist: pydocstyle[toml] ; extra == "test"
49
+ Requires-Dist: rstcheck[sphinx,toml] ; extra == "test"
50
+ Requires-Dist: mypy >=1.0.0 ; extra == "test"
51
+ Requires-Dist: pandas-stubs ; extra == "test"
52
+ Requires-Dist: types-simplejson ; extra == "test"
53
+ Requires-Dist: pytest >=6.0 ; extra == "test"
54
+ Requires-Dist: pytest-cov ; extra == "test"
55
+ Requires-Dist: pytest-pydocstyle ; extra == "test"
56
+ Requires-Dist: toml ~=0.10.2 ; extra == "test"
57
+ Project-URL: Documentation, https://api.byteblower.com/test-framework/latest/test-cases/tr-398/master_index.html
58
+ Project-URL: Examples, https://api.byteblower.com/test-framework/latest/test-cases/tr-398/examples/index.html
59
+ Project-URL: Homepage, https://www.byteblower.com
60
+ Project-URL: Support Portal, https://support.excentis.com
61
+ Provides-Extra: dev
62
+ Provides-Extra: docs-dev
63
+ Provides-Extra: test
64
+
65
+ ****************************
66
+ ByteBlower Test Case: TR 398
67
+ ****************************
68
+
69
+ Introduction
70
+ ============
71
+
72
+ This package contains an implementation of the `TR-398`_
73
+ Test using the `ByteBlower Test Framework`_.
74
+
75
+ .. _ByteBlower Test Framework: https://pypi.org/project/byteblower-test-framework/
76
+ .. _TR-398: https://www.broadband-forum.org/pdfs/tr-398-3-0-0.pdf
77
+ .. _Airtime Fairness Test: https://www.broadband-forum.org/pdfs/tr-398-3-0-0.pdf#page=39&zoom=100,84,750
78
+
79
+ .. footer::
80
+ Copyright |copy| |year| - Excentis N.V.
81
+
82
+ .. |copy| unicode:: U+00A9 .. copyright sign
83
+ .. |year| date:: %Y
84
+
85
+ The primary goal of TR-398 is to provide a standard set of test cases
86
+ and framework to measure aspect of the performance between Access Point,
87
+ one or more reference Stations and if applicable, one Wi-Fi repeater, under
88
+ controlled laboratory conditions.
89
+
90
+ Release notes
91
+ =============
92
+
93
+ What can this version bring to you?
94
+ See our exciting new and existing features below!
95
+
96
+
97
+ 📢 **New since v1.0.0!** 📢
98
+ ---------------------------
99
+
100
+ It is with great pleasure that we announce our
101
+ new features of this test case!
102
+
103
+ - Support for `TR-398`_ `Airtime Fairness Test`_
104
+
105
+ TR-398 Airtime Fairness introduction
106
+ ====================================
107
+ Airtime Fairness Test intends to verify the capability
108
+ of the access point to guarantee the fairness of airtime usage.
109
+
110
+ This ByteBlower TR-398 Airtime Fairness test case allows you to:
111
+
112
+ #. Run Airtime Fairness tests based on TR-398 Airtime Fairness Test
113
+ #. Collect & Analyse statistics
114
+ #. Generate HTML & JSON reports
115
+
116
+ For more detailed documentation, please have a look
117
+ at `Test Case: TR-398 Airtime Fairness`_ in the ByteBlower API documentation.
118
+
119
+ .. _Test Case\: TR-398 Airtime Fairness: https://api.byteblower.com/test-framework/latest/test-cases/tr-398/overview.html
120
+
121
+ Installation
122
+ ============
123
+
124
+ Requirements
125
+ ------------
126
+
127
+ * `ByteBlower Test Framework`_: ByteBlower |registered| is a traffic
128
+ generator/analyser system for TCP/IP networks.
129
+ * Highcharts-excentis_: Used for generating graphs
130
+ * jinja2_: To create HTML reports
131
+
132
+ .. _Highcharts-excentis: https://pypi.org/project/highcharts-excentis/
133
+ .. |registered| unicode:: U+00AE .. registered sign
134
+ .. _jinja2: https://pypi.org/project/Jinja2/
135
+
136
+ Prepare runtime environment
137
+ ---------------------------
138
+
139
+ We recommend managing the runtime environment in a Python virtual
140
+ environment. This guarantees proper separation of the system-wide
141
+ installed Python and pip packages.
142
+
143
+ Python
144
+ ------
145
+
146
+ The ByteBlower Test Framework currently supports Python versions 3.7
147
+ up to 3.11.
148
+
149
+ Important: Working directory
150
+ ----------------------------
151
+
152
+ All the following sections expect that you first moved to your working
153
+ directory where you want to run this project. You may also want to create
154
+ your configuration files under a sub-directory of your choice.
155
+
156
+ #. On Unix-based systems (Linux, WSL, macOS):
157
+
158
+ .. code-block:: shell
159
+
160
+ cd '/path/to/working/directory'
161
+
162
+ #. On Windows systems using PowerShell:
163
+
164
+ .. code-block:: shell
165
+
166
+ cd 'c:\path\to\working\directory'
167
+
168
+ Python virtual environment
169
+ --------------------------
170
+
171
+ Make sure to use the right Python version (>= 3.7, <= 3.11),
172
+ list all Python versions installed in your machine by running:
173
+
174
+ #. On Windows systems using PowerShell:
175
+
176
+ .. code-block:: shell
177
+
178
+ py --list
179
+
180
+ If no Python version is in the required range, you can download and install
181
+ Python 3.7 or above using your system package manager
182
+ or from https://www.python.org/ftp/python.
183
+
184
+ Prepare Python virtual environment: Create the virtual environment
185
+ and install/update ``pip`` and ``build``.
186
+
187
+ #. On Unix-based systems (Linux, WSL, macOS):
188
+
189
+ **Note**: *Mind the leading* ``.`` *which means* **sourcing**
190
+ ``./.venv/bin/activate``.
191
+
192
+ .. code-block:: shell
193
+
194
+ python3 -m venv --clear .venv
195
+ . ./.venv/bin/activate
196
+ pip install -U pip build
197
+
198
+ #. On Windows systems using PowerShell:
199
+
200
+ **Note**: On Microsoft Windows, it may be required to enable the
201
+ Activate.ps1 script by setting the execution policy for the user.
202
+ You can do this by issuing the following PowerShell command:
203
+
204
+ .. code-block:: shell
205
+
206
+ PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
207
+
208
+ See `About Execution Policies`_ for more information.
209
+
210
+ Make sure to specify the python version you're using.
211
+ For example, for Python 3.8:
212
+
213
+ .. code-block:: shell
214
+
215
+ py -3.8 -m venv --clear .venv
216
+ & ".\.venv\Scripts\activate.ps1"
217
+ python -m pip install -U pip build
218
+
219
+ .. _About Execution Policies: https://go.microsoft.com/fwlink/?LinkID=135170
220
+
221
+ To install the ByteBlower TR-398 test case and
222
+ its dependencies, first make sure that you have activated your
223
+ virtual environment:
224
+
225
+ #. On Unix-based systems (Linux, WSL, macOS):
226
+
227
+ .. code-block:: shell
228
+
229
+ . ./.venv/bin/activate
230
+
231
+ #. On Windows systems using PowerShell:
232
+
233
+ .. code-block:: shell
234
+
235
+ ./.venv/Scripts/activate.ps1
236
+
237
+ Then, run:
238
+
239
+ .. code-block:: shell
240
+
241
+ pip install -U byteblower-test-cases-tr-398
242
+
243
+ Quick start
244
+ ===========
245
+
246
+ Command-line interface
247
+ ----------------------
248
+
249
+ After providing the appropriate test setup and frame configurations,
250
+ the test script can be run either as python module or as a command-line script.
251
+
252
+ For example (*to get help for the command-line arguments*):
253
+
254
+ #. As a python module:
255
+
256
+ .. code-block:: shell
257
+
258
+ # To get help for the command-line arguments:
259
+ python -m byteblower.test_cases.tr_398 --help
260
+
261
+ #. As a command-line script:
262
+
263
+ .. code-block:: shell
264
+
265
+ # To get help for the command-line arguments:
266
+ byteblower-test-cases-tr-398-airtime-fairness --help
267
+
268
+ To run the ByteBlower TR-398 Airtime Fairness test case,
269
+ you should first provide your test configuration file.
270
+
271
+ you can use the `Configuration file example`_ as a reference. Make sure to
272
+ update the example configuration to your actual setup configuration
273
+ (ByteBlower server host name or IP, source and destination ports)
274
+
275
+ ``tr_398.json`` is the default configuration file name.
276
+ You can use the argument ``--config-file`` to specify your configuration file.
277
+
278
+
279
+ The reports will be stored under a subdirectory ``reports/``.
280
+
281
+ #. On Unix-based systems (Linux, WSL, macOS):
282
+
283
+ .. code-block:: shell
284
+
285
+ # Optional: create tr_398.json, then copy the configuration to it
286
+ touch tr_398.json
287
+ # Create reports folder to store HTML/JSON files
288
+ mkdir reports
289
+ # Run test
290
+ byteblower-test-cases-tr-398-airtime-fairness --report-path reports
291
+
292
+ #. On Windows systems using PowerShell:
293
+
294
+ .. code-block:: shell
295
+
296
+ # Optional: create tr_398.json, then copy the configuration to it
297
+ New-Item tr_398.json
298
+ # Create reports folder to store HTML/JSON files
299
+ md reports
300
+ # Run test
301
+ byteblower-test-cases-tr-398-airtime-fairness --report-path reports
302
+
303
+ Integrated
304
+ ----------
305
+
306
+ .. code-block:: python
307
+
308
+ from byteblower.test_cases.tr_398.airtime_fairness import run
309
+
310
+ # Defining test configuration, report path and report file name prefix:
311
+ test_config = {} # Here you should provide your test setup + frame(s') configuration(s)
312
+ report_path = 'my-output-folder' # Optional: provide the path to the output folder, defaults to the current working directory
313
+ report_prefix = 'my-dut-feature-test' # Optional: provide prefix of the output files, defaults to 'report'
314
+
315
+ # Run the TR-398 Airtime fairness test:
316
+ run(test_config, report_path=report_path, report_prefix=report_prefix)
317
+
318
+
319
+ Configuration file example
320
+ --------------------------
321
+
322
+ .. code-block:: json
323
+
324
+ {
325
+ "server":"byteblower-server.example.com.",
326
+ "meeting_point": "byteblower-meeting-point.example.com.",
327
+ "dut": {
328
+ "name": "DUT",
329
+ "interface": "trunk-1-2",
330
+ "ipv4": "192.168.5.2",
331
+ "netmask": "255.255.255.0",
332
+ "gateway": "192.168.5.254"
333
+ },
334
+ "wlan_stations": [
335
+ {
336
+ "name": "STA1",
337
+ "uuid": "017d7da0-9724-4459-a037-bcec9acf577a",
338
+ "ipv4": true
339
+ },
340
+ {
341
+ "name": "STA2",
342
+ "uuid": "9956866a-03a7-43c8-9cb9-8d3570d8c6a4",
343
+ "ipv4": true
344
+ },
345
+ {
346
+ "name": "STA3",
347
+ "uuid": "4d9a5fdb-32b4-4523-ace9-5972518de13b",
348
+ "ipv4": true
349
+ }
350
+ ]
351
+ }
352
+
353
+
354
+ More detailed documentation is available in the `Configuration file`_ section
355
+ of the documentation.
356
+
357
+ .. _Configuration file: https://api.byteblower.com/test-framework/latest/test-cases/tr-398/config/index.html
358
+