Year Addition
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a pre-built action in Avo Assure which is Located under the @Generic element category. It instructs the Avo Assure Client to add the given year with the with the year count and save the results in the output variable.
Input: <date>; <number of Years>; <current date format>
Supported date formats:
dd/MM/yyyy
MM/dd/yyyy
MMM/dd/yyyy
dd/MMM/yyyy
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)
Consider a scenario where you are testing a subscription management system where. You can renew your annual subscription, and the new expiry date needs to be calculated based on the number of years added to their current subscription. This scenario tests the functionality of a subscription renewal process where the subscription's expiry date is extended based on the selected renewal period. The renewal process should correctly add the specified duration (e.g., months or years) to the current expiry date and update the new expiry date accordingly. It ensures that the application correctly displays this new expiry date.
Current Expiry Date: 23/10/2024
Years to Add: 6
The system should calculate the new expiry date as 23/10/2030.
Store this resultant date in an output variable, such as {result}
.
The action performed and saves the resultant date in the {result} output variable as 23/10/2030.