简体   繁体   English

如何将现有的基于 Java 的黄瓜测试框架迁移到空手道

[英]How to migrate existing java based cucumber test framework to Karate

Karate recently released GUI Automation feature.空手道最近发布了 GUI 自动化功能。 I always liked the karate way of writing script.我一直喜欢空手道写剧本的方式。 I'm thinking to implement Karate's unified framework for Rest + GUI at larger scale in my org.我正在考虑在我的组织中更大规模地实施空手道的 Rest + GUI 统一框架。

Problem statement : The existing teams uses purely cucumber based framework and have automated significant number of tests.问题陈述:现有团队仅使用基于黄瓜的框架,并已自动化大量测试。 In order to migrate Karate framework we will need to re write automated tests with Karate's standards.为了迁移 Karate 框架,我们需要使用 Karate 的标准重新编写自动化测试。 It would take huge efforts to migrate existing tests considering volume of work.考虑到工作量,迁移现有测试需要付出巨大的努力。 I am just looking for best possible ways to migrate with minimum efforts.我只是在寻找以最少的努力进行迁移的最佳方式。

Is there a way I can add Karate to my existing cucumber based framework so that I can keep existing tests running while writing new tests with karate guidelines.有没有一种方法可以将空手道添加到我现有的基于黄瓜的框架中,这样我就可以在使用空手道指南编写新测试的同时保持现有测试的运行。

It should be possible (in theory) to mix Karate and Cucumber in the same Maven (or Gradle) project.应该可以(理论上)在同一个 Maven(或 Gradle)项目中混合使用 Karate 和 Cucumber。 Unfortunately I don't know of too many people who have done this.不幸的是,我不知道有多少人做过这件事。

Please refer to this discussion for more: https://github.com/intuit/karate/issues/444#issuecomment-419852761更多请参考这个讨论: https : //github.com/intuit/karate/issues/444#issuecomment-419852761

Sorry I can't provide a more clearer answer, you may need to experiment a bit.抱歉,我无法提供更清晰的答案,您可能需要尝试一下。

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

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