Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的项目结构
嗨,我是 Cucumber 的新手,正在尝试创建一个虚拟项目进行练习。正如您在项目结构中看到的那样,我在 com.netreveal.testcases 包中创建了步骤定义文件(MenuTest),但是当尝试通过 com.netreveal.login 包中的 Runner 类运行它时,它给了我以下错误。但是,当我将 MenuTest 保存在 com.netreveal.login 包中时,它运行正常吗?错误亚军
更改 Runner 类,使胶水与步骤定义类的包名称匹配:
glue = { "com.netreveal.testcases" }
如果愿意,功能路径也可以是相对的,并指向整个文件夹或特定的功能文件:
features = { "src/main/resources/NetReveal/testcases" }