简体   繁体   English

运行行为 BDD 测试时有关此错误根本原因的任何建议

[英]Any suggestions for the root cause of this error while running behave BDD tests

While trying to run some BDD behave Tests from my local mac machine I encountered the following error.在尝试从我的本地 mac 机器运行一些 BDD行为测试时,我遇到了以下错误。 Has anyone else experienced it and any suggestions to fix it.有没有其他人经历过它以及任何修复它的建议。

HOOK-ERROR in before_all: KeyError: 'SELENIUM_HUB'

Fixed the issue by passing the missing keys (user defined arguments in the form of -D Name=Value) at command line while running the behave tests as $ behave -D SELENIUM_HUB=local通过在命令行传递缺失的键(用户以 -D Name=Value 的形式定义的 arguments)修复了问题,同时运行行为测试为$ behave -D SELENIUM_HUB=local

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM