运行Katalon 的测试用命令行的时候有没有办法把结果消息发给slack?

Is there a way to send the result message to slack when we use the command line to run Katalon's test?

使用命令行时是否可以将Katalon的测试结果发送到slack?

我已经在 Katalon-Studio 中为 slack 创建了集成并且它工作正常,但是当我尝试使用命令行执行该测试时,测试是 运行,但结果不是发送到 slack。

katalon -noSplash  -runMode=console -consoleLog -noExit -projectPath="C:\Users\test\Katalon Studio\Web.Portal\test.prj" -retry=0 -testSuitePath="Test Suites/New Test Suite" -executionProfile="default" -browserType="Chrome"

我希望收到与通过 Katalon-Studio 执行测试时收到的消息相同的消息。

例如。

测试套件的汇总执行结果:测试Suites/New测试套件

测试用例总数:1

传球总数:1

失败总数:0

错误总数:0

跳过总数:0

你只需要 Katalon 插件

要在控制台模式下测试套件,并且您希望 Katalon 向 Slack 发送摘要报告, 您还需要在命令中再添加一个参数 -apiKey。 要获得 API 密钥,您可以访问商店 (https://store.katalon.com),使用您的帐户登录,然后导航至“设置”页面以添加新的 apiKey。

CMD 模式下的例子

./Katalon\ Studio.app/Contents/Ms/katalon --args -runMode=console -projectPath="/Users/Shared/Jenkins/Home/workspace/QA-katalon/kyy.prj" -reportFolder=“Reports” -reportFileName=“report” -retry=0 -testSuitePath=“Test Suites/Employees” -browserType=“Chrome” -apiKey=“de544cef-a56b-4eb5-a051-391bc0537b59(your key)”

在此处查找更多详细信息 > https://docs.katalon.com/katalon-studio/docs/slack-plugin-integration.html#obtain-slack-legacy-token