Book demo
Start trial
Book demo
Start trial

The LEAP

Automation insights and productivity tips from LEAPWORK.

All Posts

How to Automate Date and Time Testing

Dates and timestamps are important in most test automation scenarios. For instance, when testing user sign-up flows, entering a birthday or social security number is often required. Or when validating expiration dates during web content testing, generating a date/time value exactly one week from today might be needed.

Working with dates and timestamps in LEAPWORK is very easy and flexible, using the Generate date/time, Offset date/time and Set date/time building blocks. Here's a simple example of how to get today's date and then add one year to it:

Get today's date and offset by a year using LEAPWORK

Below is another example in LEAPWORK, which generates a date that is the first day of a random month in the year 2016:

Get first day of a random month in the year 2016 using LEAPWORK

Everything you need for codeless test automation

Learn more about codeless test automation in our guide to reducing risk, lowering costs, and driving value with test automation.

Read the LEAPWORK Guide to intelligent test automation

Claus Topholt
Claus Topholt
CTO and co-founder of LEAPWORK.

Related Posts

Test Automation Frameworks: Why They Fail

Test automation frameworks are basically recipes for how to build automated test cases. They include guidelines for testers on how they should do their job. The problem is, these frameworks don’t always work, as they tend to complicate test automation more than necessary.

7 Benefits of Codeless Test Automation

So far, automation frameworks and tools have dictated that testers should waste time programming. Codeless test automation is a much more efficient way for testers to work. Here's why.

How to Lower Data Migration Risks with UI Automation

Data migration efforts in enterprises are often done manually - or not at all, because it's too risky. Learn how UI automation can help solve some of your data migration issues.