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.

 

CTA-StartTrial-2

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

Related Posts

Technical Post: Big Performance Improvement in Data Serialization

Usually, in this blog, we tend to look at the LEAPWORK Automation Platform from a user perspective. We talk about how to automate different kinds of work processes and we also give you a few tips and tricks every now and then. However, we’ve recently made some changes to the core engine, so we thought it would be interesting to look into the engine room for a change. Buckle up because we’re about to get a little technical.

Collaboration in Agile Teams: Codeless Automation For All

In order to improve testing processes and transform them into an efficient and cost-effective part of software development, companies are introducing concepts such as agile, DevOps, or BDD in their teams. The rising adoption of these frameworks is slowly shrinking the gap between IT and business, allowing for more collaboration and continuous delivery. In order to facilitate this collaboration, automation has been brought into play.

Introduction to Behavior Driven Development

In a traditional software development process, developers write programs and build features, and testers then test the written pieces of software. However, businesses are now operating at a faster pace and, therefore, software development needs to keep up with business demands.