Working with the Dates :
It is very common to work with dates in part of our automation testing,Generally we come across the following requirements:
- Getting the current System date in various formats
- Getting the previous dates in various formats
- Getting the future dates in various formats
This post will make easier the things.
Steps to follow:
- Download the jar file from https://drive.google.com/file/d/0B9ZTXXKTZAYVUGZ5d0loWUNhMlk/edit?usp=sharing
- Add the ‘testUtils.jar’ (I will provide the .Jar file ) file to your project class path, Import the following class in your Test.java file
-
Import com.webdriver.framework.*; (If it’s not already imported)
