November 10 – 12, 2020

Online Edition!

Generating useful date and time values for your tests

Corina-Adina Pip

Generating dates in the future or in the past, grabbing specific dates based on some criteria, creating dates in specific formats, etc

Using Java's date focused classes

EUROPE'S GREATEST AGILE SOFTWARE TESTING FESTIVAL!

Generating useful date and time values for your tests

Many automated tests require setting a date or datetime, and these can be quite tricky to generate.Let me show you some examples of how to easily create them.

Working with dates and times in automated tests can be very difficult. You need to generate dates in different formats, or from different timezones. You need to generate yesterday’s date, or the date of the last day of the current month. How about the date of the previous Monday counting from the current date?

In case any of these are something you too need in your tests, this workshop will help you figure out how to generate these cumbersome date and time values. Staring: Java, LocalDate, LocalTime, LocalDateTime and SimpleDateFormat.


More Related Sessions


30-minute Talk

4:40 p.m. – 5:20 p.m.

30-minute Talk

3:45 p.m. – 4:25 p.m.

95-min Workshop

No Recording
1:45 p.m. – 3:20 p.m. Equipment required

150-min Workshop

No Recording
2:50 p.m. – 5:20 p.m. Equipment required

If you like AgileTD you might also be interested in :

Your privacy matters

We use cookies to understand how you use our site and to give you the best experience on our website. If you continue to use this site we will assume that you are happy with it and accept our use of cookies, Privacy Policy and Terms of Use.