Low Latency test case using ByteBlower.
Project description
Prepare runtime environment
We recommend managing the runtime environment in a Python virtual environment. This guarantees proper separation of the system-wide installed Python and pip packages.
Important: Working directory
All the following sections expect that you first moved to the directory where you checked out this project.
On Unix-based systems (Linux, WSL, macOS):
cd '/path/to/project/checkout'
On Windows systems using PowerShell:
cd 'c:\path\to\project\checkout'
Python virtual environment
Prepare the Python virtual environment
On Unix-based systems (Linux, WSL, macOS):
python3 -m venv --clear env
. ./env/bin/activate
pip install -U pip build
On Windows systems using PowerShell:
Note: On Microsoft Windows, it may be required to enable the Activate.ps1 script by setting the execution policy for the user. You can do this by issuing the following PowerShell command:
PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
See About Execution Policies for more information.
python3.8.exe -m venv --clear env
& ".\env\Scripts\activate.ps1"
python -m pip install -U pip build
Project requirements
Install this project as an editable package, including its runtime dependencies.
pip install -U -e .
Run the traffic test
Command-line interface
The test script can be run either as python module or as a command-line script:
For example (to get help for the command-line arguments):
As a python module:
python -m byteblower.test_cases.low_latency --help
As a command-line script:
byteblower-test-cases-low-latency --help
Run the traffic test with default/example configuration file (examples/low_latency.json).
The reports will be stored under a subdirectory reports/.
On Unix-based systems (Linux, WSL, macOS):
. ./env/bin/activate
# create the reports directory
mkdir reports
byteblower-test-cases-low-latency --report_path reports
On Windows systems using PowerShell:
& ".\env\Scripts\activate.ps1"
md reports
byteblower-test-cases-low-latency --report_path reports
Integrated
from byteblower.test_cases.low_latency import run
# Defining test configuration, report path and report file name prefix:
test_config = {}
report_path = 'my-output-folder'
report_prefix = 'my-dut-feature-test'
# Run the traffic test:
run(test_config, report_path=report_path, report_prefix=report_prefix)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for byteblower_test_cases_low_latency-1.0.0b3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fcf30c8046f1183ac019fdc87941cf427aeda3c5d15cc27c6740734634a932a |
|
MD5 | a4c04414445d1599e4c49a28fb34aa19 |
|
BLAKE2b-256 | 972282eb5fe7d62002ec342ccaa33ec708af26807b07ce30392cc2de466b11bd |
Hashes for byteblower_test_cases_low_latency-1.0.0b3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb1deb32b295ddff7f59958f69d30f55b1807e1ebd7803d6fa85a340ac69ecda |
|
MD5 | f70a16e4c978667425742d9fe442839e |
|
BLAKE2b-256 | 146239df4a6a0edf4aa8fc920d6d4b0e97cf22b908144933afe93c57f3cdad80 |