Repository: eldaduzman/pymeter
Branch: main
Commit: f1774515f08f
Files: 51
Total size: 611.2 KB
Directory structure:
gitextract_eu2_wdlm/
├── .all-contributorsrc
├── .github/
│ ├── dependabot.yml
│ └── workflows/
│ ├── build.yaml
│ └── publish-pypi.yaml
├── .gitignore
├── .pylintrc
├── .readthedocs.yaml
├── CODE_OF_CONDUCT.md
├── LICENSE
├── README.md
├── cosmic-ray-config.ini
├── docs/
│ ├── Mutation-Testing/
│ │ ├── 01102022.html
│ │ └── 27092022.html
│ ├── requirements.txt
│ └── user-guide/
│ ├── Makefile
│ ├── make.bat
│ └── source/
│ ├── api.rst
│ ├── assertions.rst
│ ├── conf.py
│ ├── config.rst
│ ├── index.rst
│ ├── installation.rst
│ ├── postprocessors.rst
│ ├── quickstart.rst
│ ├── reporters.rst
│ ├── samplers.rst
│ └── timers.rst
├── java-dependencies/
│ ├── pom.xml
│ └── src/
│ ├── main/
│ │ └── java/
│ │ └── us/
│ │ └── abstracta/
│ │ └── jmeter/
│ │ └── App.java
│ └── test/
│ └── java/
│ └── us/
│ └── abstracta/
│ └── jmeter/
│ └── AppTest.java
├── pyproject.toml
├── src/
│ └── pymeter/
│ ├── __init__.py
│ └── api/
│ ├── __init__.py
│ ├── assertions.py
│ ├── config.py
│ ├── postprocessors.py
│ ├── reporters.py
│ ├── samplers.py
│ └── timers.py
├── tox.ini
└── utests/
├── __init__.py
├── resources/
│ └── test_data.csv
├── test_assertions.py
├── test_csv_data_set.py
├── test_postprocessors.py
├── test_reporter.py
├── test_sampler.py
├── test_test_plan.py
├── test_thread_group.py
├── test_timers.py
└── test_vars.py
================================================
FILE CONTENTS
================================================
================================================
FILE: .all-contributorsrc
================================================
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
"contributors": [
{
"login": "Minitour",
"name": "Antonio Zaitoun",
"avatar_url": "https://avatars.githubusercontent.com/u/17438617?v=4",
"profile": "https://www.linkedin.com/in/antonio-zaitoun/",
"contributions": [
"doc"
]
},
{
"login": "eldaduzman",
"name": "Eldad Uzman",
"avatar_url": "https://avatars.githubusercontent.com/u/55621402?v=4",
"profile": "https://medium.com/@eldadu1985",
"contributions": [
"infra",
"test",
"code"
]
}
],
"contributorsPerLine": 7,
"skipCi": true,
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "pymeter",
"projectOwner": "eldaduzman"
}
================================================
FILE: .github/dependabot.yml
================================================
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
- package-ecosystem: "" # See documentation for possible values
directory: "/java-dependencies" # Location of package manifests
schedule:
interval: "weekly"
================================================
FILE: .github/workflows/build.yaml
================================================
name: run tests
on: [pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python_version: [3.8, 3.9, 3.10.x, 3.11.x]
java_version: [8,11]
java_distribution: [temurin]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: ${{ matrix.java_distribution }}
java-version: ${{ matrix.java_version }}
- name: Setup Python ${{ matrix.python_version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python_version }}
- name: Run maven tests
run: mvn dependency:copy-dependencies -f java-dependencies/pom.xml
- name: install python dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions poetry==1.5.1
- name: make jars dir
run: mkdir -p src/pymeter/resources/jars
- name: copy jars
run: cp java-dependencies/target/dependency/* src/pymeter/resources/jars
- name: display jars
run: ls -l src/pymeter/resources/jars
- name: test with tox
run: tox
================================================
FILE: .github/workflows/publish-pypi.yaml
================================================
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Upload Python Package
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
- name: Create jar
run: |
mvn dependency:copy-dependencies -f java-dependencies/pom.xml
mkdir -p src/pymeter/resources/jars
cp java-dependencies/target/dependency/* src/pymeter/resources/jars
ls -l src/pymeter/resources/jars
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry==1.5.1
poetry install --only-root
- name: Build package
run: poetry build -f sdist
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
================================================
FILE: .gitignore
================================================
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,java,pycharm+all,python
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,java,pycharm+all,python
### Java ###
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
### PyCharm+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
.idea/**/libraries
# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
# CMake
cmake-build-*/
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# File-based project format
*.iws
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
# Editor-based Rest Client
.idea/httpRequests
# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser
### PyCharm+all Patch ###
# Ignore everything but code style settings and run configurations
# that are supposed to be shared within teams.
.idea/*
!.idea/codeStyles
!.idea/runConfigurations
### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST
# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
# Installer logs
pip-log.txt
pip-delete-this-directory.txt
# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/
# Translations
*.mo
*.pot
# Django stuff:
local_settings.py
db.sqlite3
db.sqlite3-journal
# Flask stuff:
instance/
.webassets-cache
# Scrapy stuff:
.scrapy
# Sphinx documentation
docs/_build/
# PyBuilder
.pybuilder/
target/
# Jupyter Notebook
.ipynb_checkpoints
# IPython
profile_default/
ipython_config.py
# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock
# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock
# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/
# Celery stuff
celerybeat-schedule
celerybeat.pid
# SageMath parsed files
*.sage.py
# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Spyder project settings
.spyderproject
.spyproject
# Rope project settings
.ropeproject
# mkdocs documentation
/site
# mypy
.mypy_cache/
.dmypy.json
dmypy.json
# Pyre type checker
.pyre/
# pytype static type analyzer
.pytype/
# Cython debug symbols
cython_debug/
# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
# Local History for Visual Studio Code
.history/
# Built Visual Studio Code Extensions
*.vsix
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
# Support for Project snippet scope
.vscode/*.code-snippets
# Ignore code-workspaces
*.code-workspace
### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp
# Windows shortcuts
*.lnk
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,java,pycharm+all,python
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
html-report-*/
.vscode/
output/
*.sqlite
playground/
================================================
FILE: .pylintrc
================================================
[MASTER]
init-hook='import sys; sys.path.append("."); sys.path.append("src")'
[FORMAT]
max-line-length=150
================================================
FILE: .readthedocs.yaml
================================================
version: 2
build:
os: ubuntu-20.04
tools:
python: "3.8"
apt_packages:
- default-jdk
- maven
jobs:
pre_install:
- pwd
- ls -lstr
- ls -lstr src
- ls -lstr src/pymeter
- mvn dependency:copy-dependencies -f java-dependencies/pom.xml
- mkdir -p src/pymeter/resources/jars
- cp java-dependencies/target/dependency/* src/pymeter/resources/jars
- ls -l src/pymeter/resources/jars
sphinx:
configuration: docs/user-guide/source/conf.py
# Optionally build your docs in additional formats such as PDF and ePub
formats: all
python:
install:
- requirements: docs/requirements.txt
- method: pip
path: .
================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Code of Conduct
Trust, respect, collaboration and transparency are core values we believe should live and breathe within our projects. Our community welcomes participants from around the world with different experiences, unique perspectives, and great ideas to share.
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Attempting collaboration before conflict
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- Violence, threats of violence, or inciting others to commit self-harm
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, intentionally spreading misinformation, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Abuse of the reporting process to intentionally harass or exclude others
- Advocating for, or encouraging, any of the above behavior
- Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting one of the maintainers privately
1. Eldad Uzman - eldadu1985@gmail.com
All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
If you are unsure whether an incident is a violation, or whether the space where the incident took place is covered by our Code of Conduct, **we encourage you to still report it**. We would prefer to have a few extra reports where we decide to take no action, than to leave an incident go unnoticed and unresolved that may result in an individual or group to feel like they can no longer participate in the community. Reports deemed as not a violation will also allow us to improve our Code of Conduct and processes surrounding it. If you witness a dangerous situation or someone in distress, we encourage you to report even if you are only an observer.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), [version 1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html).
================================================
FILE: LICENSE
================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
================================================
FILE: README.md
================================================
# pymeter
[](#contributors-)
Simple JMeter performance tests API for python
#### Powered by [JMeter-DSL](https://abstracta.github.io/jmeter-java-dsl/) and [pyjnius](https://github.com/kivy/pyjnius)
[](https://pypi.python.org/pypi/pymeter)



[](https://python.org/)
[](https://abstracta.github.io/jmeter-java-dsl/)
[](https://pymeter.readthedocs.io/en/latest/?badge=latest)
[](https://opensource.org/licenses/Apache-2.0)

Antonio Zaitoun 📖 |
Eldad Uzman 🚇 ⚠️ 💻 |
Cosmic Ray Report
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -239,7 +239,7 @@
@property
def java_wrapped_element(self):
"""retrieves the java element wrapped in the python object by class name"""
- if not self.__class__.wrapped_instance_name:
+ if self.__class__.wrapped_instance_name:
self.__class__.wrapped_instance_name = BaseJMeterClass.pattern.sub(
"_", self.__class__.__name__
).lower()EEEEE..EEE.EEE.EEEEEEE.EE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 17, in test_http_sampler
http_sampler = HttpSampler(
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'JsonExtractor' object has no attribute '_None_instance'
======================================================================
ERROR: test_postprocessor_on_thread_group (utests.test_postprocessors.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 41, in test_postprocessor_on_thread_group
tg1 = ThreadGroupSimple(1, 1, dummy_sampler, json_extractor)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'DummySampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 28, in test_post_http_sampler_dict_input
).post({"var1": 1}, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 39, in test_post_http_sampler_list_input
).post([1, 2, 3, 4], ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TestPlan' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(30, 1, 20, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 196, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 196, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'DummySampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'SetupThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TeardownThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 15, in test_uniform_random_timer
http_sampler = HttpSampler("Echo", "https://postman-echo.com/get?var=1", timer)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'UniformRandomTimer' object has no attribute '_None_instance'
----------------------------------------------------------------------
Ran 25 tests in 0.845s
FAILED (errors=20)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -239,7 +239,7 @@
@property
def java_wrapped_element(self):
"""retrieves the java element wrapped in the python object by class name"""
- if not self.__class__.wrapped_instance_name:
+ if not not self.__class__.wrapped_instance_name:
self.__class__.wrapped_instance_name = BaseJMeterClass.pattern.sub(
"_", self.__class__.__name__
).lower()EEEEE..EEE.EEE.EEEEEEE.EE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 17, in test_http_sampler
http_sampler = HttpSampler(
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'JsonExtractor' object has no attribute '_None_instance'
======================================================================
ERROR: test_postprocessor_on_thread_group (utests.test_postprocessors.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 41, in test_postprocessor_on_thread_group
tg1 = ThreadGroupSimple(1, 1, dummy_sampler, json_extractor)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'DummySampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 234, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 28, in test_post_http_sampler_dict_input
).post({"var1": 1}, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 39, in test_post_http_sampler_list_input
).post([1, 2, 3, 4], ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TestPlan' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(30, 1, 20, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 196, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 196, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'DummySampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'SetupThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TeardownThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 15, in test_uniform_random_timer
http_sampler = HttpSampler("Echo", "https://postman-echo.com/get?var=1", timer)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 100, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'UniformRandomTimer' object has no attribute '_None_instance'
----------------------------------------------------------------------
Ran 25 tests in 0.713s
FAILED (errors=20)
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -230,7 +230,7 @@
return (
str(type(self.java_wrapped_element))
- .split("class ")[1]
+ .split("class ")[ 2]
.split("'jnius.reflect.")[1]
.split("'")[0]
.strip()Warning: Nashorn engine is planned to be removed from a future JDK release
E00:42:54.214 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 20.4/s Avg: 407 Min: 407 Max: 407 Err: 0 (0.00%)
.EEE.. + 1 in 00:00:01 = 1.5/s Avg: 619 Min: 619 Max: 619 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:01 = 1.5/s Avg: 619 Min: 619 Max: 619 Err: 0 (0.00%)
EEE.EEE.E = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.6/s Avg: 588 Min: 588 Max: 588 Err: 0 (0.00%) Active: 18 Started: 18 Finished: 0
+ 3897 in 00:00:21 = 189.5/s Avg: 157 Min: 138 Max: 705 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3898 in 00:00:21 = 183.9/s Avg: 158 Min: 138 Max: 705 Err: 0 (0.00%)
E.EEE.E = 1 in 00:00:03 = 0.4/s Avg: 577 Min: 577 Max: 577 Err: 0 (0.00%)
E
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 27, in test_http_sampler
json_extractor.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 23, in test_http_sampler
html_reporter.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 94, in test_http_2_headers
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 109, in test_http_duplicated_header
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 19, in test_http_sampler
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 79, in test_http_valid_header
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 30, in test_post_http_sampler_dict_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 41, in test_post_http_sampler_list_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 52, in test_post_http_sampler_str_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 35, in test_creation_of_test_plan_with_valid_children
test_plan.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 60, in test_run_positive_flow
test_plan.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 42, in test_creation_of_thread_group_with_valid_children
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 20, in test_uniform_random_timer
timer.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
----------------------------------------------------------------------
Ran 25 tests in 40.348s
FAILED (errors=17)
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -230,7 +230,7 @@
return (
str(type(self.java_wrapped_element))
- .split("class ")[1]
+ .split("class ")[ 0]
.split("'jnius.reflect.")[1]
.split("'")[0]
.strip()Warning: Nashorn engine is planned to be removed from a future JDK release
E00:43:39.849 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 15.9/s Avg: 56 Min: 56 Max: 56 Err: 0 (0.00%)
.EEE.. = 1 in 00:00:01 = 1.3/s Avg: 655 Min: 655 Max: 655 Err: 0 (0.00%)
EEE.EEE.E = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1587 in 00:00:09 = 168.6/s Avg: 165 Min: 140 Max: 677 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 2260 in 00:00:12 = 191.1/s Avg: 156 Min: 140 Max: 462 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3847 in 00:00:21 = 181.1/s Avg: 160 Min: 140 Max: 677 Err: 0 (0.00%)
E.EEE.E = 1 in 00:00:03 = 0.3/s Avg: 647 Min: 647 Max: 647 Err: 0 (0.00%)
E
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 27, in test_http_sampler
json_extractor.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 23, in test_http_sampler
html_reporter.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 94, in test_http_2_headers
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 109, in test_http_duplicated_header
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 19, in test_http_sampler
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 79, in test_http_valid_header
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 30, in test_post_http_sampler_dict_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 41, in test_post_http_sampler_list_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 52, in test_post_http_sampler_str_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 35, in test_creation_of_test_plan_with_valid_children
test_plan.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 60, in test_run_positive_flow
test_plan.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 42, in test_creation_of_thread_group_with_valid_children
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 20, in test_uniform_random_timer
timer.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
----------------------------------------------------------------------
Ran 25 tests in 45.731s
FAILED (errors=17)
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -231,7 +231,7 @@
return (
str(type(self.java_wrapped_element))
.split("class ")[1]
- .split("'jnius.reflect.")[1]
+ .split("'jnius.reflect.")[ 2]
.split("'")[0]
.strip()
)Warning: Nashorn engine is planned to be removed from a future JDK release
E00:44:27.381 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 10.4/s Avg: 305 Min: 305 Max: 305 Err: 0 (0.00%)
. + 8 in 00:00:01 = 5.7/s Avg: 258 Min: 144 Max: 608 Err: 0 (0.00%) Active: 2 Started: 2 Finished: 0
EEE.. + 1 in 00:00:01 = 1.4/s Avg: 654 Min: 654 Max: 654 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:01 = 1.4/s Avg: 654 Min: 654 Max: 654 Err: 0 (0.00%)
EEE.EEE.E = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 3800 in 00:00:21 = 179.2/s Avg: 162 Min: 140 Max: 684 Err: 0 (0.00%)
E.EEE.E + 1 in 00:00:03 = 0.4/s Avg: 617 Min: 617 Max: 617 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:03 = 0.4/s Avg: 617 Min: 617 Max: 617 Err: 0 (0.00%)
E
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 27, in test_http_sampler
json_extractor.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 23, in test_http_sampler
html_reporter.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 94, in test_http_2_headers
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 109, in test_http_duplicated_header
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 19, in test_http_sampler
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 79, in test_http_valid_header
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 30, in test_post_http_sampler_dict_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 41, in test_post_http_sampler_list_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 52, in test_post_http_sampler_str_input
http_sampler.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 35, in test_creation_of_test_plan_with_valid_children
test_plan.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 60, in test_run_positive_flow
test_plan.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 42, in test_creation_of_thread_group_with_valid_children
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 20, in test_uniform_random_timer
timer.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
----------------------------------------------------------------------
Ran 25 tests in 44.230s
FAILED (errors=17)
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 3
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -231,7 +231,7 @@
return (
str(type(self.java_wrapped_element))
.split("class ")[1]
- .split("'jnius.reflect.")[1]
+ .split("'jnius.reflect.")[ 0]
.split("'")[0]
.strip()
)Warning: Nashorn engine is planned to be removed from a future JDK release
F00:45:15.565 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 11.6/s Avg: 139 Min: 139 Max: 139 Err: 0 (0.00%)
.FFF.. = 1 in 00:00:01 = 1.4/s Avg: 646 Min: 646 Max: 646 Err: 0 (0.00%)
FFF.FFF.F = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 784 in 00:00:05 = 148.1/s Avg: 178 Min: 138 Max: 676 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 2979 in 00:00:16 = 186.2/s Avg: 159 Min: 138 Max: 447 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3763 in 00:00:21 = 176.7/s Avg: 163 Min: 138 Max: 676 Err: 0 (0.00%)
F.FFF.F = 1 in 00:00:03 = 0.4/s Avg: 635 Min: 635 Max: 635 Err: 0 (0.00%)
F
======================================================================
FAIL: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 26, in test_http_sampler
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.postprocessors.DslJsonExtractor'
+ us.abstracta.jmeter.javadsl.core.postprocessors.DslJsonExtractor
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 22, in test_http_sampler
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.listeners.HtmlReporter'
+ us.abstracta.jmeter.javadsl.core.listeners.HtmlReporter
======================================================================
FAIL: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 93, in test_http_2_headers
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 108, in test_http_duplicated_header
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 18, in test_http_sampler
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 78, in test_http_valid_header
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 29, in test_post_http_sampler_dict_input
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 40, in test_post_http_sampler_list_input
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 51, in test_post_http_sampler_str_input
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 23, in test_creation_of_empty_test_plan
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 34, in test_creation_of_test_plan_with_valid_children
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 59, in test_run_positive_flow
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 23, in test_creation_of_empty_setup_thread_group
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslSetupThreadGroup'
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslSetupThreadGroup
======================================================================
FAIL: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 31, in test_creation_of_empty_teardown_thread_group
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslTeardownThreadGroup'
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslTeardownThreadGroup
======================================================================
FAIL: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 15, in test_creation_of_empty_thread_group
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup'
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup
======================================================================
FAIL: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 41, in test_creation_of_thread_group_with_valid_children
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup'
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup
======================================================================
FAIL: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 19, in test_uniform_random_timer
self.assertEqual(
AssertionError: '' != 'us.abstracta.jmeter.javadsl.core.timers.DslUniformRandomTimer'
+ us.abstracta.jmeter.javadsl.core.timers.DslUniformRandomTimer
----------------------------------------------------------------------
Ran 25 tests in 45.294s
FAILED (failures=17)
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 4
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -232,7 +232,7 @@
str(type(self.java_wrapped_element))
.split("class ")[1]
.split("'jnius.reflect.")[1]
- .split("'")[0]
+ .split("'")[ 1]
.strip()
)
Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:02 = 0.5/s Avg: 1379 Min: 1379 Max: 1379 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
F00:46:03.962 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
+ 1 in 00:00:00 = 10.4/s Avg: 295 Min: 295 Max: 295 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:00 = 10.2/s Avg: 295 Min: 295 Max: 295 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.5/s Avg: 629 Min: 629 Max: 629 Err: 0 (0.00%) Active: 2 Started: 2 Finished: 0
FFF.. = 1 in 00:00:01 = 1.5/s Avg: 609 Min: 609 Max: 609 Err: 0 (0.00%)
FFF.FFF.F = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 3096 in 00:00:17 = 181.0/s Avg: 159 Min: 138 Max: 843 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 780 in 00:00:04 = 188.8/s Avg: 157 Min: 138 Max: 425 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3876 in 00:00:21 = 182.5/s Avg: 158 Min: 138 Max: 843 Err: 0 (0.00%)
F + 1 in 00:00:00 = 500.0/s Avg: 235 Min: 235 Max: 235 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
.FFF.F = 1 in 00:00:03 = 0.4/s Avg: 657 Min: 657 Max: 657 Err: 0 (0.00%)
F
======================================================================
FAIL: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 26, in test_http_sampler
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.postprocessors.DslJsonExtractor'
- >
+ us.abstracta.jmeter.javadsl.core.postprocessors.DslJsonExtractor
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 22, in test_http_sampler
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.listeners.HtmlReporter'
- >
+ us.abstracta.jmeter.javadsl.core.listeners.HtmlReporter
======================================================================
FAIL: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 93, in test_http_2_headers
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 108, in test_http_duplicated_header
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 18, in test_http_sampler
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 78, in test_http_valid_header
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 29, in test_post_http_sampler_dict_input
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 40, in test_post_http_sampler_list_input
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 51, in test_post_http_sampler_str_input
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 23, in test_creation_of_empty_test_plan
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
- >
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 34, in test_creation_of_test_plan_with_valid_children
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
- >
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 59, in test_run_positive_flow
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
- >
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 23, in test_creation_of_empty_setup_thread_group
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslSetupThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslSetupThreadGroup
======================================================================
FAIL: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 31, in test_creation_of_empty_teardown_thread_group
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslTeardownThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslTeardownThreadGroup
======================================================================
FAIL: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 15, in test_creation_of_empty_thread_group
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup
======================================================================
FAIL: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 41, in test_creation_of_thread_group_with_valid_children
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup
======================================================================
FAIL: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 19, in test_uniform_random_timer
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.timers.DslUniformRandomTimer'
- >
+ us.abstracta.jmeter.javadsl.core.timers.DslUniformRandomTimer
----------------------------------------------------------------------
Ran 25 tests in 45.603s
FAILED (failures=17)
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 5
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -232,7 +232,7 @@
str(type(self.java_wrapped_element))
.split("class ")[1]
.split("'jnius.reflect.")[1]
- .split("'")[0]
+ .split("'")[ -1]
.strip()
)
Warning: Nashorn engine is planned to be removed from a future JDK release
F00:46:49.250 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 10.4/s Avg: 329 Min: 329 Max: 329 Err: 0 (0.00%)
.FFF.. = 1 in 00:00:01 = 1.4/s Avg: 629 Min: 629 Max: 629 Err: 0 (0.00%)
FFF.FFF.F = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 120 in 00:00:02 = 69.2/s Avg: 267 Min: 141 Max: 669 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 3689 in 00:00:20 = 188.9/s Avg: 158 Min: 138 Max: 695 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3809 in 00:00:21 = 179.2/s Avg: 161 Min: 138 Max: 695 Err: 0 (0.00%)
F.FFF.F = 1 in 00:00:03 = 0.4/s Avg: 644 Min: 644 Max: 644 Err: 0 (0.00%)
F
======================================================================
FAIL: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 26, in test_http_sampler
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.postprocessors.DslJsonExtractor'
- >
+ us.abstracta.jmeter.javadsl.core.postprocessors.DslJsonExtractor
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 22, in test_http_sampler
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.listeners.HtmlReporter'
- >
+ us.abstracta.jmeter.javadsl.core.listeners.HtmlReporter
======================================================================
FAIL: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 93, in test_http_2_headers
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 108, in test_http_duplicated_header
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 18, in test_http_sampler
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 78, in test_http_valid_header
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslBaseHttpSampler
======================================================================
FAIL: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 29, in test_post_http_sampler_dict_input
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 40, in test_post_http_sampler_list_input
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 51, in test_post_http_sampler_str_input
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.http.DslHttpSampler'
- >
+ us.abstracta.jmeter.javadsl.http.DslHttpSampler
======================================================================
FAIL: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 23, in test_creation_of_empty_test_plan
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
- >
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 34, in test_creation_of_test_plan_with_valid_children
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
- >
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 59, in test_run_positive_flow
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.DslTestPlan'
- >
+ us.abstracta.jmeter.javadsl.core.DslTestPlan
======================================================================
FAIL: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 23, in test_creation_of_empty_setup_thread_group
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslSetupThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslSetupThreadGroup
======================================================================
FAIL: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 31, in test_creation_of_empty_teardown_thread_group
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslTeardownThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslTeardownThreadGroup
======================================================================
FAIL: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 15, in test_creation_of_empty_thread_group
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup
======================================================================
FAIL: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 41, in test_creation_of_thread_group_with_valid_children
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup'
- >
+ us.abstracta.jmeter.javadsl.core.threadgroups.DslDefaultThreadGroup
======================================================================
FAIL: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 19, in test_uniform_random_timer
self.assertEqual(
AssertionError: '>' != 'us.abstracta.jmeter.javadsl.core.timers.DslUniformRandomTimer'
- >
+ us.abstracta.jmeter.javadsl.core.timers.DslUniformRandomTimer
----------------------------------------------------------------------
Ran 25 tests in 46.460s
FAILED (failures=17)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -235,8 +235,6 @@
.split("'")[0]
.strip()
)
-
- @property
def java_wrapped_element(self):
"""retrieves the java element wrapped in the python object by class name"""
if not self.__class__.wrapped_instance_name:EEEEE..EEE.EEE.EEEEEEE.EE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 17, in test_http_sampler
http_sampler = HttpSampler(
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 99, in __init__
self._http_sampler_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.postprocessors.JsonExtractor object at 0x00000180A073D300>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/samplers/BaseSampler$SamplerChild;'
======================================================================
ERROR: test_postprocessor_on_thread_group (utests.test_postprocessors.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 41, in test_postprocessor_on_thread_group
tg1 = ThreadGroupSimple(1, 1, dummy_sampler, json_extractor)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 233, in __init__
self._thread_group_simple_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.DummySampler object at 0x00000180A073FA90>>, <bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.postprocessors.JsonExtractor object at 0x00000180A073D300>>) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 261, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x000001809E50EC80>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
AttributeError: 'function' object has no attribute 'header'
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
AttributeError: 'function' object has no attribute 'header'
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 233, in __init__
self._thread_group_simple_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x00000180A073C7F0>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
AttributeError: 'function' object has no attribute 'header'
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 28, in test_post_http_sampler_dict_input
).post({"var1": 1}, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
AttributeError: 'function' object has no attribute 'post'
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 39, in test_post_http_sampler_list_input
).post([1, 2, 3, 4], ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
AttributeError: 'function' object has no attribute 'post'
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
AttributeError: 'function' object has no attribute 'post'
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 155, in __init__
self._test_plan_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.config.ThreadGroupWithRampUpAndHold object at 0x00000180A073F010>>, <bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.config.ThreadGroupWithRampUpAndHold object at 0x00000180A0719D80>>) used for L array 'Lus/abstracta/jmeter/javadsl/core/DslTestPlan$TestPlanChild;'
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 155, in __init__
self._test_plan_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.config.ThreadGroupWithRampUpAndHold object at 0x00000180A073D540>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/DslTestPlan$TestPlanChild;'
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(30, 1, 20, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 261, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x00000180A073CC40>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 195, in __init__
self._setup_thread_group_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.DummySampler object at 0x00000180A073CC40>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 261, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x00000180A073CD00>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 15, in test_uniform_random_timer
http_sampler = HttpSampler("Echo", "https://postman-echo.com/get?var=1", timer)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 99, in __init__
self._http_sampler_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.timers.UniformRandomTimer object at 0x00000180A073ED70>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/samplers/BaseSampler$SamplerChild;'
----------------------------------------------------------------------
Ran 25 tests in 1.246s
FAILED (errors=20)
worker outcome: normal
test outcome: killed
operator: core/ReplaceOrWithAnd, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\reporters.py
+++ bsrc\pymeter\api\reporters.py
@@ -45,7 +45,7 @@
"""Reports results to HTML format"""
def __init__(self, directory: Optional[str] = None) -> None:
- directory = directory or os.path.join(
+ directory = directory and os.path.join(
"output", f'html-report-{datetime.now().strftime("%m%d%Y%H%M%S")}'
)
self._html_reporter_instance = HtmlReporter.jmeter_class.htmlReporter(directory)Warning: Nashorn engine is planned to be removed from a future JDK release
E00:47:45.895 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 7.1/s Avg: 397 Min: 397 Max: 397 Err: 0 (0.00%)
.F.... = 1 in 00:00:01 = 1.5/s Avg: 615 Min: 615 Max: 615 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 636 in 00:00:04 = 141.6/s Avg: 182 Min: 140 Max: 675 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 3155 in 00:00:17 = 188.9/s Avg: 158 Min: 140 Max: 528 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3791 in 00:00:21 = 178.8/s Avg: 162 Min: 140 Max: 675 Err: 0 (0.00%)
.E..... = 1 in 00:00:03 = 0.4/s Avg: 607 Min: 607 Max: 607 Err: 0 (0.00%)
.
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 31, in test_http_sampler
with open(path_to_jtl, "r", encoding="utf-8") as jtl_file:
FileNotFoundError: [Errno 2] No such file or directory: 'output\\a0fec9b4-b95c-49c9-93b4-fd13dc8a2ef0\\report.jtl'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 108, in test_run_validate_order
with open(path_to_jtl, "r", encoding="utf-8") as jtl_file:
FileNotFoundError: [Errno 2] No such file or directory: 'output\\5659f6b8-cdb5-42b8-b382-aaf1a4df23bc\\report.jtl'
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 26, in test_http_sampler
self.assertTrue(os.path.exists(output_dir))
AssertionError: False is not true
----------------------------------------------------------------------
Ran 25 tests in 45.298s
FAILED (failures=1, errors=2)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -118,7 +118,7 @@
if isinstance(body, (dict, list)):
body = json.dumps(body)
- elif not isinstance(body, str):
+ elif isinstance(body, str):
raise TypeError(
f"Invalid type, expected `list`, 'dict', or 'str'. got {type(body)}"
)Warning: Nashorn engine is planned to be removed from a future JDK release
.00:48:32.473 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
+ 1 in 00:00:00 = 10.9/s Avg: 237 Min: 237 Max: 237 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:00 = 10.6/s Avg: 237 Min: 237 Max: 237 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.5/s Avg: 623 Min: 623 Max: 623 Err: 0 (0.00%) Active: 2 Started: 2 Finished: 0
..... = 1 in 00:00:01 = 1.5/s Avg: 599 Min: 599 Max: 599 Err: 0 (0.00%)
...E.E... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 3263 in 00:00:18 = 181.1/s Avg: 159 Min: 139 Max: 659 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 627 in 00:00:03 = 186.8/s Avg: 155 Min: 139 Max: 441 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3890 in 00:00:21 = 182.0/s Avg: 158 Min: 139 Max: 659 Err: 0 (0.00%)
F + 1 in 00:00:00 = 1000.0/s Avg: 383 Min: 383 Max: 383 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
...... = 1 in 00:00:03 = 0.4/s Avg: 631 Min: 631 Max: 631 Err: 0 (0.00%)
.
======================================================================
ERROR: test_post_http_sampler_int_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 62, in test_post_http_sampler_int_input
).post(1, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 126, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called post in us/abstracta/jmeter/javadsl/http/DslHttpSampler matching your arguments, requested: (1, <org.apache.http.entity.ContentType at 0x1faa599b330 jclass=org/apache/http/entity/ContentType jself=<LocalRef obj=0x-5c93be20 at 0x1faa58b6550>>), available: ['(Ljava/lang/String;Lorg/apache/http/entity/ContentType;)Lus/abstracta/jmeter/javadsl/http/DslHttpSampler;', '(Ljava/util/function/Function;Lorg/apache/http/entity/ContentType;)Lus/abstracta/jmeter/javadsl/http/DslHttpSampler;']
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 122, in post
raise TypeError(
TypeError: Invalid type, expected `list`, 'dict', or 'str'. got <class 'str'>
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 488 not less than or equal to 443
----------------------------------------------------------------------
Ran 25 tests in 45.195s
FAILED (failures=1, errors=2)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -141,7 +141,7 @@
Self: a new sampler instance
"""
- if not isinstance(key, str):
+ if isinstance(key, str):
raise TypeError("key field must be a string")
if not isinstance(value, str):
raise TypeError("value field must be a string")Warning: Nashorn engine is planned to be removed from a future JDK release
.00:49:19.609 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 7.5/s Avg: 349 Min: 349 Max: 349 Err: 0 (0.00%)
..EEEF = 1 in 00:00:01 = 1.4/s Avg: 621 Min: 621 Max: 621 Err: 0 (0.00%)
.E....... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 13 in 00:00:01 = 13.9/s Avg: 473 Min: 145 Max: 657 Err: 0 (0.00%) Active: 27 Started: 27 Finished: 0
+ 3828 in 00:00:20 = 188.7/s Avg: 159 Min: 138 Max: 674 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3841 in 00:00:21 = 181.0/s Avg: 160 Min: 138 Max: 674 Err: 0 (0.00%)
F...... = 1 in 00:00:03 = 0.4/s Avg: 612 Min: 612 Max: 612 Err: 0 (0.00%)
.
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 145, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 145, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
ERROR: test_http_invalid_header_key (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 119, in test_http_invalid_header_key
).header(1, "aa")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called header in us/abstracta/jmeter/javadsl/http/DslHttpSampler matching your arguments, requested: (1, 'aa'), available: ['(Ljava/lang/String;Ljava/util/function/Function;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;', '(Ljava/lang/String;Ljava/lang/String;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;']
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 145, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
FAIL: test_http_invalid_header_value (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 140, in test_http_invalid_header_value
self.assertEqual(
AssertionError: 'key field must be a string' != 'value field must be a string'
- key field must be a string
? ^ -
+ value field must be a string
? ^^^^
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 78, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 632 not less than or equal to 611
----------------------------------------------------------------------
Ran 25 tests in 44.790s
FAILED (failures=2, errors=4)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -143,7 +143,7 @@
"""
if not isinstance(key, str):
raise TypeError("key field must be a string")
- if not isinstance(value, str):
+ if isinstance(value, str):
raise TypeError("value field must be a string")
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
return selfWarning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 994 Min: 994 Max: 994 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
.00:50:06.335 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 9.3/s Avg: 86 Min: 86 Max: 86 Err: 0 (0.00%)
..EE.E = 1 in 00:00:01 = 1.5/s Avg: 598 Min: 598 Max: 598 Err: 0 (0.00%)
.E....... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 2530 in 00:00:14 = 176.8/s Avg: 161 Min: 138 Max: 672 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 1340 in 00:00:07 = 194.2/s Avg: 155 Min: 138 Max: 440 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3870 in 00:00:21 = 182.4/s Avg: 159 Min: 138 Max: 672 Err: 0 (0.00%)
....... = 1 in 00:00:03 = 0.4/s Avg: 585 Min: 585 Max: 585 Err: 0 (0.00%)
.
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 147, in header
raise TypeError("value field must be a string")
TypeError: value field must be a string
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 147, in header
raise TypeError("value field must be a string")
TypeError: value field must be a string
======================================================================
ERROR: test_http_invalid_header_value (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 135, in test_http_invalid_header_value
).header("key1", 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called header in us/abstracta/jmeter/javadsl/http/DslHttpSampler matching your arguments, requested: ('key1', 1), available: ['(Ljava/lang/String;Ljava/lang/String;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;', '(Ljava/lang/String;Ljava/util/function/Function;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;']
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 147, in header
raise TypeError("value field must be a string")
TypeError: value field must be a string
----------------------------------------------------------------------
Ran 25 tests in 44.175s
FAILED (errors=4)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -116,7 +116,7 @@
Self: a new sampler instance
"""
- if isinstance(body, (dict, list)):
+ if not isinstance(body, (dict, list)):
body = json.dumps(body)
elif not isinstance(body, str):
raise TypeError(Warning: Nashorn engine is planned to be removed from a future JDK release
.00:50:53.197 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 11.0/s Avg: 86 Min: 86 Max: 86 Err: 0 (0.00%)
...... + 1 in 00:00:01 = 1.4/s Avg: 637 Min: 637 Max: 637 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:01 = 1.4/s Avg: 637 Min: 637 Max: 637 Err: 0 (0.00%)
..EFE.... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.5/s Avg: 624 Min: 624 Max: 624 Err: 0 (0.00%) Active: 20 Started: 20 Finished: 0
+ 3794 in 00:00:21 = 184.6/s Avg: 162 Min: 142 Max: 678 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3795 in 00:00:21 = 178.8/s Avg: 162 Min: 142 Max: 678 Err: 0 (0.00%)
F...... = 1 in 00:00:03 = 0.4/s Avg: 656 Min: 656 Max: 656 Err: 0 (0.00%)
.
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 28, in test_post_http_sampler_dict_input
).post({"var1": 1}, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 122, in post
raise TypeError(
TypeError: Invalid type, expected `list`, 'dict', or 'str'. got <class 'dict'>
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 39, in test_post_http_sampler_list_input
).post([1, 2, 3, 4], ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 122, in post
raise TypeError(
TypeError: Invalid type, expected `list`, 'dict', or 'str'. got <class 'list'>
======================================================================
FAIL: test_post_http_sampler_int_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 58, in test_post_http_sampler_int_input
with self.assertRaises(TypeError) as exp:
AssertionError: TypeError not raised
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 436 not less than or equal to 187
----------------------------------------------------------------------
Ran 25 tests in 45.290s
FAILED (failures=2, errors=2)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -141,7 +141,7 @@
Self: a new sampler instance
"""
- if not isinstance(key, str):
+ if not not isinstance(key, str):
raise TypeError("key field must be a string")
if not isinstance(value, str):
raise TypeError("value field must be a string")Warning: Nashorn engine is planned to be removed from a future JDK release
.00:51:40.753 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 11.9/s Avg: 272 Min: 272 Max: 272 Err: 0 (0.00%)
..EEEF = 1 in 00:00:01 = 1.4/s Avg: 651 Min: 651 Max: 651 Err: 0 (0.00%)
.E....... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1630 in 00:00:10 = 169.4/s Avg: 162 Min: 138 Max: 699 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 2244 in 00:00:12 = 193.3/s Avg: 156 Min: 138 Max: 443 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3874 in 00:00:21 = 182.4/s Avg: 159 Min: 138 Max: 699 Err: 0 (0.00%)
F...... = 1 in 00:00:03 = 0.4/s Avg: 685 Min: 685 Max: 685 Err: 0 (0.00%)
.
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 145, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 145, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
ERROR: test_http_invalid_header_key (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 119, in test_http_invalid_header_key
).header(1, "aa")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called header in us/abstracta/jmeter/javadsl/http/DslHttpSampler matching your arguments, requested: (1, 'aa'), available: ['(Ljava/lang/String;Ljava/util/function/Function;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;', '(Ljava/lang/String;Ljava/lang/String;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;']
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 145, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
FAIL: test_http_invalid_header_value (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 140, in test_http_invalid_header_value
self.assertEqual(
AssertionError: 'key field must be a string' != 'value field must be a string'
- key field must be a string
? ^ -
+ value field must be a string
? ^^^^
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 332 not less than or equal to 175
----------------------------------------------------------------------
Ran 25 tests in 45.285s
FAILED (failures=2, errors=4)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -143,7 +143,7 @@
"""
if not isinstance(key, str):
raise TypeError("key field must be a string")
- if not isinstance(value, str):
+ if not not isinstance(value, str):
raise TypeError("value field must be a string")
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
return selfWarning: Nashorn engine is planned to be removed from a future JDK release
.00:52:27.491 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 9.5/s Avg: 276 Min: 276 Max: 276 Err: 0 (0.00%)
. + 5 in 00:00:01 = 4.0/s Avg: 355 Min: 167 Max: 690 Err: 0 (0.00%) Active: 2 Started: 2 Finished: 0
.EE.E + 1 in 00:00:01 = 1.4/s Avg: 658 Min: 658 Max: 658 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:01 = 1.4/s Avg: 658 Min: 658 Max: 658 Err: 0 (0.00%)
.E....... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 3855 in 00:00:21 = 181.2/s Avg: 159 Min: 139 Max: 815 Err: 0 (0.00%)
F...... + 1 in 00:00:03 = 0.4/s Avg: 665 Min: 665 Max: 665 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:03 = 0.4/s Avg: 665 Min: 665 Max: 665 Err: 0 (0.00%)
.
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 147, in header
raise TypeError("value field must be a string")
TypeError: value field must be a string
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 147, in header
raise TypeError("value field must be a string")
TypeError: value field must be a string
======================================================================
ERROR: test_http_invalid_header_value (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 135, in test_http_invalid_header_value
).header("key1", 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 148, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called header in us/abstracta/jmeter/javadsl/http/DslHttpSampler matching your arguments, requested: ('key1', 1), available: ['(Ljava/lang/String;Ljava/util/function/Function;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;', '(Ljava/lang/String;Ljava/lang/String;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;']
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 147, in header
raise TypeError("value field must be a string")
TypeError: value field must be a string
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 571 not less than or equal to 196
----------------------------------------------------------------------
Ran 25 tests in 44.782s
FAILED (failures=1, errors=4)
worker outcome: normal
test outcome: killed
operator: core/ExceptionReplacer, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -55,7 +55,7 @@
try:
from typing import Self
-except ImportError:
+except CosmicRayTestingException:
from typing_extensions import Self
from pymeter.api import ThreadGroupChildElement, ContentType
EEEEEE
======================================================================
ERROR: utests.test_postprocessors (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_postprocessors
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 57, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 8, in <module>
from pymeter.api.samplers import DummySampler, HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_reporter (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_reporter
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 57, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 8, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_sampler (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_sampler
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 57, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 5, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_test_plan (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_test_plan
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 57, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 14, in <module>
from pymeter.api.samplers import DummySampler, HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_thread_group (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_thread_group
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 57, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 6, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_timers (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_timers
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 57, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 4, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
----------------------------------------------------------------------
Ran 6 tests in 0.001s
FAILED (errors=6)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -148,7 +148,7 @@
return self.java_wrapped_element.duration().toMillis()
def __init__(self, *children: TestPlanChildElement) -> None:
- if not all(isinstance(c, TestPlanChildElement) for c in children):
+ if all(isinstance(c, TestPlanChildElement) for c in children):
raise TypeError("only takes children of type `TestPlanChildElement`")
self._test_plan_instance = BaseConfigElement.jmeter_class.testPlan()
if children:EEE....E.....EEEEEE.....E
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 24, in test_http_sampler
test_plan = TestPlan(tg1, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_postprocessor_on_thread_group (utests.test_postprocessors.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 42, in test_postprocessor_on_thread_group
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 20, in test_http_sampler
tp = TestPlan(tg, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 16, in test_http_sampler
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 22, in test_creation_of_empty_test_plan
python_test_plan_object = TestPlan()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_invalid_children (utests.test_test_plan.TestTestPlanClass)
Children must be of type TestPlanChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 43, in test_creation_of_test_plan_with_invalid_children
test_plan = TestPlan(1, "aaa")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'int' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 57, in test_run_positive_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 104, in test_run_validate_order
test_plan = TestPlan(tg_setup, tg_main, tg_teardown, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 17, in test_uniform_random_timer
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
----------------------------------------------------------------------
Ran 25 tests in 1.403s
FAILED (errors=11)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -177,7 +177,7 @@
"""base class for all thread groups"""
def __init__(self, *children: ThreadGroupChildElement) -> None:
- if not all(isinstance(c, ThreadGroupChildElement) for c in children):
+ if all(isinstance(c, ThreadGroupChildElement) for c in children):
raise TypeError("only takes children of type `ThreadGroupChildElement`")
super().__init__()
EEE....E.......EEEEEEEEEE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 21, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler, dummy_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_postprocessor_on_thread_group (utests.test_postprocessors.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 41, in test_postprocessor_on_thread_group
tg1 = ThreadGroupSimple(1, 1, dummy_sampler, json_extractor)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 31, in test_creation_of_test_plan_with_valid_children
tg1 = ThreadGroupWithRampUpAndHold(10, 10, 10)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 89, in test_run_empty_flow
tg1 = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(30, 1, 20, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 190, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 22, in test_creation_of_empty_setup_thread_group
python_thread_group_object = SetupThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 190, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 30, in test_creation_of_empty_teardown_thread_group
python_thread_group_object = TeardownThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 205, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 14, in test_creation_of_empty_thread_group
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_thread_group_with_invalid_children (utests.test_thread_group.TestThreadGroupClass)
Children must be of type ThreadGroupChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 50, in test_creation_of_thread_group_with_invalid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'str' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 16, in test_uniform_random_timer
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
----------------------------------------------------------------------
Ran 25 tests in 1.028s
FAILED (errors=14)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -148,7 +148,7 @@
return self.java_wrapped_element.duration().toMillis()
def __init__(self, *children: TestPlanChildElement) -> None:
- if not all(isinstance(c, TestPlanChildElement) for c in children):
+ if not not all(isinstance(c, TestPlanChildElement) for c in children):
raise TypeError("only takes children of type `TestPlanChildElement`")
self._test_plan_instance = BaseConfigElement.jmeter_class.testPlan()
if children:EEE....E.....EEEEEE.....E
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 24, in test_http_sampler
test_plan = TestPlan(tg1, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_postprocessor_on_thread_group (utests.test_postprocessors.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 42, in test_postprocessor_on_thread_group
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 20, in test_http_sampler
tp = TestPlan(tg, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 16, in test_http_sampler
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 22, in test_creation_of_empty_test_plan
python_test_plan_object = TestPlan()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_invalid_children (utests.test_test_plan.TestTestPlanClass)
Children must be of type TestPlanChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 43, in test_creation_of_test_plan_with_invalid_children
test_plan = TestPlan(1, "aaa")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 156, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'int' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 57, in test_run_positive_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 104, in test_run_validate_order
test_plan = TestPlan(tg_setup, tg_main, tg_teardown, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 17, in test_uniform_random_timer
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 152, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
----------------------------------------------------------------------
Ran 25 tests in 1.082s
FAILED (errors=11)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -151,7 +151,7 @@
if not all(isinstance(c, TestPlanChildElement) for c in children):
raise TypeError("only takes children of type `TestPlanChildElement`")
self._test_plan_instance = BaseConfigElement.jmeter_class.testPlan()
- if children:
+ if not children:
self._test_plan_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
= 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
E = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F.... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
E..... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 31, in test_http_sampler
with open(path_to_jtl, "r", encoding="utf-8") as jtl_file:
FileNotFoundError: [Errno 2] No such file or directory: 'output\\fbd99792-54bf-43c3-9a61-66487386a925\\report.jtl'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 108, in test_run_validate_order
with open(path_to_jtl, "r", encoding="utf-8") as jtl_file:
FileNotFoundError: [Errno 2] No such file or directory: 'output\\f21d25aa-d5f0-4ea7-ac1a-587eabcac8b4\\report.jtl'
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 26, in test_http_sampler
self.assertTrue(os.path.exists(output_dir))
AssertionError: False is not true
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 63, in test_run_positive_flow
self.assertGreaterEqual(stats.duration_milliseconds, 20000)
AssertionError: 22 not greater than or equal to 20000
======================================================================
FAIL: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 27, in test_uniform_random_timer
self.assertGreaterEqual(stats.duration_milliseconds, 2000)
AssertionError: 19 not greater than or equal to 2000
----------------------------------------------------------------------
Ran 25 tests in 8.956s
FAILED (failures=3, errors=2)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -177,7 +177,7 @@
"""base class for all thread groups"""
def __init__(self, *children: ThreadGroupChildElement) -> None:
- if not all(isinstance(c, ThreadGroupChildElement) for c in children):
+ if not not all(isinstance(c, ThreadGroupChildElement) for c in children):
raise TypeError("only takes children of type `ThreadGroupChildElement`")
super().__init__()
EEE....E.......EEEEEEEEEE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 21, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler, dummy_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_postprocessor_on_thread_group (utests.test_postprocessors.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 41, in test_postprocessor_on_thread_group
tg1 = ThreadGroupSimple(1, 1, dummy_sampler, json_extractor)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 31, in test_creation_of_test_plan_with_valid_children
tg1 = ThreadGroupWithRampUpAndHold(10, 10, 10)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 89, in test_run_empty_flow
tg1 = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(30, 1, 20, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 190, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 22, in test_creation_of_empty_setup_thread_group
python_thread_group_object = SetupThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 190, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 30, in test_creation_of_empty_teardown_thread_group
python_thread_group_object = TeardownThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 205, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 14, in test_creation_of_empty_thread_group
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_thread_group_with_invalid_children (utests.test_thread_group.TestThreadGroupClass)
Children must be of type ThreadGroupChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 50, in test_creation_of_thread_group_with_invalid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 262, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'str' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 249, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 16, in test_uniform_random_timer
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 228, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 181, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
----------------------------------------------------------------------
Ran 25 tests in 1.297s
FAILED (errors=14)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 3
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -191,7 +191,7 @@
self._setup_thread_group_instance = (
BaseConfigElement.jmeter_class.setupThreadGroup()
)
- if children:
+ if not children:
self._setup_thread_group_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
.00:53:43.268 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 8.0/s Avg: 267 Min: 267 Max: 267 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.5/s Avg: 611 Min: 611 Max: 611 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1066 in 00:00:07 = 156.1/s Avg: 172 Min: 139 Max: 668 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 2773 in 00:00:14 = 192.3/s Avg: 155 Min: 138 Max: 491 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3839 in 00:00:21 = 180.7/s Avg: 160 Min: 138 Max: 668 Err: 0 (0.00%)
.FE.... = 1 in 00:00:03 = 0.4/s Avg: 611 Min: 611 Max: 611 Err: 0 (0.00%)
.
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 22, in test_creation_of_empty_setup_thread_group
python_thread_group_object = SetupThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 195, in __init__
self._setup_thread_group_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslSetupThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslSimpleThreadGroup;']
======================================================================
FAIL: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 111, in test_run_validate_order
self.assertListEqual(["dummy_setup", "dummy_main", "dummy_teardown"], lst)
AssertionError: Lists differ: ['dummy_setup', 'dummy_main', 'dummy_teardown'] != ['dummy_main', 'dummy_teardown']
First differing element 0:
'dummy_setup'
'dummy_main'
First list contains 1 additional elements.
First extra element 2:
'dummy_teardown'
- ['dummy_setup', 'dummy_main', 'dummy_teardown']
? ---------------
+ ['dummy_main', 'dummy_teardown']
----------------------------------------------------------------------
Ran 25 tests in 46.434s
FAILED (failures=1, errors=1)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 4
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -206,7 +206,7 @@
self._teardown_thread_group_instance = (
BaseConfigElement.jmeter_class.teardownThreadGroup()
)
- if children:
+ if not children:
self._teardown_thread_group_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
.00:54:31.182 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
+ 1 in 00:00:00 = 11.0/s Avg: 200 Min: 200 Max: 200 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:00 = 10.5/s Avg: 200 Min: 200 Max: 200 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.5/s Avg: 625 Min: 625 Max: 625 Err: 0 (0.00%) Active: 2 Started: 2 Finished: 0
..... = 1 in 00:00:01 = 1.4/s Avg: 661 Min: 661 Max: 661 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 3241 in 00:00:18 = 177.8/s Avg: 162 Min: 139 Max: 671 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 552 in 00:00:03 = 184.7/s Avg: 161 Min: 140 Max: 438 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3793 in 00:00:21 = 178.8/s Avg: 162 Min: 139 Max: 671 Err: 0 (0.00%)
F + 1 in 00:00:00 = 1000.0/s Avg: 225 Min: 225 Max: 225 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
F.E... = 1 in 00:00:03 = 0.4/s Avg: 668 Min: 668 Max: 668 Err: 0 (0.00%)
.
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 30, in test_creation_of_empty_teardown_thread_group
python_thread_group_object = TeardownThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 210, in __init__
self._teardown_thread_group_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslTeardownThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslSimpleThreadGroup;']
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 479 not less than or equal to 293
======================================================================
FAIL: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 111, in test_run_validate_order
self.assertListEqual(["dummy_setup", "dummy_main", "dummy_teardown"], lst)
AssertionError: Lists differ: ['dummy_setup', 'dummy_main', 'dummy_teardown'] != ['dummy_setup', 'dummy_main']
First list contains 1 additional elements.
First extra element 2:
'dummy_teardown'
- ['dummy_setup', 'dummy_main', 'dummy_teardown']
? ------------------
+ ['dummy_setup', 'dummy_main']
----------------------------------------------------------------------
Ran 25 tests in 46.245s
FAILED (failures=2, errors=1)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 5
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -229,7 +229,7 @@
self._thread_group_simple_instance = BaseConfigElement.jmeter_class.threadGroup(
name, number_of_threads, iterations
)
- if children:
+ if not children:
self._thread_group_simple_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
F = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
...... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.5/s Avg: 593 Min: 593 Max: 593 Err: 0 (0.00%) Active: 20 Started: 20 Finished: 0
+ 3876 in 00:00:21 = 188.9/s Avg: 158 Min: 138 Max: 735 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3877 in 00:00:21 = 182.8/s Avg: 158 Min: 138 Max: 735 Err: 0 (0.00%)
FF..... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F
======================================================================
FAIL: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 33, in test_http_sampler
self.assertIn("dummy 1", [line.split(",")[2] for line in jtl_file])
AssertionError: 'dummy 1' not found in []
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 551 not less than or equal to 198
======================================================================
FAIL: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 111, in test_run_validate_order
self.assertListEqual(["dummy_setup", "dummy_main", "dummy_teardown"], lst)
AssertionError: Lists differ: ['dummy_setup', 'dummy_main', 'dummy_teardown'] != ['dummy_setup', 'dummy_teardown']
First differing element 1:
'dummy_main'
'dummy_teardown'
First list contains 1 additional elements.
First extra element 2:
'dummy_teardown'
- ['dummy_setup', 'dummy_main', 'dummy_teardown']
? --------------
+ ['dummy_setup', 'dummy_teardown']
======================================================================
FAIL: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 27, in test_uniform_random_timer
self.assertGreaterEqual(stats.duration_milliseconds, 2000)
AssertionError: 89 not greater than or equal to 2000
----------------------------------------------------------------------
Ran 25 tests in 46.526s
FAILED (failures=4)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 6
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -257,7 +257,7 @@
BaseConfigElement.java_duration.ofSeconds(holdup_time_seconds),
)
)
- if children:
+ if not children:
self._ramp_to_and_hold_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
.00:56:14.824 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 10.8/s Avg: 251 Min: 251 Max: 251 Err: 0 (0.00%)
.F.... = 1 in 00:00:01 = 1.4/s Avg: 646 Min: 646 Max: 646 Err: 0 (0.00%)
........EE = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F...E.. + 1 in 00:00:03 = 0.4/s Avg: 618 Min: 618 Max: 618 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:03 = 0.4/s Avg: 618 Min: 618 Max: 618 Err: 0 (0.00%)
.
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 31, in test_creation_of_test_plan_with_valid_children
tg1 = ThreadGroupWithRampUpAndHold(10, 10, 10)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 261, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup;']
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 89, in test_run_empty_flow
tg1 = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 261, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup;']
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 14, in test_creation_of_empty_thread_group
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 261, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup;']
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 31, in test_http_sampler
self.assertTrue(os.path.exists(path_to_json))
AssertionError: False is not true
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 63, in test_run_positive_flow
self.assertGreaterEqual(stats.duration_milliseconds, 20000)
AssertionError: 1010 not greater than or equal to 20000
----------------------------------------------------------------------
Ran 25 tests in 33.069s
FAILED (failures=2, errors=3)
worker outcome: normal
test outcome: killed
operator: core/ExceptionReplacer, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -168,7 +168,7 @@
"""
try:
return TestPlan.TestPlanStats(self._test_plan_instance.run())
- except JavaException as java_exception:
+ except CosmicRayTestingException as java_exception:
print("\n\t at ".join(java_exception.stacktrace))
raise java_exception
Warning: Nashorn engine is planned to be removed from a future JDK release
.00:56:53.649 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 9.3/s Avg: 296 Min: 296 Max: 296 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.4/s Avg: 642 Min: 642 Max: 642 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 3201 in 00:00:18 = 175.6/s Avg: 164 Min: 137 Max: 728 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 574 in 00:00:03 = 190.8/s Avg: 158 Min: 138 Max: 360 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3775 in 00:00:21 = 177.7/s Avg: 163 Min: 137 Max: 728 Err: 0 (0.00%)
F + 1 in 00:00:00 = 1000.0/s Avg: 167 Min: 167 Max: 167 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
...... = 1 in 00:00:03 = 0.4/s Avg: 603 Min: 603 Max: 603 Err: 0 (0.00%)
.
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 78, in test_run_positive_flow
self.assertLessEqual(
AssertionError: 634 not less than or equal to 617
----------------------------------------------------------------------
Ran 25 tests in 66.573s
FAILED (failures=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -98,8 +98,6 @@
def __init__(self, java_instance) -> None:
self._test_plan_stats_instance = java_instance
super().__init__()
-
- @property
def sample_time_mean_milliseconds(self):
"""returns the mean of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().mean().toMillis()Warning: Nashorn engine is planned to be removed from a future JDK release
.00:58:04.653 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
+ 1 in 00:00:00 = 13.9/s Avg: 350 Min: 350 Max: 350 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:00 = 13.5/s Avg: 350 Min: 350 Max: 350 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.5/s Avg: 636 Min: 636 Max: 636 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 661 in 00:00:05 = 135.6/s Avg: 188 Min: 141 Max: 705 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 3100 in 00:00:16 = 188.6/s Avg: 158 Min: 139 Max: 440 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3761 in 00:00:21 = 176.5/s Avg: 163 Min: 139 Max: 705 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 613 Min: 613 Max: 613 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 64, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'method' and 'int'
----------------------------------------------------------------------
Ran 25 tests in 69.870s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -103,8 +103,6 @@
def sample_time_mean_milliseconds(self):
"""returns the mean of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().mean().toMillis()
-
- @property
def sample_time_min_milliseconds(self):
"""returns the min of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().min().toMillis()Warning: Nashorn engine is planned to be removed from a future JDK release
.00:59:13.616 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 11.5/s Avg: 186 Min: 186 Max: 186 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.6/s Avg: 591 Min: 591 Max: 591 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 40 in 00:00:01 = 32.7/s Avg: 345 Min: 140 Max: 655 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 3799 in 00:00:20 = 190.1/s Avg: 158 Min: 138 Max: 745 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3839 in 00:00:21 = 181.0/s Avg: 160 Min: 138 Max: 745 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.3/s Avg: 764 Min: 764 Max: 764 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 67, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'method' and 'int'
----------------------------------------------------------------------
Ran 25 tests in 59.741s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -108,8 +108,6 @@
def sample_time_min_milliseconds(self):
"""returns the min of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().min().toMillis()
-
- @property
def sample_time_median_milliseconds(self):
"""returns the median of sample times in milliseconds"""
return (Warning: Nashorn engine is planned to be removed from a future JDK release
.01:00:15.058 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 14.5/s Avg: 232 Min: 232 Max: 232 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.5/s Avg: 611 Min: 611 Max: 611 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 6 in 00:00:01 = 6.8/s Avg: 641 Min: 597 Max: 704 Err: 0 (0.00%) Active: 26 Started: 26 Finished: 0
+ 3734 in 00:00:20 = 183.6/s Avg: 164 Min: 140 Max: 796 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3740 in 00:00:21 = 176.2/s Avg: 164 Min: 140 Max: 796 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 585 Min: 585 Max: 585 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 67, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 25 tests in 54.935s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 3
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -115,8 +115,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().median().toMillis()
)
-
- @property
def sample_time_90_percentile_milliseconds(self):
"""returns the 90th percentile of sample times in milliseconds"""
return (Warning: Nashorn engine is planned to be removed from a future JDK release
.01:01:12.011 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 12.0/s Avg: 430 Min: 430 Max: 430 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.5/s Avg: 609 Min: 609 Max: 609 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 537 in 00:00:04 = 136.9/s Avg: 184 Min: 138 Max: 674 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 3273 in 00:00:17 = 188.9/s Avg: 158 Min: 138 Max: 549 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3810 in 00:00:21 = 179.3/s Avg: 161 Min: 138 Max: 674 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 602 Min: 602 Max: 602 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 70, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 25 tests in 55.138s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 4
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -122,8 +122,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().perc90().toMillis()
)
-
- @property
def sample_time_95_percentile_milliseconds(self):
"""returns the 95th percentile of sample times in milliseconds"""
return (Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:02 = 0.7/s Avg: 1053 Min: 1053 Max: 1053 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
.01:02:10.997 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 11.4/s Avg: 474 Min: 474 Max: 474 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.4/s Avg: 643 Min: 643 Max: 643 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 622 in 00:00:04 = 142.4/s Avg: 179 Min: 139 Max: 663 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 3201 in 00:00:17 = 189.9/s Avg: 157 Min: 138 Max: 508 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3823 in 00:00:21 = 180.1/s Avg: 161 Min: 138 Max: 663 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 639 Min: 639 Max: 639 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 25 tests in 56.010s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 5
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -129,8 +129,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().perc95().toMillis()
)
-
- @property
def sample_time_99_percentile_milliseconds(self):
"""returns the 99th percentile of sample times in milliseconds"""
return (Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 1016 Min: 1016 Max: 1016 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
.01:03:09.756 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 13.0/s Avg: 455 Min: 455 Max: 455 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.5/s Avg: 624 Min: 624 Max: 624 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 755 in 00:00:05 = 149.6/s Avg: 174 Min: 139 Max: 706 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 3074 in 00:00:16 = 189.4/s Avg: 157 Min: 139 Max: 482 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3829 in 00:00:21 = 180.0/s Avg: 160 Min: 139 Max: 706 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 625 Min: 625 Max: 625 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 78, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 25 tests in 56.506s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 6
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -136,8 +136,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().perc99().toMillis()
)
-
- @property
def sample_time_max_milliseconds(self):
"""returns the max of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().max().toMillis()Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 1005 Min: 1005 Max: 1005 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
.01:04:10.269 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
= 1 in 00:00:00 = 9.4/s Avg: 72 Min: 72 Max: 72 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.5/s Avg: 615 Min: 615 Max: 615 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 920 in 00:00:06 = 152.8/s Avg: 175 Min: 139 Max: 670 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 2891 in 00:00:15 = 190.1/s Avg: 157 Min: 139 Max: 524 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3811 in 00:00:21 = 179.6/s Avg: 161 Min: 139 Max: 670 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 599 Min: 599 Max: 599 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 64, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 25 tests in 55.986s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 7
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -141,8 +141,6 @@
def sample_time_max_milliseconds(self):
"""returns the max of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().max().toMillis()
-
- @property
def duration_milliseconds(self):
"""returns the max of sample times in milliseconds"""
return self.java_wrapped_element.duration().toMillis()Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 995 Min: 995 Max: 995 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
.01:05:05.332 [Thread Group 1-1] ERROR org.apache.jmeter.extractor.json.jmespath.JMESPathExtractor - Error processing JSON content in JSON JMESPath Extractor, message: Unrecognized token 'hi': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')
at [Source: (String)"hi dummy"; line: 1, column: 3]
+ 1 in 00:00:00 = 11.4/s Avg: 356 Min: 356 Max: 356 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:00 = 11.2/s Avg: 356 Min: 356 Max: 356 Err: 0 (0.00%)
...... = 1 in 00:00:01 = 1.4/s Avg: 668 Min: 668 Max: 668 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1856 in 00:00:11 = 168.1/s Avg: 167 Min: 140 Max: 676 Err: 0 (0.00%) Active: 30 Started: 30 Finished: 0
+ 1877 in 00:00:10 = 184.7/s Avg: 162 Min: 139 Max: 466 Err: 0 (0.00%) Active: 0 Started: 30 Finished: 30
= 3733 in 00:00:21 = 176.0/s Avg: 165 Min: 139 Max: 676 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 660 Min: 660 Max: 660 Err: 0 (0.00%)
E
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 63, in test_run_positive_flow
self.assertGreaterEqual(stats.duration_milliseconds, 20000)
File "C:\Python310\lib\unittest\case.py", line 1248, in assertGreaterEqual
if not a >= b:
TypeError: '>=' not supported between instances of 'method' and 'int'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 27, in test_uniform_random_timer
self.assertGreaterEqual(stats.duration_milliseconds, 2000)
File "C:\Python310\lib\unittest\case.py", line 1248, in assertGreaterEqual
if not a >= b:
TypeError: '>=' not supported between instances of 'method' and 'int'
----------------------------------------------------------------------
Ran 25 tests in 53.092s
FAILED (errors=2)
Cosmic Ray Report
worker outcome: normal
test outcome: killed
operator: core/ReplaceOrWithAnd, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\reporters.py
+++ bsrc\pymeter\api\reporters.py
@@ -14,7 +14,7 @@
"""reports results to HTML format"""
def __init__(self, directory: Optional[str] = None) -> None:
- directory = directory or os.path.join(
+ directory = directory and os.path.join(
"output", f'html-report-{datetime.now().strftime("%m%d%Y%H%M%S")}'
)
self._html_reporter_instance = HtmlReporter.jmeter_class.htmlReporter(directory)timeout
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -67,7 +67,7 @@
return self.java_wrapped_element.duration().toMillis()
def __init__(self, *children: TestPlanChildElement) -> None:
- if not all(isinstance(c, TestPlanChildElement) for c in children):
+ if all(isinstance(c, TestPlanChildElement) for c in children):
raise TypeError("only takes children of type `TestPlanChildElement`")
self._test_plan_instance = BaseConfigElement.jmeter_class.testPlan()
if children:EE....E.....EEEEEE.....E
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 24, in test_http_sampler
test_plan = TestPlan(tg1, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 20, in test_http_sampler
tp = TestPlan(tg, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 16, in test_http_sampler
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 22, in test_creation_of_empty_test_plan
python_test_plan_object = TestPlan()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_invalid_children (utests.test_test_plan.TestTestPlanClass)
Children must be of type TestPlanChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 43, in test_creation_of_test_plan_with_invalid_children
test_plan = TestPlan(1, "aaa")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'int' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 57, in test_run_positive_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 104, in test_run_validate_order
test_plan = TestPlan(tg_setup, tg_main, tg_teardown, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 17, in test_uniform_random_timer
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
----------------------------------------------------------------------
Ran 24 tests in 0.921s
FAILED (errors=10)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -89,7 +89,7 @@
"""base class for all thread groups"""
def __init__(self, *children: ThreadGroupChildElement) -> None:
- if not all(isinstance(c, ThreadGroupChildElement) for c in children):
+ if all(isinstance(c, ThreadGroupChildElement) for c in children):
raise TypeError("only takes children of type `ThreadGroupChildElement`")
super().__init__()
EE....E.......EEEEEEEEEE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 21, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler, dummy_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 137, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 137, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 31, in test_creation_of_test_plan_with_valid_children
tg1 = ThreadGroupWithRampUpAndHold(10, 10, 10)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 89, in test_run_empty_flow
tg1 = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(20, 1, 3, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 102, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 22, in test_creation_of_empty_setup_thread_group
python_thread_group_object = SetupThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 102, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 30, in test_creation_of_empty_teardown_thread_group
python_thread_group_object = TeardownThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 117, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 14, in test_creation_of_empty_thread_group
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_thread_group_with_invalid_children (utests.test_thread_group.TestThreadGroupClass)
Children must be of type ThreadGroupChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 50, in test_creation_of_thread_group_with_invalid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'str' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 16, in test_uniform_random_timer
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 137, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
----------------------------------------------------------------------
Ran 24 tests in 1.066s
FAILED (errors=13)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -67,7 +67,7 @@
return self.java_wrapped_element.duration().toMillis()
def __init__(self, *children: TestPlanChildElement) -> None:
- if not all(isinstance(c, TestPlanChildElement) for c in children):
+ if not not all(isinstance(c, TestPlanChildElement) for c in children):
raise TypeError("only takes children of type `TestPlanChildElement`")
self._test_plan_instance = BaseConfigElement.jmeter_class.testPlan()
if children:EE....E.....EEEEEE.....E
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 24, in test_http_sampler
test_plan = TestPlan(tg1, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 20, in test_http_sampler
tp = TestPlan(tg, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 16, in test_http_sampler
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 22, in test_creation_of_empty_test_plan
python_test_plan_object = TestPlan()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_invalid_children (utests.test_test_plan.TestTestPlanClass)
Children must be of type TestPlanChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 43, in test_creation_of_test_plan_with_invalid_children
test_plan = TestPlan(1, "aaa")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'int' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 57, in test_run_positive_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 104, in test_run_validate_order
test_plan = TestPlan(tg_setup, tg_main, tg_teardown, html_reporter)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 17, in test_uniform_random_timer
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 71, in __init__
raise TypeError("only takes children of type `TestPlanChildElement`")
TypeError: only takes children of type `TestPlanChildElement`
----------------------------------------------------------------------
Ran 24 tests in 1.543s
FAILED (errors=10)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -70,7 +70,7 @@
if not all(isinstance(c, TestPlanChildElement) for c in children):
raise TypeError("only takes children of type `TestPlanChildElement`")
self._test_plan_instance = BaseConfigElement.jmeter_class.testPlan()
- if children:
+ if not children:
self._test_plan_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
= 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
E = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F.... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
E..... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 31, in test_http_sampler
with open(path_to_jtl, "r", encoding="utf-8") as jtl_file:
FileNotFoundError: [Errno 2] No such file or directory: 'output\\e6c377d0-a199-4232-b19b-7e4a75ad2bf1\\report.jtl'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 108, in test_run_validate_order
with open(path_to_jtl, "r", encoding="utf-8") as jtl_file:
FileNotFoundError: [Errno 2] No such file or directory: 'output\\83d5f47e-0834-43e8-9b34-05a59b134cdb\\report.jtl'
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 26, in test_http_sampler
self.assertTrue(os.path.exists(output_dir))
AssertionError: False is not true
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 63, in test_run_positive_flow
self.assertGreaterEqual(stats.duration_milliseconds, 3000)
AssertionError: 41 not greater than or equal to 3000
======================================================================
FAIL: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 27, in test_uniform_random_timer
self.assertGreaterEqual(stats.duration_milliseconds, 2000)
AssertionError: 34 not greater than or equal to 2000
----------------------------------------------------------------------
Ran 24 tests in 13.404s
FAILED (failures=3, errors=2)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -89,7 +89,7 @@
"""base class for all thread groups"""
def __init__(self, *children: ThreadGroupChildElement) -> None:
- if not all(isinstance(c, ThreadGroupChildElement) for c in children):
+ if not not all(isinstance(c, ThreadGroupChildElement) for c in children):
raise TypeError("only takes children of type `ThreadGroupChildElement`")
super().__init__()
EE....E.......EEEEEEEEEE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 21, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler, dummy_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 137, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 137, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 31, in test_creation_of_test_plan_with_valid_children
tg1 = ThreadGroupWithRampUpAndHold(10, 10, 10)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 89, in test_run_empty_flow
tg1 = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(20, 1, 3, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 102, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 22, in test_creation_of_empty_setup_thread_group
python_thread_group_object = SetupThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 102, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 30, in test_creation_of_empty_teardown_thread_group
python_thread_group_object = TeardownThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 117, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 14, in test_creation_of_empty_thread_group
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_creation_of_thread_group_with_invalid_children (utests.test_thread_group.TestThreadGroupClass)
Children must be of type ThreadGroupChildElement,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 50, in test_creation_of_thread_group_with_invalid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
AttributeError: 'str' object has no attribute 'java_wrapped_element'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 158, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 16, in test_uniform_random_timer
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 137, in __init__
super().__init__(*children)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 93, in __init__
raise TypeError("only takes children of type `ThreadGroupChildElement`")
TypeError: only takes children of type `ThreadGroupChildElement`
----------------------------------------------------------------------
Ran 24 tests in 1.767s
FAILED (errors=13)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 3
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -103,7 +103,7 @@
self._setup_thread_group_instance = (
BaseConfigElement.jmeter_class.setupThreadGroup()
)
- if children:
+ if not children:
self._setup_thread_group_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
...... = 1 in 00:00:01 = 1.6/s Avg: 594 Min: 594 Max: 594 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 368 in 00:00:04 = 85.3/s Avg: 198 Min: 140 Max: 931 Err: 0 (0.00%)
.FE.... = 1 in 00:00:03 = 0.4/s Avg: 629 Min: 629 Max: 629 Err: 0 (0.00%)
.
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 22, in test_creation_of_empty_setup_thread_group
python_thread_group_object = SetupThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 107, in __init__
self._setup_thread_group_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslSetupThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslSimpleThreadGroup;']
======================================================================
FAIL: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 111, in test_run_validate_order
self.assertListEqual(["dummy_setup", "dummy_main", "dummy_teardown"], lst)
AssertionError: Lists differ: ['dummy_setup', 'dummy_main', 'dummy_teardown'] != ['dummy_main', 'dummy_teardown']
First differing element 0:
'dummy_setup'
'dummy_main'
First list contains 1 additional elements.
First extra element 2:
'dummy_teardown'
- ['dummy_setup', 'dummy_main', 'dummy_teardown']
? ---------------
+ ['dummy_main', 'dummy_teardown']
----------------------------------------------------------------------
Ran 24 tests in 26.124s
FAILED (failures=1, errors=1)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 4
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -118,7 +118,7 @@
self._teardown_thread_group_instance = (
BaseConfigElement.jmeter_class.teardownThreadGroup()
)
- if children:
+ if not children:
self._teardown_thread_group_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 990 Min: 990 Max: 990 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
...... = 1 in 00:00:01 = 1.4/s Avg: 637 Min: 637 Max: 637 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 413 in 00:00:04 = 98.4/s Avg: 173 Min: 139 Max: 659 Err: 0 (0.00%)
.F.E... = 1 in 00:00:03 = 0.3/s Avg: 640 Min: 640 Max: 640 Err: 0 (0.00%)
.
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 30, in test_creation_of_empty_teardown_thread_group
python_thread_group_object = TeardownThreadGroup()
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 122, in __init__
self._teardown_thread_group_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslTeardownThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslSimpleThreadGroup;']
======================================================================
FAIL: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 111, in test_run_validate_order
self.assertListEqual(["dummy_setup", "dummy_main", "dummy_teardown"], lst)
AssertionError: Lists differ: ['dummy_setup', 'dummy_main', 'dummy_teardown'] != ['dummy_setup', 'dummy_main']
First list contains 1 additional elements.
First extra element 2:
'dummy_teardown'
- ['dummy_setup', 'dummy_main', 'dummy_teardown']
? ------------------
+ ['dummy_setup', 'dummy_main']
----------------------------------------------------------------------
Ran 24 tests in 25.291s
FAILED (failures=1, errors=1)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 5
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -138,7 +138,7 @@
self._thread_group_simple_instance = BaseConfigElement.jmeter_class.threadGroup(
name, number_of_threads, iterations
)
- if children:
+ if not children:
self._thread_group_simple_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
F..... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 297 in 00:00:04 = 67.3/s Avg: 246 Min: 140 Max: 1153 Err: 0 (0.00%)
.F..... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F
======================================================================
FAIL: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 33, in test_http_sampler
self.assertIn("dummy 1", [line.split(",")[2] for line in jtl_file])
AssertionError: 'dummy 1' not found in []
======================================================================
FAIL: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 111, in test_run_validate_order
self.assertListEqual(["dummy_setup", "dummy_main", "dummy_teardown"], lst)
AssertionError: Lists differ: ['dummy_setup', 'dummy_main', 'dummy_teardown'] != ['dummy_setup', 'dummy_teardown']
First differing element 1:
'dummy_main'
'dummy_teardown'
First list contains 1 additional elements.
First extra element 2:
'dummy_teardown'
- ['dummy_setup', 'dummy_main', 'dummy_teardown']
? --------------
+ ['dummy_setup', 'dummy_teardown']
======================================================================
FAIL: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 27, in test_uniform_random_timer
self.assertGreaterEqual(stats.duration_milliseconds, 2000)
AssertionError: 68 not greater than or equal to 2000
----------------------------------------------------------------------
Ran 24 tests in 25.845s
FAILED (failures=3)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 6
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -166,7 +166,7 @@
BaseConfigElement.java_duration.ofSeconds(holdup_time_seconds),
)
)
- if children:
+ if not children:
self._ramp_to_and_hold_instance.children(
*[c.java_wrapped_element for c in children]
)Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 994 Min: 994 Max: 994 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
.F.... = 1 in 00:00:01 = 1.3/s Avg: 684 Min: 684 Max: 684 Err: 0 (0.00%)
........EE = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
F...E.. = 1 in 00:00:03 = 0.3/s Avg: 622 Min: 622 Max: 622 Err: 0 (0.00%)
.
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 31, in test_creation_of_test_plan_with_valid_children
tg1 = ThreadGroupWithRampUpAndHold(10, 10, 10)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 170, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;']
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 89, in test_run_empty_flow
tg1 = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 170, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;']
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 14, in test_creation_of_empty_thread_group
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 170, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called children in us/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup matching your arguments, requested: (), available: ['([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/DslDefaultThreadGroup;', '([Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;)Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup;']
======================================================================
FAIL: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 31, in test_http_sampler
self.assertTrue(os.path.exists(path_to_json))
AssertionError: False is not true
======================================================================
FAIL: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 63, in test_run_positive_flow
self.assertGreaterEqual(stats.duration_milliseconds, 3000)
AssertionError: 1007 not greater than or equal to 3000
----------------------------------------------------------------------
Ran 24 tests in 18.303s
FAILED (failures=2, errors=3)
SURVIVED
worker outcome: normal
test outcome: survived
operator: core/ExceptionReplacer, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -80,7 +80,7 @@
"""execute the test plan"""
try:
return TestPlan.TestPlanStats(self._test_plan_instance.run())
- except JavaException as java_exception:
+ except CosmicRayTestingException as java_exception:
print("\n\t at ".join(java_exception.stacktrace))
raise java_exception
Warning: Nashorn engine is planned to be removed from a future JDK release ...... + 1 in 00:00:01 = 1.4/s Avg: 611 Min: 611 Max: 611 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0 = 1 in 00:00:01 = 1.4/s Avg: 611 Min: 611 Max: 611 Err: 0 (0.00%) ......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%) . + 1 in 00:00:01 = 1.6/s Avg: 582 Min: 582 Max: 582 Err: 0 (0.00%) Active: 12 Started: 12 Finished: 0 + 415 in 00:00:04 = 116.0/s Avg: 170 Min: 138 Max: 646 Err: 0 (0.00%) Active: 0 Started: 20 Finished: 20 = 416 in 00:00:04 = 98.9/s Avg: 171 Min: 138 Max: 646 Err: 0 (0.00%) ....... = 1 in 00:00:03 = 0.4/s Avg: 598 Min: 598 Max: 598 Err: 0 (0.00%) . ---------------------------------------------------------------------- Ran 24 tests in 25.588s OK
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -17,8 +17,6 @@
def __init__(self, java_instance) -> None:
self._test_plan_stats_instance = java_instance
super().__init__()
-
- @property
def sample_time_mean_milliseconds(self):
"""returns the mean of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().mean().toMillis()Warning: Nashorn engine is planned to be removed from a future JDK release
...... = 1 in 00:00:01 = 1.5/s Avg: 626 Min: 626 Max: 626 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.5/s Avg: 625 Min: 625 Max: 625 Err: 0 (0.00%) Active: 13 Started: 13 Finished: 0
+ 297 in 00:00:04 = 84.2/s Avg: 239 Min: 141 Max: 1584 Err: 0 (0.00%) Active: 0 Started: 20 Finished: 20
= 298 in 00:00:04 = 71.1/s Avg: 240 Min: 141 Max: 1584 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 669 Min: 669 Max: 669 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 64, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'method' and 'int'
----------------------------------------------------------------------
Ran 24 tests in 24.746s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -22,8 +22,6 @@
def sample_time_mean_milliseconds(self):
"""returns the mean of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().mean().toMillis()
-
- @property
def sample_time_min_milliseconds(self):
"""returns the min of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().min().toMillis()timeout
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -27,8 +27,6 @@
def sample_time_min_milliseconds(self):
"""returns the min of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().min().toMillis()
-
- @property
def sample_time_median_milliseconds(self):
"""returns the median of sample times in milliseconds"""
return (timeout
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 3
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -34,8 +34,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().median().toMillis()
)
-
- @property
def sample_time_90_percentile_milliseconds(self):
"""returns the 90th percentile of sample times in milliseconds"""
return (Warning: Nashorn engine is planned to be removed from a future JDK release
...... = 1 in 00:00:01 = 1.5/s Avg: 632 Min: 632 Max: 632 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.4/s Avg: 664 Min: 664 Max: 664 Err: 0 (0.00%) Active: 14 Started: 14 Finished: 0
+ 407 in 00:00:03 = 117.6/s Avg: 174 Min: 139 Max: 642 Err: 0 (0.00%) Active: 0 Started: 20 Finished: 20
= 408 in 00:00:04 = 97.5/s Avg: 175 Min: 139 Max: 664 Err: 0 (0.00%)
E + 1 in 00:00:00 = 250.0/s Avg: 67 Min: 67 Max: 67 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
...... = 1 in 00:00:03 = 0.4/s Avg: 667 Min: 667 Max: 667 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 70, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 24 tests in 27.377s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 4
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -41,8 +41,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().perc90().toMillis()
)
-
- @property
def sample_time_95_percentile_milliseconds(self):
"""returns the 95th percentile of sample times in milliseconds"""
return (Warning: Nashorn engine is planned to be removed from a future JDK release
...... = 1 in 00:00:01 = 1.5/s Avg: 620 Min: 620 Max: 620 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 1 in 00:00:01 = 1.5/s Avg: 644 Min: 644 Max: 644 Err: 0 (0.00%) Active: 13 Started: 13 Finished: 0
+ 324 in 00:00:04 = 86.8/s Avg: 227 Min: 139 Max: 1155 Err: 0 (0.00%) Active: 0 Started: 20 Finished: 20
= 325 in 00:00:04 = 73.6/s Avg: 229 Min: 139 Max: 1155 Err: 0 (0.00%)
E + 1 in 00:00:00 = 18.5/s Avg: 130 Min: 130 Max: 130 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
...... = 1 in 00:00:03 = 0.4/s Avg: 563 Min: 563 Max: 563 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 74, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 24 tests in 25.915s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 5
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -48,8 +48,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().perc95().toMillis()
)
-
- @property
def sample_time_99_percentile_milliseconds(self):
"""returns the 99th percentile of sample times in milliseconds"""
return (Warning: Nashorn engine is planned to be removed from a future JDK release
...... = 1 in 00:00:01 = 1.5/s Avg: 624 Min: 624 Max: 624 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. + 317 in 00:00:04 = 90.5/s Avg: 182 Min: 140 Max: 674 Err: 0 (0.00%) Active: 20 Started: 20 Finished: 0
+ 75 in 00:00:01 = 54.0/s Avg: 254 Min: 141 Max: 1336 Err: 0 (0.00%) Active: 0 Started: 20 Finished: 20
= 392 in 00:00:05 = 80.1/s Avg: 196 Min: 140 Max: 1336 Err: 0 (0.00%)
E + 1 in 00:00:00 = 1000.0/s Avg: 469 Min: 469 Max: 469 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
...... = 1 in 00:00:03 = 0.4/s Avg: 595 Min: 595 Max: 595 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 78, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 24 tests in 25.295s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 6
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -55,8 +55,6 @@
return (
self.java_wrapped_element.overallStats.sampleTime().perc99().toMillis()
)
-
- @property
def sample_time_max_milliseconds(self):
"""returns the max of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().max().toMillis()Warning: Nashorn engine is planned to be removed from a future JDK release
...... = 1 in 00:00:01 = 1.5/s Avg: 595 Min: 595 Max: 595 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 341 in 00:00:04 = 78.9/s Avg: 212 Min: 142 Max: 1100 Err: 0 (0.00%)
E...... + 1 in 00:00:03 = 0.4/s Avg: 588 Min: 588 Max: 588 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
= 1 in 00:00:03 = 0.4/s Avg: 588 Min: 588 Max: 588 Err: 0 (0.00%)
.
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 64, in test_run_positive_flow
self.assertLessEqual(
File "C:\Python310\lib\unittest\case.py", line 1236, in assertLessEqual
if not a <= b:
TypeError: '<=' not supported between instances of 'int' and 'method'
----------------------------------------------------------------------
Ran 24 tests in 24.561s
FAILED (errors=1)
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 7
--- mutation diff ---
--- asrc\pymeter\api\config.py
+++ bsrc\pymeter\api\config.py
@@ -60,8 +60,6 @@
def sample_time_max_milliseconds(self):
"""returns the max of sample times in milliseconds"""
return self.java_wrapped_element.overallStats.sampleTime().max().toMillis()
-
- @property
def duration_milliseconds(self):
"""returns the max of sample times in milliseconds"""
return self.java_wrapped_element.duration().toMillis()Warning: Nashorn engine is planned to be removed from a future JDK release
...... = 1 in 00:00:01 = 1.5/s Avg: 635 Min: 635 Max: 635 Err: 0 (0.00%)
......... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 386 in 00:00:04 = 91.9/s Avg: 186 Min: 139 Max: 761 Err: 0 (0.00%)
E...... = 1 in 00:00:03 = 0.4/s Avg: 602 Min: 602 Max: 602 Err: 0 (0.00%)
E
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 63, in test_run_positive_flow
self.assertGreaterEqual(stats.duration_milliseconds, 3000)
File "C:\Python310\lib\unittest\case.py", line 1248, in assertGreaterEqual
if not a >= b:
TypeError: '>=' not supported between instances of 'method' and 'int'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 27, in test_uniform_random_timer
self.assertGreaterEqual(stats.duration_milliseconds, 2000)
File "C:\Python310\lib\unittest\case.py", line 1248, in assertGreaterEqual
if not a >= b:
TypeError: '>=' not supported between instances of 'method' and 'int'
----------------------------------------------------------------------
Ran 24 tests in 24.010s
FAILED (errors=2)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -42,7 +42,7 @@
if isinstance(body, (dict, list)):
body = json.dumps(body)
- elif not isinstance(body, str):
+ elif isinstance(body, str):
raise TypeError(
f"Invalid type, expected `list`, 'dict', or 'str'. got {type(body)}"
)Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 981 Min: 981 Max: 981 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
...... = 1 in 00:00:01 = 1.5/s Avg: 628 Min: 628 Max: 628 Err: 0 (0.00%)
...E.E... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 397 in 00:00:05 = 80.2/s Avg: 197 Min: 140 Max: 1223 Err: 0 (0.00%)
....... = 1 in 00:00:03 = 0.4/s Avg: 619 Min: 619 Max: 619 Err: 0 (0.00%)
.
======================================================================
ERROR: test_post_http_sampler_int_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 62, in test_post_http_sampler_int_input
).post(1, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called post in us/abstracta/jmeter/javadsl/http/DslHttpSampler matching your arguments, requested: (1, <org.apache.http.entity.ContentType at 0x24fe40c6c50 jclass=org/apache/http/entity/ContentType jself=<LocalRef obj=0x-1e230220 at 0x24fe40664b0>>), available: ['(Ljava/util/function/Function;Lorg/apache/http/entity/ContentType;)Lus/abstracta/jmeter/javadsl/http/DslHttpSampler;', '(Ljava/lang/String;Lorg/apache/http/entity/ContentType;)Lus/abstracta/jmeter/javadsl/http/DslHttpSampler;']
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 46, in post
raise TypeError(
TypeError: Invalid type, expected `list`, 'dict', or 'str'. got <class 'str'>
----------------------------------------------------------------------
Ran 24 tests in 23.732s
FAILED (errors=2)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -54,7 +54,7 @@
def header(self, key: str, value: str) -> Self:
"""append header to request"""
- if not isinstance(key, str):
+ if isinstance(key, str):
raise TypeError("key field must be a string")
if not isinstance(value, str):
raise TypeError("value field must be a string")Warning: Nashorn engine is planned to be removed from a future JDK release
+ 1 in 00:00:01 = 0.7/s Avg: 1086 Min: 1086 Max: 1086 Err: 0 (0.00%) Active: 1 Started: 1 Finished: 0
. + 1 in 00:00:01 = 1.5/s Avg: 631 Min: 631 Max: 631 Err: 0 (0.00%) Active: 2 Started: 2 Finished: 0
.EEEF = 1 in 00:00:01 = 1.5/s Avg: 631 Min: 631 Max: 631 Err: 0 (0.00%)
.E....... = 0 in 00:00:00 = ******/s Avg: 0 Min: 9223372036854775807 Max: -9223372036854775808 Err: 0 (0.00%)
. = 408 in 00:00:04 = 98.0/s Avg: 174 Min: 140 Max: 642 Err: 0 (0.00%)
....... = 1 in 00:00:03 = 0.4/s Avg: 613 Min: 613 Max: 613 Err: 0 (0.00%)
.
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
ERROR: test_http_invalid_header_key (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 119, in test_http_invalid_header_key
).header(1, "aa")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "jnius\jnius_export_class.pxi", line 1163, in jnius.JavaMultipleMethod.__call__
jnius.JavaException: No methods called header in us/abstracta/jmeter/javadsl/http/DslHttpSampler matching your arguments, requested: (1, 'aa'), available: ['(Ljava/lang/String;Ljava/util/function/Function;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;', '(Ljava/lang/String;Ljava/lang/String;)Lus/abstracta/jmeter/javadsl/http/DslBaseHttpSampler;']
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 58, in header
raise TypeError("key field must be a string")
TypeError: key field must be a string
======================================================================
FAIL: test_http_invalid_header_value (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 140, in test_http_invalid_header_value
self.assertEqual(
AssertionError: 'key field must be a string' != 'value field must be a string'
- key field must be a string
? ^ -
+ value field must be a string
? ^^^^
----------------------------------------------------------------------
Ran 24 tests in 25.079s
FAILED (failures=1, errors=4)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -56,7 +56,7 @@
"""append header to request"""
if not isinstance(key, str):
raise TypeError("key field must be a string")
- if not isinstance(value, str):
+ if isinstance(value, str):
raise TypeError("value field must be a string")
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
return selftimeout
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -40,7 +40,7 @@
def post(self, body: Union[Dict, List, str], content_type: ContentType) -> Self:
"""create a post request sampler"""
- if isinstance(body, (dict, list)):
+ if not isinstance(body, (dict, list)):
body = json.dumps(body)
elif not isinstance(body, str):
raise TypeError(timeout
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -54,7 +54,7 @@
def header(self, key: str, value: str) -> Self:
"""append header to request"""
- if not isinstance(key, str):
+ if not not isinstance(key, str):
raise TypeError("key field must be a string")
if not isinstance(value, str):
raise TypeError("value field must be a string")timeout
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -56,7 +56,7 @@
"""append header to request"""
if not isinstance(key, str):
raise TypeError("key field must be a string")
- if not isinstance(value, str):
+ if not not isinstance(value, str):
raise TypeError("value field must be a string")
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
return selftimeout
worker outcome: normal
test outcome: killed
operator: core/ExceptionReplacer, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\samplers.py
+++ bsrc\pymeter\api\samplers.py
@@ -5,7 +5,7 @@
try:
from typing import Self
-except ImportError:
+except CosmicRayTestingException:
from typing_extensions import Self
from pymeter.api import ThreadGroupChildElement, ContentType
EEEEEE
======================================================================
ERROR: utests.test_postprocessors (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_postprocessors
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 7, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 8, in <module>
from pymeter.api.samplers import DummySampler, HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 8, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_reporter (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_reporter
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 7, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 8, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 8, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_sampler (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_sampler
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 7, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 5, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 8, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_test_plan (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_test_plan
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 7, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 14, in <module>
from pymeter.api.samplers import DummySampler, HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 8, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_thread_group (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_thread_group
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 7, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 6, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 8, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
======================================================================
ERROR: utests.test_timers (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: utests.test_timers
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 7, in <module>
from typing import Self
ImportError: cannot import name 'Self' from 'typing' (C:\Python310\lib\typing.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python310\lib\unittest\loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "C:\Python310\lib\unittest\loader.py", line 377, in _get_module_from_name
__import__(name)
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 4, in <module>
from pymeter.api.samplers import HttpSampler
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 8, in <module>
except CosmicRayTestingException:
NameError: name 'CosmicRayTestingException' is not defined
----------------------------------------------------------------------
Ran 6 tests in 0.002s
FAILED (errors=6)
worker outcome: normal
test outcome: killed
operator: core/ReplaceUnaryOperator_Delete_Not, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -239,7 +239,7 @@
@property
def java_wrapped_element(self):
"""retrieves the java element wrapped in the python object by class name"""
- if not self.__class__.wrapped_instance_name:
+ if self.__class__.wrapped_instance_name:
self.__class__.wrapped_instance_name = BaseJMeterClass.pattern.sub(
"_", self.__class__.__name__
).lower()EEEE..EEE.EEE.EEEEEEE.EE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 17, in test_http_sampler
http_sampler = HttpSampler(
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'JsonExtractor' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 143, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 143, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 28, in test_post_http_sampler_dict_input
).post({"var1": 1}, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 39, in test_post_http_sampler_list_input
).post([1, 2, 3, 4], ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TestPlan' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(20, 1, 3, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 108, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 108, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'DummySampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'SetupThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TeardownThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 15, in test_uniform_random_timer
http_sampler = HttpSampler("Echo", "https://postman-echo.com/get?var=1", timer)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'UniformRandomTimer' object has no attribute '_None_instance'
----------------------------------------------------------------------
Ran 24 tests in 2.383s
FAILED (errors=19)
worker outcome: normal
test outcome: killed
operator: core/AddNot, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -239,7 +239,7 @@
@property
def java_wrapped_element(self):
"""retrieves the java element wrapped in the python object by class name"""
- if not self.__class__.wrapped_instance_name:
+ if not not self.__class__.wrapped_instance_name:
self.__class__.wrapped_instance_name = BaseJMeterClass.pattern.sub(
"_", self.__class__.__name__
).lower()EEEE..EEE.EEE.EEEEEEE.EE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 17, in test_http_sampler
http_sampler = HttpSampler(
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'JsonExtractor' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 143, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 143, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 28, in test_post_http_sampler_dict_input
).post({"var1": 1}, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 39, in test_post_http_sampler_list_input
).post([1, 2, 3, 4], ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TestPlan' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 75, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(20, 1, 3, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 108, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 108, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'DummySampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'SetupThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'TeardownThreadGroup' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'ThreadGroupWithRampUpAndHold' object has no attribute '_None_instance'
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 171, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'HttpSampler' object has no attribute '_None_instance'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 15, in test_uniform_random_timer
http_sampler = HttpSampler("Echo", "https://postman-echo.com/get?var=1", timer)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in __init__
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 36, in <listcomp>
*[c.java_wrapped_element for c in children]
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 247, in java_wrapped_element
return object.__getattribute__(
AttributeError: 'UniformRandomTimer' object has no attribute '_None_instance'
----------------------------------------------------------------------
Ran 24 tests in 2.012s
FAILED (errors=19)
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -230,7 +230,7 @@
return (
str(type(self.java_wrapped_element))
- .split("class ")[1]
+ .split("class ")[ 2]
.split("'jnius.reflect.")[1]
.split("'")[0]
.strip()timeout
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 1
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -230,7 +230,7 @@
return (
str(type(self.java_wrapped_element))
- .split("class ")[1]
+ .split("class ")[ 0]
.split("'jnius.reflect.")[1]
.split("'")[0]
.strip()timeout
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 2
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -231,7 +231,7 @@
return (
str(type(self.java_wrapped_element))
.split("class ")[1]
- .split("'jnius.reflect.")[1]
+ .split("'jnius.reflect.")[ 2]
.split("'")[0]
.strip()
)timeout
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 3
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -231,7 +231,7 @@
return (
str(type(self.java_wrapped_element))
.split("class ")[1]
- .split("'jnius.reflect.")[1]
+ .split("'jnius.reflect.")[ 0]
.split("'")[0]
.strip()
)timeout
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 4
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -232,7 +232,7 @@
str(type(self.java_wrapped_element))
.split("class ")[1]
.split("'jnius.reflect.")[1]
- .split("'")[0]
+ .split("'")[ 1]
.strip()
)
timeout
worker outcome: normal
test outcome: killed
operator: core/NumberReplacer, occurrence: 5
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -232,7 +232,7 @@
str(type(self.java_wrapped_element))
.split("class ")[1]
.split("'jnius.reflect.")[1]
- .split("'")[0]
+ .split("'")[ -1]
.strip()
)
timeout
worker outcome: normal
test outcome: killed
operator: core/RemoveDecorator, occurrence: 0
--- mutation diff ---
--- asrc\pymeter\api\__init__.py
+++ bsrc\pymeter\api\__init__.py
@@ -235,8 +235,6 @@
.split("'")[0]
.strip()
)
-
- @property
def java_wrapped_element(self):
"""retrieves the java element wrapped in the python object by class name"""
if not self.__class__.wrapped_instance_name:EEEE..EEE.EEE.EEEEEEE.EE
======================================================================
ERROR: test_http_sampler (utests.test_postprocessors.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_postprocessors.py", line 17, in test_http_sampler
http_sampler = HttpSampler(
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 35, in __init__
self._http_sampler_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.postprocessors.JsonExtractor object at 0x0000022D0472CBE0>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/samplers/BaseSampler$SamplerChild;'
======================================================================
ERROR: test_http_sampler (utests.test_reporter.TestReporter)
create an HTML report
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_reporter.py", line 17, in test_http_sampler
tg = ThreadGroupWithRampUpAndHold(2, 1, 2, http_sampler, name="Some Name")
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 170, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x0000022D01BD7D60>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_http_2_headers (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 90, in test_http_2_headers
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
AttributeError: 'function' object has no attribute 'header'
======================================================================
ERROR: test_http_duplicated_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 105, in test_http_duplicated_header
.header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
AttributeError: 'function' object has no attribute 'header'
======================================================================
ERROR: test_http_sampler (utests.test_sampler.TestSampler)
send request to postman echo
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 15, in test_http_sampler
tg1 = ThreadGroupSimple(1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 142, in __init__
self._thread_group_simple_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x0000022D04721630>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_http_valid_header (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 77, in test_http_valid_header
).header("key1", "val1")
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 61, in header
self._http_sampler_instance = self.java_wrapped_element.header(key, value)
AttributeError: 'function' object has no attribute 'header'
======================================================================
ERROR: test_post_http_sampler_dict_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 28, in test_post_http_sampler_dict_input
).post({"var1": 1}, ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
AttributeError: 'function' object has no attribute 'post'
======================================================================
ERROR: test_post_http_sampler_list_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 39, in test_post_http_sampler_list_input
).post([1, 2, 3, 4], ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
AttributeError: 'function' object has no attribute 'post'
======================================================================
ERROR: test_post_http_sampler_str_input (utests.test_sampler.TestSampler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_sampler.py", line 50, in test_post_http_sampler_str_input
).post('{"name": "John Doe"}', ContentType.APPLICATION_JSON)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 50, in post
self._http_sampler_instance = self.java_wrapped_element.post(
AttributeError: 'function' object has no attribute 'post'
======================================================================
ERROR: test_creation_of_empty_test_plan (utests.test_test_plan.TestTestPlanClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 24, in test_creation_of_empty_test_plan
python_test_plan_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_test_plan_with_valid_children (utests.test_test_plan.TestTestPlanClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 33, in test_creation_of_test_plan_with_valid_children
test_plan = TestPlan(tg1, tg2)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 74, in __init__
self._test_plan_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.config.ThreadGroupWithRampUpAndHold object at 0x0000022D04721630>>, <bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.config.ThreadGroupWithRampUpAndHold object at 0x0000022D04745810>>) used for L array 'Lus/abstracta/jmeter/javadsl/core/DslTestPlan$TestPlanChild;'
======================================================================
ERROR: test_run_empty_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 90, in test_run_empty_flow
test_plan = TestPlan(tg1)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 74, in __init__
self._test_plan_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.config.ThreadGroupWithRampUpAndHold object at 0x0000022D0471A470>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/DslTestPlan$TestPlanChild;'
======================================================================
ERROR: test_run_positive_flow (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 56, in test_run_positive_flow
tg1 = ThreadGroupWithRampUpAndHold(20, 1, 3, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 170, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x0000022D0471A470>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_run_validate_order (utests.test_test_plan.TestTestPlanClass)
should run test flow with no exceptions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_test_plan.py", line 99, in test_run_validate_order
tg_setup = SetupThreadGroup(dummy_sampler_for_setup)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 107, in __init__
self._setup_thread_group_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.DummySampler object at 0x0000022D0471A470>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_creation_of_empty_setup_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 24, in test_creation_of_empty_setup_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_teardown_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 32, in test_creation_of_empty_teardown_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_empty_thread_group (utests.test_thread_group.TestThreadGroupClass)
when creating the python class, it should wrap around the correct java class
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 16, in test_creation_of_empty_thread_group
python_thread_group_object.get_java_class_name(),
File "C:\workspace-vscode\pymeter\src\pymeter\api\__init__.py", line 232, in get_java_class_name
str(type(self.java_wrapped_element))
IndexError: list index out of range
======================================================================
ERROR: test_creation_of_thread_group_with_valid_children (utests.test_thread_group.TestThreadGroupClass)
When children are passed through,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_thread_group.py", line 40, in test_creation_of_thread_group_with_valid_children
python_thread_group_object = ThreadGroupWithRampUpAndHold(1, 1, 1, http_sampler)
File "C:\workspace-vscode\pymeter\src\pymeter\api\config.py", line 170, in __init__
self._ramp_to_and_hold_instance.children(
File "jnius\jnius_export_class.pxi", line 1177, in jnius.JavaMultipleMethod.__call__
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.samplers.HttpSampler object at 0x0000022D025268F0>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/threadgroups/BaseThreadGroup$ThreadGroupChild;'
======================================================================
ERROR: test_uniform_random_timer (utests.test_timers.TestTimer)
When the minimal time is 5000 milliseconds,
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\workspace-vscode\pymeter\utests\test_timers.py", line 15, in test_uniform_random_timer
http_sampler = HttpSampler("Echo", "https://postman-echo.com/get?var=1", timer)
File "C:\workspace-vscode\pymeter\src\pymeter\api\samplers.py", line 35, in __init__
self._http_sampler_instance.children(
File "jnius\jnius_export_class.pxi", line 879, in jnius.JavaMethod.__call__
File "jnius\jnius_conversion.pxi", line 158, in jnius.populate_args
File "jnius\jnius_conversion.pxi", line 815, in jnius.convert_pyarray_to_java
jnius.JavaException: Invalid variable (<bound method BaseJMeterClass.java_wrapped_element of <pymeter.api.timers.UniformRandomTimer object at 0x0000022D0472FC40>>,) used for L array 'Lus/abstracta/jmeter/javadsl/core/samplers/BaseSampler$SamplerChild;'
----------------------------------------------------------------------
Ran 24 tests in 1.071s
FAILED (errors=19)