简体   繁体   English

是否可以从cucumber-jvm迁移到QAF?

[英]Is it possible to migrate from cucumber-jvm to QAF?

we already have automated testcases using cucumber-gherkin feature files with WebDriver. 我们已经使用了带有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. 通过这种方式,我们希望最大限度地缩短执行时间,并在最高级别上使用云服务。

I read this post , which claims 我读了这篇帖子 ,声称

one can run gherkin as QAF scenario so it will have features like run configuration, reporting, parallel execution, step listener 一个人可以运行小黄瓜作为QAF场景,因此它将具有运行配置,报告,并行执行,步骤监听器等功能

.

Before migrating, I want to know if anybody has tried or know any limitation as our test bed is very large. 在迁移之前,我想知道是否有人尝试或知道任何限制,因为我们的测试床非常大。

Yes, with QMetry Automation Framework you can execute parallel at scenario/scenario outline level with without any change in your feature files. 是的,使用QMetry Automation Framework,您可以在场景/场景大纲级别执行并行,而不会对功能文件进行任何更改。

If you have used any cucumber hooks it will not work . 如果您使用过任何黄瓜钩,它将无法使用 For that you can provide TestNG listener to achieve the same goal. 为此,您可以提供TestNG侦听器以实现相同的目标。 You will get more listener support from TestNG and QAF listeners which may not be achievable with cucumber hooks. 您将从TestNG和QAF监听器获得更多的监听器支持,这可能无法通过黄瓜钩实现。

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. 另一个差异,实际上不是限制,是执行而不是--tag,您需要使用TestNG组过滤并提供您的标记作为组。 For Example: 例如:

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

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... 使用黄瓜时,您将获得更多QAF执行功能,以及新数据库,数据提供程序,自定义组件等新测试案例的开发......

Yes, we recently evaluated QMetry Automation Framework gherkin feature with one of our existing project where we have cucumber tests and it took us less than one hour to configure. 是的,我们最近使用我们现有的项目评估了QMetry Automation Framework小黄瓜功能,我们进行了黄瓜测试,花了不到一个小时的时间进行配置。 It worked fine for us. 它对我们来说很好。 For us we were using QAF for other projects (without cucumber) so we have good understanding of other features. 对于我们来说,我们将QAF用于其他项目(没有黄瓜),因此我们对其他功能有了很好的理解。 If you are new it may take a day or two but for long term it is worth. 如果你是新手,可能需要一两天,但从长远来看,这是值得的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM