1. 错误
Exception in thread "main" cucumber.runtime.CucumberException: You‘re not allowed to extend classes that define Step Definitions or hooks. class A extends class B
原因:在类B中使用了cucumber的@before,去掉即可
原文:https://www.cnblogs.com/sylvia-lesson/p/10764390.html