"SET_DATE" Command

Description: This command generates a date/time with a format you specify and stores it in a variable
Usage Scenario: Suppose we want to add a date and time in Resume field to indicate when the profile was last updated.

Procedure: Define your Set_Date step, enter a variable name and specify your format "yyyy-MM-dd - hh:mm:ss". Define another step with Fill command and define a locator for Resume field. Once finished, use the variable in your Fill command. Your steps will look like this:

Set_Date step:

image-20240223-115806.png

Fill Step:

image-20240223-115837.png

See the Test Library path: subject7_samples/subject7_advanced_suite/subject7_modify_profile_information

The video following video demonstrates how a date/time is generated from the system as well as a comparison between two dates/times as part of execution of “subject7_modify_profile_information” test case in “subject7_samples” folder. Note that the profile page does not show any date/time added, so one was added as a simulation for the purpose of the video.