QAF的JUnit实现

JUnit implementation of QAF

下午好。 是否可以用 JUnit 来实现 QAF 的工作? 例如,我想在我的项目中使用 qaf-gherkin,但它是基于 JUnit + Cucumber 构建的。 如我所见,有,但没有关于项目和它基于哪个测试框架的描述。

QAF 基于 TestNG。如果你正在为 Java 使用 Junit,你可以 运行 通过在配置文件中设置 junit="true" 使用 TestNG。但是,对于将 Cucumber 迁移到 QAF,它不应该影响当前 运行ner 是 Junit 或 TestNG,直到您使用 Junit 的任何特定功能。在 documentation. You don't need to write or use additional java class to run your tests because it is taken care by QAF. All you need to do is create xml configuration file for to run your BDD

之后开始使用 QAF 所需的一切

因为 QAF 一起提供了所有测试需求,所以您不需要依赖多个框架(在您的案例中是 junit 和 Cucumber)。