【问题标题】:Can we use Karate and Rest-Assured in the same project (with gradle)?我们可以在同一个项目(使用 gradle)中使用空手道和 Rest-Assured 吗?
【发布时间】:2017-09-19 12:55:31
【问题描述】:

我们可以在已经使用 Rest-Assured 进行 API 测试并使用 Cucumber 和 java 进行移动和 Web 应用程序的项目中使用空手道吗?我们使用 gradle。 如果是,我们如何管理我们的文件夹?我们必须把我们的空手道跑步者课放在哪里?当我运行它时,它会返回

"14:53:55.230 [main] DEBUG com.intuit.karate.cucumber.CucumberRunner - init test class: class runners.karateTest.TestRunner
No features found at [classpath:features/users/User.feature]
Process finished with exit code 0
Empty test suite." 

【问题讨论】:

    标签: gradle karate rest-assured


    【解决方案1】:

    是的,你可以。

    请参阅文档,其中包含来自 Gradle 的说明以及如果确实需要如何通过 Java API 调用空手道。

    另见:https://stackoverflow.com/a/65628686/143475

    【讨论】:

    • 我无法在这里解释 maven 和 gradle 基础知识。请注意, exclude *.java 将包含类文件。我的建议是你尝试做的太多,你似乎无法让一个简单的空手道 hello world 工作,现在你正在尝试混合放心。请从简单开始,不要迷惑自己。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多