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 an 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

Try codeless date and time test automation today

Getting started with date and timestamp automation is quick and easy with LEAPWORK's no-code automation platform. All you need to do is start a free LEAPWORK trial, which you can sign up for below.

You can also learn more about codeless test automation in our guide to reducing risk, lowering costs, and driving value with test automation.CTA-StartTrial-2

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

Related Posts

DevOps Automation: 5 Steps Towards Continuous Delivery

Automation is a prerequisite for success with DevOps. Especially, test automation is a key ingredient when it comes to providing fast and accurate feedback to testers and developers which, in turn, enables quick reactions to errors, bugs, and changing requirements.

How to Create a DevOps CI/CD Pipeline (With Example)

A CI/CD pipeline aims to mitigate the risks involved in releasing the software into production. However, its efficiency relies heavily on automation, so achieving success with DevOps stands or falls with how well the development department works with automation and which tools are at their disposal.

The Basics of Automating Oracle - Test automation and RPA

Oracle is one of the largest enterprise software vendors in the world, providing global businesses with databases, ERPs and other solutions for core business processes to run on.