博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
jenkins+ant+jmeter接口测试
阅读量:4639 次
发布时间:2019-06-09

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

JMeter Test Results
  1. success
    failure
    Sampler
    Thread Name :
    Timestamp :
    Time :
    ms
    Latency :
    ms
    Bytes :
    Sample Count :
    Error Count :
    Response Code :
    Response Message :
    Assertion
    failure
    failure
    Failure :
    Error :
    Failure Message :
    Request
    Method/Url :
    Query String :
    Cookies :
    Request Headers :
    Response
    Response Headers :
    Response Data :
    Response File :
jmeter.results.shanhe.me.xsl
Sample build file for use with ant-jmeter.jar See http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php To run a test and create the output report: ant -Dtest=script To run a test only: ant -Dtest=script run To run report on existing test output ant -Dtest=script report The "script" parameter is the name of the script without the .jmx suffix. Additional options: -Dshow-data=y - include response data in Failure Details -Dtestpath=xyz - path to test file(s) (default user.dir). N.B. Ant interprets relative paths against the build file -Djmeter.home=.. - path to JMeter home directory (defaults to parent of this build file) -Dreport.title="My Report" - title for html report (default is 'Load Test Results')
funcMode = ${funcMode}
Report generated at ${report.datestamp}
Cannot find all xalan and/or serialiser jars
The XSLT formatting may not work correctly.
Check you have xalan and serializer jars in ${lib.dir}
build.xml

jmeter.home=/opt/apps/apache-jmeter-5.1.1

test=${JOB_NAME}

 

if [ "`grep -E \"<failure>true</failure>|<error>true</error>\" ${WORKSPACE}/${JOB_NAME}.jtl`" ];then

echo "fail"
exit 1
else
echo "success"
exit 0
fi

 

 

 

 

 

可以用jmc监控的build.xml:

Sample build file for use with ant-jmeter.jar See http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php To run a test and create the output report: ant -Dtest=script To run a test only: ant -Dtest=script run To run report on existing test output ant -Dtest=script report The "script" parameter is the name of the script without the .jmx suffix. Additional options: -Dshow-data=y - include response data in Failure Details -Dtestpath=xyz - path to test file(s) (default user.dir). N.B. Ant interprets relative paths against the build file -Djmeter.home=.. - path to JMeter home directory (defaults to parent of this build file) -Dreport.title="My Report" - title for html report (default is 'Load Test Results')
funcMode = ${funcMode}
Report generated at ${report.datestamp}
Cannot find all xalan and/or serialiser jars
The XSLT formatting may not work correctly.
Check you have xalan and serializer jars in ${lib.dir}
build.xml

 

转载于:https://www.cnblogs.com/xiaodebing/p/10782377.html

你可能感兴趣的文章
使用PowerShell在Windows 10中创建本地用户帐户
查看>>
让服务器可以下载apk和ipa文件
查看>>
[转发]如何在ASP.NET的web.config配置文件中添加MIME类型
查看>>
windows下Python三步安装pip
查看>>
BZOJ 1096 【ZJOI2007】 仓库建设
查看>>
Windows 10不能正常打开开始菜单问题修复
查看>>
小弹窗+按钮
查看>>
MySQL怎样取消错误命令
查看>>
解析大型.NET ERP系统 灵活复杂的界面控件Infragistics WinForms
查看>>
计算机系统中的整数运算
查看>>
新型USB病毒BadUSB 即使U盘被格式化也无法根除
查看>>
JAVA调用数据库存储过程
查看>>
RecyclerView 制作瀑布流图片
查看>>
[整理] jQuery插件开发
查看>>
区块链学习(5)比特币网络
查看>>
mui在tab选项卡中echarts图表不能动态随页面变化大小 只能固定大小
查看>>
SSL 1637——苹果
查看>>
swift UICollectionView使用
查看>>
电蚊拍选购参考
查看>>
数据结构_Python语言描述(英)pdf
查看>>