Get Current Date
Last updated
Was this helpful?
Last updated
Was this helpful?
Description and Usage: This is a pre-built action in Avo Assure which is Located under the @Generic element category. It instructs the Avo Assure Client to fetch the current date from the system and store the result in the output variable.
Syntax:
Input: <format of date>
Supported input Formats:
a) dd/MMM/yyyy
b) MMM/dd/yyyy
c) dd/MM/yyyy
d) MM/dd/yyyy
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)
Use case/Example:
Scenario: Expiry Date Validation for Subscriptions
Consider a scenario where an Each subscription has a start date and an expiry date. They need to ensure that the application correctly identifies whether a subscription is active based on the current date. It Validate that a subscription is marked as active when the current date falls within the subscription period. The status validation ensures that the application accurately identifies whether a subscription is active based on the current date. The system should provide clear feedback on the subscription status to the user.
Verify the current date to a date within the subscription period.
Check the subscription status.
Expected Output: It should verify the dates and returns subscription status is Active.
Output: The action performed and saves the current date in the{result} output variable as 10/10/2024.
This is a pre-built action in Avo Assure which is located under the @Generic element category. It instructs the Avo Assure Client to fetch the current date and time from the system according to the format specified by the user in the input value and subsequently store the result in the output variable.
Input: <format of date and time>
Supported Input Formats:
1. MM/dd/yyyy HH:mm:ss
2. dd/MM/yyyy HH:mm:ss
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)
Consider a scenario where you are testing an event registration system using which participants can sign up for events with specific start and end dates and timings. You need to ensure that the system validates registrations based on the current date and time and that they can register only for events that are open for registration. A Test Step can be created using the Get Current Date, Time to verify:
The current date and time to a moment before the event starts
Attempt to register for the event
Expected output: If the registration occurs at the correct date and time, then output should be Registration is successful.
Output: The Get Current Date, Time action is performed, and the current date and time are saves in the {result} output variable with the value as 10/10/2024 01:10:30 and is used for the registration system.