【问题标题】:How to integrate Testrail with Karate如何将 Testrail 与空手道集成
【发布时间】:2018-01-18 04:29:06
【问题描述】:

是否可以将空手道与 testrail 集成?我正在使用下面的代码调用 testrail,但不确定如何将结果发送到每个场景的 testrail。

@AfterClass
    public static void after() throws Exception
    {
        APIClient client = new APIClient("http://test.com/testrail");
        client.setUser("test");
        client.setPassword("Password1");
       JSONObject c = (JSONObject) client.sendGet("/get_case/5905");
       System.out.println(c.get("title"));


    }

【问题讨论】:

    标签: karate testrail


    【解决方案1】:

    空手道 0.7.0.RC4 版本支持 'after' 钩子。

    详情参考这个例子:hooks.feature

    所以从空手道获得结果是使用karate.info 解决的。如何调用 TestRail 取决于您。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-09-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-21
    • 1970-01-01
    • 2021-12-27
    相关资源
    最近更新 更多