Cucumber Undefined Step, Though Defined Using IntelliJ

后端 未结 5 806
慢半拍i
慢半拍i 2020-12-16 22:12

I\'m trying to run a .feature file to test a simple RESTEasy web application: https://github.com/dashorst/jaxrs-quickstart-resteasy.

However, the IntelliJ keeps say

5条回答
  •  -上瘾入骨i
    2020-12-16 22:22

    I made the same mistake and found several different answers. But the same mistake always remained. So I ended up finding the solution. I was using a cucumbe.api dependency, but in my Steps class I was importing io.cucumber, so my steps could not be found. Then delete the import and select the correct import.

    enter image description here

提交回复
热议问题