You are on page 1of 1

Exercise 5 - Dynamic dates

Objective
By the end of this exercise, you will be able to set Tosca to automatically enter dynamic dates in the “Payment info” Credit card
TestStep.

Why is this important?


TestCases will be run repeatedly over long periods of time. Setting dynamic dates means there is less maintenance due to
checking/amending dates.

Instructions

1. Duplicate TestCaseFolder “4b Random Values” and name it “5 Dynamic Dates”.


Within the TestStep “Payment information Credit Card” enter the correct syntax to:
• Generate a dynamic date in the Expiration date | Month field. The date should be plus 4 months,
2. displayed as only a 2-digit month
• Generate a dynamic date in the Expiration date | Year field. The date should be plus 3 years,
displayed as only a 4-digit year

Hints
»» Pay close attention to closing any bracket that you open.

17

You might also like