Search code examples
javajunitcucumberqaf

JUnit implementation of QAF


Good afternoon. Is it possible to implement the work of QAF with JUnit? For example, i want to use qaf-gherkin in my project, but it's build on JUnit + Cucumber. As I see, there is a similar question, but there is no description about project and on which test framework it was based.


Solution

  • QAF built upon TestNG. If you are using Junit for Java you can run using TestNG by setting junit="true" in configuration file. However for migrating cucumber to QAF it should not impact current runner is either Junit or TestNG until you are using any specific features of Junit. All you need to start using QAF following 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

    Because QAF provides all testing needs together you don't need to relay on multiple frameworks (junit and cucumber in your case).