问题标签 [needle-python]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
295 浏览

python - Nosetests-script.py 错误 - 从 Needle 运行测试

尝试从 Needle 运行默认测试后,我遇到了问题。Neddle 是一个使用 Selenium 测试 CSS 的工具,这是他们的网站: http: //needle.readthedocs.org/en/latest/

我已经安装了 selenium、pip 和 needle,但是在运行以下命令后我仍然面临问题:

鼻子测试 test_bbc.py --with-save-baseline:

这是我得到的回复:

没有这样的选项--with-save-baseline

我的 /Scripts 文件夹中有文件 nosetests-script.py,但它非常简单,这是屏幕截图:

鼻子测试代码

我相信我遗漏了一些非常简单的东西,但我在 stackoverflow 上既找不到原因也找不到解决方案。

-

编辑: 感谢您的建议alecxe,仔细配置我的 Python 3.3 后,它工作了!我不确定这是否是原因,因为我相信我没有在 Python 3.4 上安装鼻子,但感谢您的帮助。

0 投票
0 回答
66 浏览

python - 函数 test_example_element 中的参数“needle”到底是什么?从哪里访问它?

最近我开始使用 python 进行可视化测试。我正在将 Needle 与一个名为pytest-needle https://pypi.org/project/pytest-needle/的 python 库一起使用

谁能解释下面一行中的针到底是什么?从哪里访问它?
def test_example_element(针):