0% found this document useful (0 votes)
72 views

Exercise 5 - Dynamic Dates: Objective

This document provides instructions for setting Tosca to automatically enter dynamic dates in the "Payment info" Credit card TestStep to reduce maintenance over time as TestCases are run repeatedly. Users are asked to duplicate an existing TestCaseFolder, name it "5 Dynamic Dates", and within the "Payment information Credit Card" TestStep, enter syntax to generate a dynamic expiration date 4 months in the future displayed as a 2-digit month, and generate a dynamic expiration year 3 years in the future displayed as a 4-digit year. Attention to closing brackets is noted as important.

Uploaded by

Anand
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views

Exercise 5 - Dynamic Dates: Objective

This document provides instructions for setting Tosca to automatically enter dynamic dates in the "Payment info" Credit card TestStep to reduce maintenance over time as TestCases are run repeatedly. Users are asked to duplicate an existing TestCaseFolder, name it "5 Dynamic Dates", and within the "Payment information Credit Card" TestStep, enter syntax to generate a dynamic expiration date 4 months in the future displayed as a 2-digit month, and generate a dynamic expiration year 3 years in the future displayed as a 4-digit year. Attention to closing brackets is noted as important.

Uploaded by

Anand
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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