简体   繁体   English

尝试使用sikuli运行黄瓜测试时得到“无法加载Java类org.sikuli.script.Keys”

[英]Getting “cannot load Java class org.sikuli.script.Keys” while trying to run cucumber test using sikuli

I'm trying to set up testing environment using sikuli+jruby+cucumber. 我正在尝试使用sikuli + jruby + cucumber设置测试环境。 So I've installed latest JDK, Sikulix 1.1.1 , and latest JRuby, set up the cucumber test inspired by https://github.com/fozzie63/sikuli-jruby-cucumber and when i'm trying to run test i get the following exception: 因此,我安装了最新的JDK,Sikulix 1.1.1和最新的JRuby,并受https://github.com/fozzie63/sikuli-jruby-cucumber的启发设置了黄瓜测试,当我尝试运行测试时,我得到了以下异常:

sikulitest EugeneMarrow$ cucumber 
missing class or uppercase package name (`org.sikuli.script.Keys'), caused by (NameError) cannot load Java class org.sikuli.script.Keys (NameError)

I've tried to: - downgrade to JDK 7 and switched back to JDK8; 我试图:-降级到JDK 7,然后切换回JDK8; - reinstall JRuby; -重新安装JRuby; - use Sikulix Nightly Builds 1.1.2; -使用Sikulix Nightly Build 1.1.2;

I'm running it on MacOS Sierra. 我正在MacOS Sierra上运行它。

I would trouble shoot my classpath if I saw an error like this. 如果看到这样的错误,我将无法拍摄类路径。 To me it is clear that you are missing something or referring to it with the wrong case. 对我来说,很明显,您丢失了某些内容或使用了错误的情况进行引用。

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

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