Best Solutions: How to Handle Epoch/UNIX Dynamic Timestamps in NeoLoad


Many web applications use Epoch/UNIX dynamic timestamp values for validation and session info. When NeoLoad records a User Path, it marks the current value and timestamp. When replayed, these values and timestamps might be out of date and invalid, causing the User Path to fail in different ways, like a 401 Unauthorized, 403 Forbidden, or even 500 Internal Error, and causing the current iteration to fail.

There is no automatic way to handle this yet within NeoLoad, but to manually handle it is not too hard through creating a variable and using the Search and Replace feature. The value might be in the form of 1514813730000, which would convert to Monday, January 1, 2018, at 8:35:30 AM Eastern US time zone (EST). This is the amount of time in milliseconds since January 1, 1970. Many Unix systems store epoch/UNIX dates as a signed 32-bit integer, which might cause problems on January 19, 2038 (known as the Year 2038 problem or Y2038).

The Best Solutions for you to Consider

  1. Create a NeoLoad variable based on the “Current Date” type and use the pattern “CurrentTimeMillis” for the Epoch/UNIX time. Save it with an easy to reference name.
  2. Do a Search and Replace (Control-F) for all values that might match (the first option, search globally), using Regular Expression (Check the box in Search and Replace window). In the Search field, use the following expression (value is from the above example, your value might differ):


… alternatively, this syntax works as well as “15148\d{8}.” [0-9] is a wildcard, and \d represents any numerical value in its place. {x} means to repeat this pattern x times.

In the replace box, put the name of the Current Date variable you created from Step #1. Click Next and Finish. Use Replace ALL when searching, and you should find all the occurrences at once.

Next Steps: Review Documentation or Talk to Us

  • Check out all of the content included within NeoLoad documentation.
  • Want to discuss further, contact support.

Learn More about Performance Testing & Load Testing

Discover more load testing and performance testing content on the Neotys Resources pages, or download the latest version of NeoLoad and start testing today.

Leave a Reply

Your email address will not be published. Required fields are marked *