how to solve NoClassDefFoundError in cucumber test

强颜欢笑 提交于 2019-12-13 00:41:34

问题


i am using eclipse as a IDE and Selenium web driver. i am trying to run test in cucumber-JVM. when i am run test it show me "NoClassDefFoundError ". can anyone help me to solve my problem. all relevant jar files are build in to project file.


回答1:


Add cucumber-jvm-deps-1.0.3.jar file into your build path. You can download cucumber-jvm-deps-1.0.3.jar file from cucumber-jvm-deps-1.0.3




回答2:


If the NoClassDefFoundError is coming from either XmlPullParser or dom4j/element u need to install this Eclipse Plugin/Update: Eclipse -> Help -> Install New Software… http://cucumber.github.com/cucumber-eclipse/update-site



来源:https://stackoverflow.com/questions/18513603/how-to-solve-noclassdeffounderror-in-cucumber-test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!