Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jenkins失败生成:内部错误:未处理的kpi类型与性能插件_Jenkins_Jmeter_Performance Testing - Fatal编程技术网

Jenkins失败生成:内部错误:未处理的kpi类型与性能插件

Jenkins失败生成:内部错误:未处理的kpi类型与性能插件,jenkins,jmeter,performance-testing,Jenkins,Jmeter,Performance Testing,我正在用性能插件运行Jenkins。 我有一个在jenkins上运行的多个JMeter jmx脚本,我正在尝试添加这个脚本。但是构建总是失败的。带着这个信息 Internal Error: Unhandled kpi type: <type 'long'> 内部错误:未处理的kpi类型: bzt安装也已完成。 我似乎在谷歌上找不到太多关于这个的信息。有什么帮助吗 关机后,我得到了以下信息: 19:42:27 INFO: Shutting down... 19:42:27 INF

我正在用性能插件运行Jenkins。 我有一个在jenkins上运行的多个JMeter jmx脚本,我正在尝试添加这个脚本。但是构建总是失败的。带着这个信息

 Internal Error: Unhandled kpi type: <type 'long'>
内部错误:未处理的kpi类型:
bzt安装也已完成。
我似乎在谷歌上找不到太多关于这个的信息。有什么帮助吗

关机后,我得到了以下信息:

