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.
Combo-Session: 30-minute Talk & 75-minute Workshop