jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 62403] timeShift always takes current date even if the 'Date to shift' parameter is specified
Date Thu, 24 May 2018 11:27:02 GMT

Valentine Petrovsky <> changed:

           What    |Removed                     |Added
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Valentine Petrovsky <> ---
Found why a test was not passed in JMeter 3.3. 

In org.apache.jmeter.functions.TestTimeShiftFunction class:

JMeter 3.3:
Collection<CompoundVariable> params = makeParams("YYYY-MMMM-dd",
"2017-juillet-01", "P1D", "fr_FR", "");
Collection<CompoundVariable> params = makeParams("yyyy-MMMM-dd",
"2017-juillet-01", "P1D", "fr_FR", "");

Note the difference for year format: YYYY vs yyyy. The first stands for so
called week year. I did't dig into details, but it works correctly when current
year is equal to the year in function argument. This is why the test had been
passing in 2017.

Thus, it was a JUnit test problem - not of the function code. And my example in
description is mistaken since it contains single quotes in the second argument.

You are receiving this mail because:
You are the assignee for the bug.
View raw message