botium-cli
botium-cli copied to clipboard
How to use date expressions in botium?
Hi @codeforequity-at ,
We are using $today for the current date in botium. Is there a way we can retrieve yesterday's date or tomorrow's date? Is it possible to use $today+1 or -1 ?
Thank you, Ram
You will have to use the $func(some javascript code) placeholder to run some javascript code for this
We added some additional scripting functions in the latest build
https://botium-docs.readthedocs.io/en/latest/05_botiumscript/index.html#list-of-functions
$yesterday
$tomorrow
$date_add(1, “day”, YYYY.MM.DD)
Thank you for adding this feature, @codeforequity-at !