byteblower-test-cases-docsis-atp 1.0.0__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 (57) hide show
  1. byteblower_test_cases_docsis_atp-1.0.0/LICENSE +165 -0
  2. byteblower_test_cases_docsis_atp-1.0.0/PKG-INFO +398 -0
  3. byteblower_test_cases_docsis_atp-1.0.0/README.rst +334 -0
  4. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/.gitignore +2 -0
  5. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/__init__.py +2 -0
  6. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/_version.py +4 -0
  7. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/exceptions.py +18 -0
  8. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/__init__.py +20 -0
  9. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/__main__.py +4 -0
  10. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/_analysis.py +205 -0
  11. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/_definitions.py +29 -0
  12. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/_flow_factory.py +139 -0
  13. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/_helpers.py +157 -0
  14. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/_part1.py +449 -0
  15. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/_port_factory.py +83 -0
  16. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/_report_generator.py +609 -0
  17. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/cli.py +112 -0
  18. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/config_summary.html +22 -0
  19. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/css/embedded-fonts.css +880 -0
  20. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/css/test-case.css +74 -0
  21. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/css/testframework.css +471 -0
  22. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/frame_results.html +95 -0
  23. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/pass_fail.html +32 -0
  24. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/report.html +30 -0
  25. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/report_footer.html +731 -0
  26. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/report_head_style.html +8 -0
  27. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/report_header.html +119 -0
  28. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/report_main.html +10 -0
  29. byteblower_test_cases_docsis_atp-1.0.0/byteblower/test_cases/docsis_atp/mulpi_v4_0/ll_04_40/part1/templates/results_summary.html +43 -0
  30. byteblower_test_cases_docsis_atp-1.0.0/docs/.gitignore +1 -0
  31. byteblower_test_cases_docsis_atp-1.0.0/docs/Makefile +20 -0
  32. byteblower_test_cases_docsis_atp-1.0.0/docs/source/_include/_example_test_scenario.rst +16 -0
  33. byteblower_test_cases_docsis_atp-1.0.0/docs/source/_static/excentis.css +10 -0
  34. byteblower_test_cases_docsis_atp-1.0.0/docs/source/cli/index.rst +167 -0
  35. byteblower_test_cases_docsis_atp-1.0.0/docs/source/conf.py +126 -0
  36. byteblower_test_cases_docsis_atp-1.0.0/docs/source/config/index.rst +97 -0
  37. byteblower_test_cases_docsis_atp-1.0.0/docs/source/examples/index.rst +95 -0
  38. byteblower_test_cases_docsis_atp-1.0.0/docs/source/extra/test-cases/docsis-atp/json/mulpi-v4-0/ll-04-40/part1/config-schema.json +307 -0
  39. byteblower_test_cases_docsis_atp-1.0.0/docs/source/extra/test-cases/docsis-atp/json/mulpi-v4-0/ll-04-40/part1/port/part1.json +17 -0
  40. byteblower_test_cases_docsis_atp-1.0.0/docs/source/images/graphs.png +0 -0
  41. byteblower_test_cases_docsis_atp-1.0.0/docs/source/images/html_report_config.png +0 -0
  42. byteblower_test_cases_docsis_atp-1.0.0/docs/source/images/table_of_results.png +0 -0
  43. byteblower_test_cases_docsis_atp-1.0.0/docs/source/index.rst +11 -0
  44. byteblower_test_cases_docsis_atp-1.0.0/docs/source/master_index.rst +21 -0
  45. byteblower_test_cases_docsis_atp-1.0.0/docs/source/overview.rst +82 -0
  46. byteblower_test_cases_docsis_atp-1.0.0/docs/source/quick_start.rst +341 -0
  47. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/.gitignore +3 -0
  48. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/byteblower.rst +4 -0
  49. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/byteblower.test_cases.docsis_atp.exceptions.rst +7 -0
  50. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/byteblower.test_cases.docsis_atp.mulpi_v4_0.ll_04_40.part1.rst +10 -0
  51. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/byteblower.test_cases.docsis_atp.mulpi_v4_0.ll_04_40.rst +12 -0
  52. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/byteblower.test_cases.docsis_atp.mulpi_v4_0.rst +4 -0
  53. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/byteblower.test_cases.docsis_atp.rst +18 -0
  54. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/byteblower.test_cases.rst +12 -0
  55. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference/modules.rst +7 -0
  56. byteblower_test_cases_docsis_atp-1.0.0/docs/source/reference.rst +15 -0
  57. byteblower_test_cases_docsis_atp-1.0.0/pyproject.toml +310 -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,398 @@
