Python package and CLI application to measure Power BI reports loading capacity, using different filters and parameters.
Project description
pbi-load-test
Python package and CLI application to measure Power BI reports loading capacity, using different filters and parameters.
It simulates a realistic set of user actions such as changing slicers, filters (soon), bookmarks (soon)
Prerequisites
- It requires and Azure AD login method. Ensure you have Azure CLI installed locally and authentificate (
az login
) in order to generate a token easily. Soon:
[!NOTE]
- Soon: the package will open a Window to authentificate if the Azure login has not be installed
- Soon: the package will be able to load Service Principal to to the test (Tenant ID, Client ID and Client Secret)
- This package is based on Selenium python package. It will open a Chromium window to launch the test. In any case, it may require the Chromium driver locally. The latest versions for each OS can be found here.
Configuration
The load test is configurated through a config.yaml
file which should be located in the current working directory.
# authentification: oauth
workspace: ... # PBI Workspace Name
report: ... # Report name
page: ... # Page name
slicers:
- table: ... # Table name from dataset which contains the column to filter on
column: ... # The column name containing the values to filter on
values:
- ... # The value to filter on
- ...
[!NOTE] For the moment, only slicers are usable to filter on. Later, filters will be available. Also, one slicer can be used in this first version. In the future, the tool will be able to iterate between slicers list and create combinations between slicer and filter values.
Example
It ensures that a config.yaml
file exists in the current working directory
[!NOTE]
The package will in the future be able to parseconfig.yaml
file from different project through the CLI application.
❯ poetry run pbi-load-test run
CORE - MARKETING [DEV]
SFE Country Dashboard TMDL
Activity Field Days
Workspace ID: 310d9fbb-1474-4939-bcb8-669a536ec959
Report ID: c89485c6-e0c3-4715-a710-ddd450491a9a
groups/310d9fbb-1474-4939-bcb8-669a536ec959/reports/c89485c6-e0c3-4715-a710-ddd450491a9a/pages
Page ID: ReportSectioncbd8077dfb6a167ccb5e
Duration: 30.085
Press Enter to continue...
After the test, all created files will be removed.
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
File details
Details for the file pbi_load_test-0.1.1a0.tar.gz
.
File metadata
- Download URL: pbi_load_test-0.1.1a0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.9.14 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dd8fde5a2638d435710c05ad397ff7238545da7f6e4bdecd72d47098ccfbe61 |
|
MD5 | fdf47d4a4fda9d0c55384de408dacc19 |
|
BLAKE2b-256 | 0e3307010bf1b3295dd2ce11a0b1a4f353f45007280bc95bc6b829e69f3d3393 |
File details
Details for the file pbi_load_test-0.1.1a0-py3-none-any.whl
.
File metadata
- Download URL: pbi_load_test-0.1.1a0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.9.14 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca01140bf5028eaa6e18c7699679c36e09aaa0482b760828fd0e8a5e70a3023d |
|
MD5 | 0188565879a04749aa67bd73e384286c |
|
BLAKE2b-256 | 8a11aa10c19fbe915a2189afa040a43f9eb3e4bdaea758eb1a6902c0b3109654 |