0

我正在尝试在 Windows 10 上使用https://github.com/atlassian/dc-app-performance-toolkit

我已经从https://gettaurus.org/install/Installation/安装了 taurus

jira 安装在我的系统上,我可以使用 http://localhost:2990/jira 访问它

但是,当我运行bzt jira.yml时,我遇到了错误。

14:43:35 INFO: Starting shell command: python util/post_run/jmeter_post_check.py←[0m
14:43:36 INFO: Starting shell command: python util/jtl_convertor/jtls-to-csv.py kpi.jtl selenium.jtl←[0m
←[33m14:43:36 WARNING: Errors for python util/jtl_convertor/jtls-to-csv.py kpi.jtl selenium.jtl:
Traceback (most recent call last):



File "util/jtl_convertor/jtls-to-csv.py", line 8, in <module>
    import pandas
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\__init__.py", line 11, in <module>
    __import__(dependency)
  File "C:\Program Files\Taurus\pkgs\numpy\__init__.py", line 138, in <module>
    from . import _distributor_init
  File "C:\Program Files\Taurus\pkgs\numpy\_distributor_init.py", line 26, in <module>
    WinDLL(os.path.abspath(filename))
  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\lib\ctypes\__init__.py", line 373, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 193] %1 is not a valid Win32 application
←[0m
←[31m14:43:36 ERROR: Child Process Error: Test runner selenium (PyTestExecutor) has failed with retcode 1←[0m
←[31m14:43:36 ERROR: PyTestExecutor STDERR:
Traceback (most recent call last):
  File "C:\Program Files\Taurus\pkgs\bzt\resources\pytest_runner.py", line 22, in <module>
    import pytest
  File "C:\Program Files\Taurus\pkgs\pytest\__init__.py", line 7, in <module>
    from _pytest.assertion import register_assert_rewrite
  File "C:\Program Files\Taurus\pkgs\_pytest\assertion\__init__.py", line 10, in <module>
    from _pytest.assertion import rewrite
  File "C:\Program Files\Taurus\pkgs\_pytest\assertion\rewrite.py", line 30, in <module>
    from _pytest.assertion import util
  File "C:\Program Files\Taurus\pkgs\_pytest\assertion\util.py", line 14, in <module>
    import _pytest._code
  File "C:\Program Files\Taurus\pkgs\_pytest\_code\__init__.py", line 2, in <module>
    from .code import Code
  File "C:\Program Files\Taurus\pkgs\_pytest\_code\code.py", line 29, in <module>
    import pluggy
  File "C:\Program Files\Taurus\pkgs\pluggy\__init__.py", line 16, in <module>
    from .manager import PluginManager, PluginValidationError
  File "C:\Program Files\Taurus\pkgs\pluggy\manager.py", line 11, in <module>
    import importlib_metadata
  File "C:\Program Files\Taurus\pkgs\importlib_metadata\__init__.py", line 623, in <module>
    __version__ = version(__name__)
  File "C:\Program Files\Taurus\pkgs\importlib_metadata\__init__.py", line 585, in version
    return distribution(distribution_name).version
  File "C:\Program Files\Taurus\pkgs\importlib_metadata\__init__.py", line 558, in distribution
    return Distribution.from_name(distribution_name)
  File "C:\Program Files\Taurus\pkgs\importlib_metadata\__init__.py", line 215, in from_name
    raise PackageNotFoundError(name)
importlib_metadata.PackageNotFoundError: No package metadata was found for importlib_metadata←[0m

我究竟做错了什么?

4

2 回答 2

0

您收到的错误是关于缺少importlib-metadata包,您需要安装requirements.txt下列出的所有包才能运行这些测试,似乎您省略了安装和设置章节

因此,请确保pip install -r requirements.txt在启动 Taurus 测试之前执行,因为 Taurus 不会自行处理依赖关系。

更多信息:

于 2020-09-15T10:32:33.787 回答
0

我不得不删除安装在 C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\lib\ 的 python

在 bzt 之前安装的

为了纠正这个问题,我卸载了 taurus 并手动安装了它。

使用 python-3.8.5-amd64.exe 安装了 python。并且不使用 python-3.8.5.exe

于 2020-09-16T03:38:00.407 回答