Is it possible to switch from cucumber-jvm to QAF?

we already have automatic test files using files with cucumber burns using WebDriver. Right now we can execute function files in parallel, however we cannot execute parallel at the script / script level. Thus, we want to minimize runtime and use the cloud service at the maximum level.

I read this post that claims

you can run gherkin as a QAF script so that it has functions like run configuration, reporting, parallel execution, step listener

.

Before the migration, I want to know if anyone has tried or knows any restrictions, because our test layer is very large.

+5
source share
2 answers

Yes, with the QMetry Automation Framework, you can parallelize at the script / script level without any changes to your function files.

If you used hooks for a cucumber, this will not work . To do this, you can provide a TestNG listener to achieve the same goal. You will get more listener support from TestNG and QAF listeners that cannot be reached with cucumber hooks.

Another difference, which is not really a limitation, is that instead of using --tag, you need to use the TestNG group filter and provide your tags as a group. For instance:

<groups> <run> <exclude name="@MyTag" /> </run> </groups> 

Go ahead and give it a try without fear. For a quick assessment, you can download an example and check. When using cucumber, you will get many more functions with QAF for execution, as well as for new development of a new test case, such as databean, data-providers, custom-components, etc ...

+3
source

Yes, we recently appreciated the gherkin QMetry Automation Framework feature with one of our existing projects, where we have cucumber tests, and it took us less than an hour to set up. It worked for us. For us, we used QAF for other projects (without cucumber), so we have a good understanding of other possibilities. If you are a beginner, it may take a day or two, but it takes a long time.

+1
source

Source: https://habr.com/ru/post/1257806/


All Articles