botium-cli icon indicating copy to clipboard operation
botium-cli copied to clipboard

How to use date expressions in botium?

Open ram-d opened this issue 2 years ago • 1 comments

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

ram-d avatar Sep 11 '22 11:09 ram-d

You will have to use the $func(some javascript code) placeholder to run some javascript code for this

codeforequity-at avatar Sep 14 '22 13:09 codeforequity-at

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)

codeforequity-at avatar Oct 06 '22 10:10 codeforequity-at

Thank you for adding this feature, @codeforequity-at !

ram-d avatar Oct 10 '22 15:10 ram-d