Git 和 jMeter 脚本
Git and jMeter scripts
我本地的 jmeter 脚本很少。我必须将它们保存在 git 的主项目中,以便我可以将其集成到 Jenkins 中。
想知道 Git 中的项目结构应该如何。
是不是这样:
Main Project Folder
Module1
TestPlan 1
TestPlan 2
Module 2
TestPlan1
TestPlan2
TestPlan1、TestPlan2 等是.jmx 文件,是具有多个测试用例的测试脚本?
还有,当我们通过Jenkins执行的时候,那么我们在Jenkins中配置主Project文件夹,它会不会把它下面的所有脚本都挑出来执行呢?
Jenkins 没有做任何魔术,它基本上检查 configured Git repository and executes build steps (most likely you will run JMeter using command-line non-GUI mode)
因此,给定您用于 运行 的相同命令,您的 JMeter 测试在本地工作 - 它也应该在 Jenkins 中工作。请记住 not to use full paths 到模块、CSV 文件等
我本地的 jmeter 脚本很少。我必须将它们保存在 git 的主项目中,以便我可以将其集成到 Jenkins 中。 想知道 Git 中的项目结构应该如何。 是不是这样:
Main Project Folder
Module1
TestPlan 1
TestPlan 2
Module 2
TestPlan1
TestPlan2
TestPlan1、TestPlan2 等是.jmx 文件,是具有多个测试用例的测试脚本?
还有,当我们通过Jenkins执行的时候,那么我们在Jenkins中配置主Project文件夹,它会不会把它下面的所有脚本都挑出来执行呢?
Jenkins 没有做任何魔术,它基本上检查 configured Git repository and executes build steps (most likely you will run JMeter using command-line non-GUI mode)
因此,给定您用于 运行 的相同命令,您的 JMeter 测试在本地工作 - 它也应该在 Jenkins 中工作。请记住 not to use full paths 到模块、CSV 文件等