(Apologies if my terminology is wrong. I’m still an automation newbie.)
I’m trying to validate date and time displayed in our app against the date and time entered by the user, and it looks like this DateTimeUtility is my ticket. The problem is, I can’t figure out for the life of me how to import it to my custom keyword. I’ve tried putting in import com.kms.katalon.keyword.datetime.DateTimeUtility, but I just get an error that says “unable to resolve.” Can anyone help me understand how to use this?
I think that DateTime Keyword is not designed to help validating Date-Time type of data. For example, it does not provide any method to compare 2 Date-Time instances to see if A is before B or not. I would rather suggest you to look at the Standard java.time API.
The following post of mine describes how to use the java.time package for date-time verification.