如何在詹金斯执行邮递员测试?

问题描述 投票:0回答:2

我有邮递员的集合并存储在git中。 我如何告诉Jenkins在单元测试或集成测试后执行postman测试?

先感谢您

git testing jenkins automation postman
2个回答
1
投票

你可以使用Newman,它是Postman创建的Collection Command Line Runner,是你可以解决这个问题的最佳解决方案,我即将在ConcourseCI上实现它,但你也可以用Jenkins来实现它。

由于您已经将集合导出并存储在git中,因此很容易实现运行它的命令,请试一试!

这是纽曼的链接:https://www.getpostman.com/docs/newman_intro


0
投票

最好的方法是使用Newman ..你必须导出你的集合和你可以使用newman使用命令行界面执行的相同集合,也有可能以JSON,HTML ..ect格式提取报告

你可以参考https://www.getpostman.com/docs/v6/postman/collection_runs/command_line_integration_with_newman

您可以通过Jenkin使用相同的命令触发构建。

这是jenkin enter image description here的例子

© www.soinside.com 2019 - 2024. All rights reserved.