是否有可能从cucumber-jvm迁移到QAF? [英] Is it possible to migrate from cucumber-jvm to QAF?

查看:174
本文介绍了是否有可能从cucumber-jvm迁移到QAF?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已经使用了带有WebDriver的黄瓜 - 小黄瓜特征文件的自动化测试用例。
现在我们能够并行执行功能文件,但是我们无法在场景/场景大纲级别执行并行操作。
通过这种方式,我们希望最大限度地缩短执行时间并最大限度地利用云服务。

we already have automated testcases using cucumber-gherkin feature files with WebDriver. Right now we are able to execute feature files parallel, however we are not able to execute parallel at scenario/scenario outline level. By this way we want to minimize the execution time and utilize the cloud service at maximum level.

我读了这个 postt ,声称


可以运行小黄瓜作为QAF场景,所以它将具有运行
配置,报告,并行执行,步骤监听器等功能

one can run gherkin as QAF scenario so it will have features like run configuration, reporting, parallel execution, step listener

在迁移之前,我想知道是否有人尝试或知道任何限制,因为我们的测试床非常大。

Before migrating, I want to know if anybody has tried or know any limitation as our test bed is very large.

推荐答案

是的,使用QMetry Automation Framework,您可以在场景/场景大纲级别执行并行,而不会对功能文件进行任何更改。

Yes, with QMetry Automation Framework you can execute parallel at scenario/scenario outline level with without any change in your feature files.

如果您使用过任何黄瓜挂钩,则无效。为此,您可以提供TestNG侦听器以实现相同的目标。您将从TestNG和QAF听众那里获得更多的听众支持,黄瓜挂钩可能无法实现。

If you have used any cucumber hooks it will not work. For that you can provide TestNG listener to achieve the same goal. You will get more listener support from TestNG and QAF listeners which may not be achievable with cucumber hooks.

另一个差异,实际上不是限制,是执行而不是--tag,您需要使用TestNG组过滤并将您的标记作为组提供。例如:

Another difference, which in fact not a limitation, is For execution instead of --tag you need to use TestNG groups filter and provide your tags as group. For Example:

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

继续尝试,不必担心。要快速评估,您可以下载示例和校验。使用黄瓜时,您将获得更多QAF执行功能,以及新数据库,数据提供程序,自定义组件等新测试案例的开发......

Go ahead and give it try without any fear. For quick evaluation, you can download example and check. While using cucumber you will get many more features with QAF for execution as well as for new development of new test case like databean, data-providers, custom-components etc...

这篇关于是否有可能从cucumber-jvm迁移到QAF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