有没有办法让 Jmeter 自动化运行一些测试计划 [英] Is there a way to automate Jmeter to run a number of testplans

查看:27
本文介绍了有没有办法让 Jmeter 自动化运行一些测试计划的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让 Jmeter 自动化运行一些测试计划?假设我想执行一个实验并一个接一个地使用单个不同的字段运行相同的测试,并为每个测试单独保存报告.

Is there a way to automate Jmeter to run a number of test-plans? Suppose I want to perform an experiment and run same test with single varying field one after the another, and reports saves for every test individually.

例如:通过改变加速时间来执行多项测试这样我就开始一次,然后离开它几个小时回来看看整个实验的执行情况.
我在某处读到可以使用 ANT.

For example: perform a number of tests by varying the ramp-up time so that I start it once and leave its for hours and comeback to see the whole experiment is performed.
I read somewhere that ANT can be used.

推荐答案

我会将相关变量提取到 .properties 文件中,并每次都执行传递不同 cfg 文件名的测试.Jmeter.properties、user.properties、system.properties 和类似内容正是您要查找的内容.

I'd extract relevant variables to .properties files and execute tests passing different cfg file name every time. Jmeter.properties, user.properties, system.properties and similar are what you are looking for.

这篇关于有没有办法让 Jmeter 自动化运行一些测试计划的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