RunPYN测试框架不检测正在运行的Robot测试

2024-09-29 19:31:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个名为Test Case A的测试用例,我想调试导入的python库中的内部方法调用。我使用PyCharm运行/调试配置窗口来设置参数。在

  1. 脚本:/home/zeinab/Workspace/Test/run.py
  2. 脚本参数:--testsuite MyDirectory.MyTestSuite --testcases "Test Case A"
  3. 工作目录:/home/zeinab/Workspace/Test
  4. Add content roots to PYTHONPATH和{}被选中。在

这是调试器输出:

/usr/bin/python2.7 /home/zeinab/Workspace/lbs-w-report-agent-test/lbs-w/Test/NewTest/run.py --testsuite MyDirectory.MyTestSuite --testcases "Test Case A"
Number of Failed Scenarios: 252
[ ERROR ] Suite 'Scenarios' contains no tests named 'Test Case A' in suite 'MyDirectory.MyTestSuite'.

Try --help for usage information.

Process finished with exit code 1

但是当我复制/粘贴调试器试图执行的行时,检测我的测试用例没有问题。在

run.py包含:

^{pr2}$

Tags: runpytest脚本home参数测试用例workspace

热门问题