简体   繁体   English

将现有的 API 个测试用例迁移到 Karate

[英]Migrate existing API test cases to Karate

I have few existing test cases scripted with HTTP client.我几乎没有使用 HTTP 客户端编写脚本的现有测试用例。 Trying to switch to Karate framework, only hurdle is migrating existing test case.尝试切换到空手道框架,唯一的障碍是迁移现有的测试用例。 Is there any way to migrate or any way to import from swagger or any alternative?有什么方法可以从 swagger 或任何替代方法迁移或导入吗?

First let me provide a disclaimer that there is no "short cut" to test-automation.首先让我提供一个免责声明,即测试自动化没有“捷径”。 You get the best results when you write tests by hand.当您手动编写测试时,您会得到最好的结果。

That said, you can evaluate Karate Studio (commercial): https://www.karatelabs.io/studio也就是说,您可以评估空手道工作室(商业): https://www.karatelabs.io/studio

We are working on adding import from Postman collections and Swagger etc. to the VS Code and IntelliJ plugins.我们正在努力将 import from Postman collections 和 Swagger 等添加到VS CodeIntelliJ插件中。 This will be available by the end of the year.这将在今年年底提供。

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

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