如何将 Testrail 与空手道集成
How to integrate Testrail with Karate
是否可以将 karate 与 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"));
}
空手道 0.7.0.RC4 版本支持 'after' 挂钩。
详情参考这个例子:hooks.feature
因此,使用 karate.info
解决了从空手道获得结果的问题。您如何称呼 TestRail 由您决定。
是否可以将 karate 与 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"));
}
空手道 0.7.0.RC4 版本支持 'after' 挂钩。
详情参考这个例子:hooks.feature
因此,使用 karate.info
解决了从空手道获得结果的问题。您如何称呼 TestRail 由您决定。