allure-behave :术语“allure-behave”不被识别为 cmdlet、函数、脚本文件或可操作程序的名称

问题描述 投票:0回答:1

我创建了新的(virt_env)并使用命令安装了 allure-behave:

pip install allure-behave

要验证它是否已安装,我使用

pip list
命令:

当我运行自动化测试时,我看到带有 JSON 文件的 allure-results 文件夹:

但是当我尝试通过运行命令

allure generate
生成报告时,我看到错误: allure-behave :术语“allure-behave”未被识别为 cmdlet、函数、脚本文件或可操作的名称 程序。检查名称的拼写,或者如果包含路径,请验证路径是否正确,然后重试。

如何解决?

我按照 Allure 网站

的说明进行操作

当我尝试运行时

allure-behave --version
我有同样的错误:

我不确定这是否重要,但我正在使用 PowerShell 来运行命令。

python automation allure python-behave
1个回答
0
投票

您需要安装 Allure 命令行才能从 allure 结果生成报告。请参阅https://allurereport.org/docs/gettingstarted-installation/

© www.soinside.com 2019 - 2024. All rights reserved.