19:42:27 INFO: Shutting down...
19:42:27 INFO: Post-processing...
19:42:29 INFO: Test duration: 0:47:04
19:42:29 INFO: Samples count: 3200, 3.25% failures
19:42:29 INFO: Average times: total 4.369, latency 0.000, connect 0.000
19:42:29 INFO: Percentiles:
+---------------+---------------+
| Percentile, % | Resp. Time, s |
+---------------+---------------+
|           0.0 |         0.258 |
|          50.0 |         3.251 |
|          90.0 |         8.799 |
|          95.0 |        14.375 |
|          99.0 |        24.239 |
|          99.9 |        30.031 |
|         100.0 |        35.743 |
+---------------+---------------+
19:42:29 INFO: Request label stats:
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
| label                | status |   succ | avg_rt | error                                                               |
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
| Click_ToonSelectie   |  FAIL  | 94.00% |  4.984 | Number of samples in transaction : 4, number of failing samples : 1 |
|                      |        |        |        | Non HTTP response message: Connection timed out: connect            |
|                      |        |        |        | Not Modified                                                        |
| FilterBrand          |  FAIL  | 99.00% |  0.832 | Number of samples in transaction : 1, number of failing samples : 1 |
| LoadFilterPage       |  FAIL  | 96.00% |  6.306 | Non HTTP response message: Connection timed out: connect            |
|                      |        |        |        | Number of samples in transaction : 3, number of failing samples : 1 |
| OpenRandomCarDetails |  FAIL  | 96.00% |  5.355 | Number of samples in transaction : 1, number of failing samples : 1 |
|                      |        |        |        | Moved Permanently                                                   |
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
19:42:29 INFO: Request label stats:
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
| label                | status |   succ | avg_rt | error                                                               |
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
| Click_ToonSelectie   |  FAIL  | 94.00% |  4.984 | Number of samples in transaction : 4, number of failing samples : 1 |
|                      |        |        |        | Non HTTP response message: Connection timed out: connect            |
|                      |        |        |        | Not Modified                                                        |
| FilterBrand          |  FAIL  | 99.00% |  0.832 | Number of samples in transaction : 1, number of failing samples : 1 |
| LoadFilterPage       |  FAIL  | 96.00% |  6.306 | Non HTTP response message: Connection timed out: connect            |
|                      |        |        |        | Number of samples in transaction : 3, number of failing samples : 1 |
| OpenRandomCarDetails |  FAIL  | 96.00% |  5.355 | Number of samples in transaction : 1, number of failing samples : 1 |
|                      |        |        |        | Moved Permanently                                                   |
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
19:42:29 INFO: Dumping final status as XML: aggregate-results.xml
19:42:29 ERROR: Internal Error: Unhandled kpi type: <type 'long'>
19:42:29 INFO: Artifacts dir: C:\Users\Kristof\.jenkins\workspace\ACC-Tweedehands\2018-07-19_18-55-13.298000
19:42:29 WARNING: Done performing with code: 1
Build step 'Run Performance Test' changed build result to FAILURE
Finished: FAILURE
19:42:27信息:正在关闭。。。
19:42:27信息:后处理。。。
19:42:29信息:测试持续时间:0:47:04
19:42:29信息:样本数:3200,3.25%失败
19:42:29信息:平均次数:总计4.369次,延迟0.000次,连接0.000次
19:42:29信息:百分位数:
+---------------+---------------+
|百分位,%|分别为。时间,s|
+---------------+---------------+
|           0.0 |         0.258 |
|          50.0 |         3.251 |
|          90.0 |         8.799 |
|          95.0 |        14.375 |
|          99.0 |        24.239 |
|          99.9 |        30.031 |
|         100.0 |        35.743 |
+---------------+---------------+
19:42:29信息:请求标签统计信息:
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
|标签|状态|成功|平均|错误|
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
|单击|选择|失败| 94.00%| 4.984 |事务中的样本数:4,失败样本数:1|
|| | | |非HTTP响应消息:连接超时:连接|
|| | | |未修改|
|FilterBrand | FAIL | 99.00%| 0.832 |事务中的样本数:1,失败样本数:1|
|LoadFilterPage | FAIL | 96.00%| 6.306 |非HTTP响应消息:连接超时:连接|
|| | | |事务中的样本数:3,失败样本数:1|
|OpenRandomCardDetails |失败| 96.00%| 5.355 |事务中的样本数:1,失败样本数:1|
|| | | |永久移动|
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
19:42:29信息:请求标签统计信息:
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
|标签|状态|成功|平均|错误|
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
|单击|选择|失败| 94.00%| 4.984 |事务中的样本数:4,失败样本数:1|
|| | | |非HTTP响应消息:连接超时:连接|
|| | | |未修改|
|FilterBrand | FAIL | 99.00%| 0.832 |事务中的样本数:1,失败样本数:1|
|LoadFilterPage | FAIL | 96.00%| 6.306 |非HTTP响应消息:连接超时:连接|
|| | | |事务中的样本数:3,失败样本数:1|
|OpenRandomCardDetails |失败| 96.00%| 5.355 |事务中的样本数:1,失败样本数:1|
|| | | |永久移动|
+----------------------+--------+--------+--------+---------------------------------------------------------------------+
19:42:29信息:转储最终状态为XML:aggregate-results.XML
19:42:29错误:内部错误:未处理的kpi类型:
19:42:29信息:工件目录:C:\Users\Kristof\.jenkins\workspace\ACC Tweedehands\2018-07-1918-55-13.298000
19:42:29警告:已完成对代码1的执行
生成步骤“运行性能测试”将生成结果更改为失败
完成:失败
JTL的前两行:

<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">

如果您使用的是Taurus工具,我的期望是您应该提供
kpi.jtl
CSV文件,而不是XML格式的.jtl结果文件

我无法使用Taurus和最新版本的正常
kpi.jtl
结果文件再现您的问题

我都无法复制您的问题,我的输出完全不同:

Started by user anonymous
Building on master in workspace /Users/jenkins/Projects/temp/Jenkins/.jenkins/workspace/Taurus
Performance: Recording JMeterCsv reports '/Users/jenkins/Projects/temp/Jenkins/.jenkins/jobs/Taurus/builds/2/temp/kpi.jtl'
Performance: Parsing JMeter report file '/Users/jenkins/Projects/temp/Jenkins/.jenkins/jobs/Taurus/builds/2/performance-reports/JMeterCSV/kpi.jtl'.
Performance: No threshold configured for making the test unstable
Performance: No threshold configured for making the test failure
Performance: File kpi.jtl reported 0.0% of errors [SUCCESS]. Build status is: SUCCESS
Finished: SUCCESS

请参阅文章中的综合信息和说明,以备不时之需

如果看不到您的.jtl结果的前两行,我们将无能为力file@DmitriT添加它们!它适用于我的9个脚本,而这一个不适用,所以我不知道发生这种情况的另一个原因是什么?