1
+ Metadata-Version: 2.3
2
+ Name: byteblower-test-cases-docsis-atp
3
+ Version: 1.0.0
4
+ Summary: Perform traffic tests for DOCSIS 4.0 ATP using ByteBlower.
5
+ Keywords: ByteBlower,network test,traffic test,test case,Docsis-atp
6
+ Author-email: ByteBlower Development Team <support.byteblower@excentis.com>
7
+ Maintainer-email: Hamza Malkawi <hamza.malkawi@excentis.com>, Taimour Kasabi <taimour.kasabi@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: byteblower-test-framework >=1.4.0
29
+ Requires-Dist: pandas >=0.24.2
30
+ Requires-Dist: jinja2 >=2.10.1
31
+ Requires-Dist: highcharts-excentis >=0.4.4
32
+ Requires-Dist: pre-commit ; extra == "dev"
33
+ Requires-Dist: yapf[pyproject] ; extra == "dev"
34
+ Requires-Dist: isort ; extra == "dev"
35
+ Requires-Dist: rstcheck[toml] ; extra == "dev"
36
+ Requires-Dist: doc8 ; extra == "dev"
37
+ Requires-Dist: Pygments ; extra == "dev"
38
+ Requires-Dist: pydocstyle[toml] ; extra == "dev"
39
+ Requires-Dist: toml ~=0.10.2 ; extra == "dev"
40
+ Requires-Dist: Sphinx >= 5.0 ; extra == "docs-dev"
41
+ Requires-Dist: sphinx-rtd-theme >=1.0 ; extra == "docs-dev"
42
+ Requires-Dist: sphinx-tabs >= 3.4 ; extra == "docs-dev"
43
+ Requires-Dist: sphinx-jsonschema >= 1.19 ; extra == "docs-dev"
44
+ Requires-Dist: importlib-metadata>=4.8.3 ; extra == "docs-dev" and ( python_version<'3.8')
45
+ Requires-Dist: rstcheck[sphinx, toml] ; extra == "docs-dev"
46
+ Requires-Dist: pylint[spelling] ; extra == "test"
47
+ Requires-Dist: pydocstyle[toml] ; extra == "test"
48
+ Requires-Dist: rstcheck[sphinx, toml] ; extra == "test"
49
+ Requires-Dist: mypy >=1.0.0 ; extra == "test"
50
+ Requires-Dist: pandas-stubs ; extra == "test"
51
+ Requires-Dist: types-simplejson ; extra == "test"
52
+ Requires-Dist: pytest >=6.0 ; extra == "test"
53
+ Requires-Dist: pytest-cov ; extra == "test"
54
+ Requires-Dist: pytest-pydocstyle ; extra == "test"
55
+ Requires-Dist: toml ~=0.10.2 ; extra == "test"
56
+ Project-URL: Documentation, https://api.byteblower.com/test-framework/latest/test-cases/docsis-atp/master_index.html
57
+ Project-URL: Examples, https://api.byteblower.com/test-framework/latest/test-cases/docsis-atp/examples/index.html
58
+ Project-URL: Homepage, https://www.byteblower.com
59
+ Project-URL: Support Portal, https://support.excentis.com
60
+ Provides-Extra: dev
61
+ Provides-Extra: docs-dev
62
+ Provides-Extra: test
63
+
64
+ ************************************
65
+ ByteBlower Test Case: DOCSIS 4.0 ATP
66
+ ************************************
67
+
68
+ Introduction
69
+ ============
70
+
71
+ This package contains an implementation of the DOCSIS 4.0 ATP
72
+ Test using the `ByteBlower Test Framework`_.
73
+
74
+ .. _ByteBlower Test Framework: https://pypi.org/project/byteblower-test-framework/
75
+
76
+ .. footer::
77
+ Copyright |copy| |year| - Excentis N.V.
78
+
79
+ .. |copy| unicode:: U+00A9 .. copyright sign
80
+ .. |year| date:: %Y
81
+
82
+ The goal of the test is to verify the DOCSIS PIE AQM behavior in the presence
83
+ and absence of LLD traffic, and evaluate the delay estimator.
84
+
85
+
86
+ DOCSIS 4.0 ATP introduction
87
+ ============================
88
+ This ByteBlower MULPIv4 LL-04.40 Part test case allows you to:
89
+
90
+ #. Run tests based on MULPIv4 LL-04 ATP
91
+ #. Collect & Analyse statistics
92
+ #. Generate HTML report
93
+
94
+ For more detailed documentation, please have a look
95
+ at `Test Case: DOCSIS 4.0 ATP`_ in the ByteBlower API documentation.
96
+
97
+ .. _Test Case\: DOCSIS 4.0 ATP: https://api.byteblower.com/test-framework/latest/test-cases/docsis-atp/overview.html
98
+
99
+ Installation
100
+ ============
101
+
102
+ Requirements
103
+ ------------
104
+
105
+ * `ByteBlower Test Framework`_: ByteBlower |registered| is a traffic
106
+ generator/analyser system for TCP/IP networks.
107
+ * Highcharts-excentis_: Used for generating graphs
108
+ * jinja2_: To create HTML reports
109
+
110
+ .. _Highcharts-excentis: https://pypi.org/project/highcharts-excentis/
111
+ .. |registered| unicode:: U+00AE .. registered sign
112
+ .. _jinja2: https://pypi.org/project/Jinja2/
113
+
114
+ Prepare runtime environment
115
+ ---------------------------
116
+
117
+ We recommend managing the runtime environment in a Python virtual
118
+ environment. This guarantees proper separation of the system-wide
119
+ installed Python and pip packages.
120
+
121
+ Python
122
+ ------
123
+
124
+ The ByteBlower Test Framework currently supports Python versions 3.7
125
+ up to 3.12.
126
+
127
+ Important: Working directory
128
+ ----------------------------
129
+
130
+ All the following sections expect that you first moved to your working
131
+ directory where you want to run this project. You may also want to create
132
+ your configuration files under a sub-directory of your choice.
133
+
134
+ #. On Unix-based systems (Linux, WSL, macOS):
135
+
136
+ .. code-block:: shell
137
+
138
+ cd '/path/to/working/directory'
139
+
140
+ #. On Windows systems using PowerShell:
141
+
142
+ .. code-block:: shell
143
+
144
+ cd 'c:\path\to\working\directory'
145
+
146
+ Python virtual environment
147
+ --------------------------
148
+
149
+ Make sure to use the right Python version (>= 3.7, <= 3.11),
150
+ list all Python versions installed in your machine by running:
151
+
152
+ #. On Windows systems using PowerShell:
153
+
154
+ .. code-block:: shell
155
+
156
+ py --list
157
+
158
+ If no Python version is in the required range, you can download and install
159
+ Python 3.7 or above using your system package manager
160
+ or from https://www.python.org/ftp/python.
161
+
162
+ Prepare Python virtual environment: Create the virtual environment
163
+ and install/update ``pip`` and ``build``.
164
+
165
+ #. On Unix-based systems (Linux, WSL, macOS):
166
+
167
+ **Note**: *Mind the leading* ``.`` *which means* **sourcing**
168
+ ``./.venv/bin/activate``.
169
+
170
+ .. code-block:: shell
171
+
172
+ python3 -m venv --clear .venv
173
+ . ./.venv/bin/activate
174
+ pip install -U pip build
175
+
176
+ #. On Windows systems using PowerShell:
177
+
178
+ **Note**: On Microsoft Windows, it may be required to enable the
179
+ Activate.ps1 script by setting the execution policy for the user.
180
+ You can do this by issuing the following PowerShell command:
181
+
182
+ .. code-block:: shell
183
+
184
+ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
185
+
186
+ See `About Execution Policies`_ for more information.
187
+
188
+ Make sure to specify the python version you're using.
189
+ For example, for Python 3.8:
190
+
191
+ .. code-block:: shell
192
+
193
+ py -3.8 -m venv --clear .venv
194
+ & ".\.venv\Scripts\activate.ps1"
195
+ python -m pip install -U pip build
196
+
197
+ .. _About Execution Policies: https://go.microsoft.com/fwlink/?LinkID=135170
198
+
199
+ To install the ByteBlower DOCSIS 4.0 ATP test case and
200
+ its dependencies, first make sure that you have activated your
201
+ virtual environment:
202
+
203
+ #. On Unix-based systems (Linux, WSL, macOS):
204
+
205
+ .. code-block:: shell
206
+
207
+ . ./.venv/bin/activate
208
+
209
+ #. On Windows systems using PowerShell:
210
+
211
+ .. code-block:: shell
212
+
213
+ ./.venv/Scripts/activate.ps1
214
+
215
+ Then, run:
216
+
217
+ .. code-block:: shell
218
+
219
+ pip install -U byteblower-test-cases-docsis-atp
220
+
221
+ Quick start
222
+ ===========
223
+
224
+ Command-line interface
225
+ ----------------------
226
+
227
+ After providing the appropriate test setup and frame configurations,
228
+ the test script can be run either as python module or as a command-line script.
229
+
230
+ For example (*to get help for the command-line arguments*):
231
+
232
+ #. As a python module:
233
+
234
+ .. code-block:: shell
235
+
236
+ # To get help for the command-line arguments:
237
+ python -m byteblower.test_cases.docsis_atp.mulpi_v4_0.ll_04_40.part1 --help
238
+
239
+ #. As a command-line script:
240
+
241
+ .. code-block:: shell
242
+
243
+ # To get help for the command-line arguments:
244
+ byteblower-test-cases-docsis-atp-mulpi-v4-0-ll-04-40-part1 --help
245
+
246
+ To run the ByteBlower DOCSIS 4.0 ATP test case,
247
+ you should first provide your test configuration file.
248
+
249
+ you can use the `Configuration example`_ as a reference. Make sure to
250
+ update the example configuration to your actual setup configuration
251
+ (ByteBlower server host name or IP, NSI and CPE ports)
252
+
253
+ ``part1.json`` is the default configuration file name.
254
+ You can use the argument ``--config-file`` to specify your configuration file.
255
+
256
+
257
+ The reports will be stored under a subdirectory ``reports/``.
258
+
259
+ #. On Unix-based systems (Linux, WSL, macOS):
260
+
261
+ .. code-block:: shell
262
+
263
+ # Optional: create part1.json, then copy the configuration to it
264
+ touch part1.json
265
+ # Create reports folder to store HTML/JSON files
266
+ mkdir reports
267
+ # Run test
268
+ byteblower-test-cases-docsis-atp-mulpi-v4-0-ll-04-40-part1 --report-path reports
269
+
270
+ #. On Windows systems using PowerShell:
271
+
272
+ .. code-block:: shell
273
+
274
+ # Optional: create part1.json, then copy the configuration to it
275
+ New-Item part1.json
276
+ # Create reports folder to store HTML/JSON files
277
+ md reports
278
+ # Run test
279
+ byteblower-test-cases-docsis-atp-mulpi-v4-0-ll-04-40-part1 --report-path reports
280
+
281
+ Integrated
282
+ ----------
283
+
284
+ High-level integration with manual interaction:
285
+
286
+ .. code-block:: python
287
+
288
+ from byteblower.test_cases.docsis_atp.mulpi_v4_0.ll_04_40.part1 import run
289
+
290
+ # Defining test configuration, report path and report file name prefix:
291
+ test_config = {} # Here you should provide your test setup + frame(s') configuration(s)
292
+ report_path = 'my-output-folder' # Optional: provide the path to the output folder, defaults to the current working directory
293
+ report_prefix = 'my-dut-feature-test' # Optional: provide prefix of the output files, defaults to 'report'
294
+
295
+ # Run the DOCSIS 4.0 ATP test:
296
+ run(test_config, report_path=report_path, report_prefix=report_prefix)
297
+
298
+ High-level integration in user test scripts
299
+ and *optional* custom post-processing:
300
+
301
+ .. code-block:: python
302
+
303
+ from byteblower.test_cases.docsis_atp.mulpi_v4_0.ll_04_40.part1 import (
304
+ configure_traffic_endpoints,
305
+ generate_report,
306
+ run_procedure_1_1,
307
+ run_procedure_1_2,
308
+ )
309
+
310
+ _TEST_CONFIG = {
311
+ "server": "byteblower-server.example.com",
312
+ "nsi": {
313
+ "name": "NSI",
314
+ "interface": "nontrunk-1",
315
+ "mac": "00:ff:bb:00:00:11",
316
+ "ipv4": "dhcp"
317
+ },
318
+ "cpe": {
319
+ "name": "CPE",
320
+ "interface": "trunk-1-1",
321
+ "mac": "00:ff:bb:00:00:22",
322
+ "ipv4": "dhcp",
323
+ "nat": True
324
+ }
325
+ }
326
+
327
+ # 1. Configure the test
328
+ traffic_endpoints_configuration = configure_traffic_endpoints(_TEST_CONFIG)
329
+ # + Extract the traffic endpoints for the two test procedures
330
+ server, nsi_config, cpe_config = traffic_endpoints_configuration
331
+
332
+ # NOTE: At this point, prepare the CMTS and cable modems
333
+ # for test procedure 1.1
334
+
335
+ # 2. Run LL-04.40 Part 1, test Procedure 1.1
336
+ proc_1_report_info = run_procedure_1_1(
337
+ server,
338
+ nsi_config,
339
+ cpe_config,
340
+ enable_capture=True,
341
+ enable_sequence_numbers=True,
342
+ )
343
+
344
+ # NOTE: At this point, prepare the CMTS and cable modems
345
+ # for test procedure 1.2
346
+
347
+ # 3. Run LL-04.40 Part 1, test Procedure 1.2
348
+ proc_2_report_info = run_procedure_1_2(
349
+ server,
350
+ nsi_config,
351
+ cpe_config,
352
+ enable_capture=True,
353
+ enable_sequence_numbers=True,
354
+ )
355
+
356
+ # 4. Generate the (HTML) test report
357
+ report_file_path = generate_report(
358
+ proc_1_report_info,
359
+ proc_2_report_info,
360
+ report_path=Path.cwd(),
361
+ report_prefix='my_report_prefix',
362
+ )
363
+
364
+ # 5. Extract captures and flow UDP ports for each test procedure
365
+ # To be used for further post-processing
366
+ proc_1_capture_info = proc_1_report_info[2]
367
+ proc_1_capture_file_path, proc_1_udp_dest_ports = proc_1_capture_info
368
+
369
+ proc_2_capture_info = proc_2_report_info[2]
370
+ proc_2_capture_file_path, proc_2_udp_dest_ports = proc_2_capture_info
371
+
372
+ Configuration example
373
+ ---------------------
374
+
375
+ .. code-block:: json
376
+
377
+ {
378
+ "server": "byteblower-server.example.com",
379
+ "nsi": {
380
+ "name": "NSI",
381
+ "interface": "nontrunk-1",
382
+ "ipv4": "10.1.1.125",
383
+ "netmask": "255.255.255.0",
384
+ "gateway": "10.1.1.1"
385
+ },
386
+ "cpe": {
387
+ "name": "CPE",
388
+ "interface": "trunk-1-7",
389
+ "ipv4": "dhcp",
390
+ "nat": true
391
+ }
392
+ }
393
+
394
+ More detailed documentation is available in the `Configuration file`_ section
395
+ of the documentation.
396
+
397
+ .. _Configuration file: https://api.byteblower.com/test-framework/latest/test-cases/docsis-atp/config/index.html
398
+