JMeter 3.3\uuuRandomDate(无参数)在函数助手对话框中引发异常

JMeter 3.3\uuuRandomDate(无参数)在函数助手对话框中引发异常,jmeter,Jmeter,我使用JMeter 3.3,打开函数助手并尝试新函数,单击Generate并得到一个错误(其他函数正在工作) 在测试计划中调用时,${uuuu RandomDate(,2017-01-012018-01-01,,)}可以工作,但在函数助手中单击“生成”时,它会忽略输入字段并使用不带任何值的函数 2017-09-25 08:44:30,112 ERROR o.a.j.f.RandomDate: Failed to parse the date '' to shift with formatter

我使用JMeter 3.3,打开函数助手并尝试新函数,单击Generate并得到一个错误(其他函数正在工作)

在测试计划中调用时,${uuuu RandomDate(,2017-01-012018-01-01,,)}可以工作,但在函数助手中单击“生成”时,它会忽略输入字段并使用不带任何值的函数

2017-09-25 08:44:30,112 ERROR o.a.j.f.RandomDate: Failed to parse the date '' to shift with formatter 'Value(YearOfEra,4,19,EXCEEDS_PAD)'-'Value(MonthOfYear,2)'-'Value(DayOfMonth,2)java.time.format.DateTimeFormatterBuilder$DefaultValueParser@6426866cjava.time.format.DateTimeFormatterBuilder$DefaultValueParser@4b46653bjava.time.format.DateTimeFormatterBuilder$DefaultValueParser@108462fd'
java.time.format.DateTimeParseException: Text '' could not be parsed at index 0
    at java.time.format.DateTimeFormatter.parseResolved0(Unknown Source) ~[?:1.8.0_144]
    at java.time.format.DateTimeFormatter.parse(Unknown Source) ~[?:1.8.0_144]
    at java.time.LocalDate.parse(Unknown Source) ~[?:1.8.0_144]
    at org.apache.jmeter.functions.RandomDate.execute(RandomDate.java:189) [ApacheJMeter_functions.jar:3.3 r1808647]
    at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:137) [ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:112) [ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.functions.gui.FunctionHelper.actionPerformed(FunctionHelper.java:181) [ApacheJMeter_core.jar:3.3 r1808647]
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) [?:1.8.0_144]
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) [?:1.8.0_144]
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) [?:1.8.0_144]
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source) [?:1.8.0_144]
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) [?:1.8.0_144]
    at java.awt.Component.processMouseEvent(Unknown Source) [?:1.8.0_144]
    at javax.swing.JComponent.processMouseEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.Component.processEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.Container.processEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.Component.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
    at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
    at java.awt.Component.dispatchEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.Container.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
    at java.awt.Window.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
    at java.awt.Component.dispatchEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [?:1.8.0_144]
    at java.awt.EventQueue.access$500(Unknown Source) [?:1.8.0_144]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_144]
    at java.awt.EventQueue$3.run(Unknown Source) [?:1.8.0_144]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
    at java.awt.EventQueue$4.run(Unknown Source) [?:1.8.0_144]
    at java.awt.EventQueue$4.run(Unknown Source) [?:1.8.0_144]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) [?:1.8.0_144]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_144]
2017-09-25 08:44:30,113 ERROR o.a.j.JMeter: Uncaught exception: 
java.lang.IllegalArgumentException: bound must be greater than origin
    at java.util.concurrent.ThreadLocalRandom.nextLong(Unknown Source) ~[?:1.8.0_144]
    at org.apache.jmeter.functions.RandomDate.execute(RandomDate.java:196) ~[ApacheJMeter_functions.jar:3.3 r1808647]
    at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:137) ~[ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.engine.util.CompoundVariable.execute(CompoundVariable.java:112) ~[ApacheJMeter_core.jar:3.3 r1808647]
    at org.apache.jmeter.functions.gui.FunctionHelper.actionPerformed(FunctionHelper.java:181) ~[ApacheJMeter_core.jar:3.3 r1808647]
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) ~[?:1.8.0_144]
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) ~[?:1.8.0_144]
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) ~[?:1.8.0_144]
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source) ~[?:1.8.0_144]
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Component.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
    at javax.swing.JComponent.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Component.processEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Container.processEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Component.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Container.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Window.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
    at java.awt.Component.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventQueue.access$500(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventQueue$3.run(Unknown Source) ~[?:1.8.0_144]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventQueue$4.run(Unknown Source) ~[?:1.8.0_144]
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_144]
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventQueue.dispatchEvent(Unknown Source) ~[?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [?:1.8.0_144]
    at java.awt.EventDispatchThread.run(Unknown Source) [?:1.8.0_144]
编辑


打开了。

您将收到一个错误,因为“结束日期”是必需的

从3.3开始,Generate做了另外一件事,即显示函数调用的结果

但由于您没有填写结束日期,它会失败,并显示您提到的错误消息

填写所需参数,并按照文件规定进行操作:

如您所见,需要结束日期


JMeter bug tracker在这里:单击Generate时打开了一个bug,它调用时没有任何参数(忽略输入字段),其他带有必填字段的函数“工作”或不抛出错误,如${uu属性(,)}。只是当缺少参数时,其他函数会自动失败,通常情况下是{uu属性