Skip to main content



      Home
Home » Archived » Jubula » Get current time
Get current time [message #1120961] Mon, 30 September 2013 01:57 Go to next message
Eclipse UserFriend
Hi Guys,

Is there any way to get the current time in Jubula and store it in a variable ?


Appreciate your help

Thanks,
Bhupendra
Re: Get current time [message #1120992 is a reply to message #1120961] Mon, 30 September 2013 02:41 Go to previous messageGo to next message
Eclipse UserFriend
You can use a function.
?now()
seems a perfect fit. See chapter 3.12.5 and 3.12.6 in the User Manual for details.

- Achim
Re: Get current time [message #1121254 is a reply to message #1120992] Mon, 30 September 2013 08:31 Go to previous messageGo to next message
Eclipse UserFriend
Hi Achim,

Thanks for the reply, the function now() seems to be only having support for date viz. day, month and year

http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jubula.client.ua.help%2Fhtml%2Fmanual%2Fnode128.html

Didn't got any example which will give time (hour/minutes/seconds), will you be able to add here; how to parse the time as well ??


Thanks,
Bhupendra
Re: Get current time [message #1121996 is a reply to message #1121254] Tue, 01 October 2013 02:09 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

there's no function to do that right now - but you can add your own (the how to is written in the extension manual).

Best regards,
Alex
Re: Get current time [message #1122012 is a reply to message #1121996] Tue, 01 October 2013 02:30 Go to previous message
Eclipse UserFriend
Well, just below the description of ?now() (in the link you posted) there is ?formatDate(). In the chapters I mentioned are several examples to work with various combinations of build-in functions. And if that doesn't fit your needs you can always add your own function (like Alex said).

- Achim
Previous Topic:Jubula failed to locate menu bar when executing test on Linux
Next Topic:Using stored values as Test Data of other TCs
Goto Forum:
  


Current Time: Tue Jul 15 23:07:19 EDT 2025

Powered by FUDForum. Page generated in 0.08538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top