Year Addition

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.

Syntax

Input Value: <date>; <number of Years>; <current date format>

Supported date formats:

  1. dd/MM/yyyy

  2. MM/dd/yyyy

  3. MMM/dd/yyyy

  4. dd/MMM/yyyy

Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)

Use case/Example

Scenario: Subscription Renewal

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.

Input

  • Current Expiry Date: 23/10/2024

  • Years to Add: 6

Expected Result

  • The system should calculate the new expiry date as 23/10/2030.

  • Store this resultant date in an output variable, such as {result}.

Output

The action performed and saves the resultant date in the {result} output variable as 23/10/2030.

Last updated

Was this helpful?