博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Multi-Mechanize工程目录结构说明
阅读量:7234 次
发布时间:2019-06-29

本文共 1040 字,大约阅读时间需要 3 分钟。

  hot3.png

目录结构

每个测试项目包含以下内容:

  • config.cfg的配置文件。用于设定测试选项。

  • test_scripts/虚拟用户脚本的目录。在这里添加您的测试脚本。

  • results/:结果存储目录。对于每个测试都声称一个时间戳目录,里面包含结果的报告。

multimech-newproject,默认生成一个随机数的脚本。脚本v_user.py如下:

import randomimport timeclass Transaction(object):    def __init__(self):        pass    def run(self):        r = random.uniform(1, 2)        time.sleep(r)        self.custom_timers['Example_Timer'] = rif __name__ == '__main__':    trans = Transaction()    trans.run()    print trans.custom_timers

配置参数的含义如下:

  • run_time: duration of test (seconds) 测试的执行时间

  • rampup: duration of user rampup (seconds) 多少秒内发完请求

  • results_ts_interval: time series interval for results analysis (seconds) 结果分析时间

  • progress_bar: turn on/off console progress bar during test run 是否显示进度条

  • console_logging: turn on/off logging to stdout 是否输出到stdout

  • xml_report: turn on/off xml/jtl report 是否生成xml报告。

  • results_database: database connection string (optional) 保存结果的数据库连接字符串(可选)

  • post_run_script: hook to call a script at test completion (optional) 调用的善后脚本(可选)

转载于:https://my.oschina.net/hibony/blog/803624

你可能感兴趣的文章
Python 数据类型:列表
查看>>
在Ubuntu下安装和配置Rails 3详解 (LightTPD + FastCGI)
查看>>
DRBD试用手记
查看>>
argparse – Command line option and argument parsing.¶
查看>>
UML 图使用心得
查看>>
《肖申克的救赎》- 阅后小记
查看>>
Zookeeper系列五:Master选举、ZK高级特性:基本模型
查看>>
关于 DataRow 中为 DataRowState.Deleted 状态的 字段列值取值方法
查看>>
nginx配置解决vue单页面打包文件大,首次加载慢的问题
查看>>
win7方面API學習
查看>>
mongodb 安装
查看>>
ubuntu bless 16字节每行
查看>>
TestNG 七 annotation
查看>>
mysql数据库管理工具(navicat for mysql)
查看>>
JVM基础(1)——内存模型
查看>>
程序员嘛,先做个好架构师再说
查看>>
用外挂只为“吃鸡”成功?为什么不试试正当手段!
查看>>
2017线上超市食品消费盘点:老字号成新网红 年轻人爱新奇特
查看>>
BATJ等公司必问的8道Java经典面试题,你都会了吗?
查看>>
开学季学生宿舍竟然限电,学校管理因噎废食?
查看>>