I want to verify if the year is leap year in Tosca to do some further validations , can anyone please help
Easiest way is probably to use a Powershell command to determine whether the year is a leap year. You can use TBox Start Program to run the command and output the result to the clipboard, and then you can buffer it from the clipboard.
There are several knowledge base articlesĀ on the Tricentis support site with examples of how to use Powershell commands like this in ToscaĀ (and there should be some previous postsĀ on this forum as well).
From a quick Google search it looks like the command itself is very simple (and just returns āTrueā or āFalseā):
[datetime]::IsLeapYear(2024)
Reply
Login to the community
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.