Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Get current time
Get current time [message #1120961] Mon, 30 September 2013 05:57 Go to next message
Bhupendra Mahajan is currently offline Bhupendra MahajanFriend
Messages: 33
Registered: September 2013
Member
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 06:41 Go to previous messageGo to next message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

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 12:31 Go to previous messageGo to next message
Bhupendra Mahajan is currently offline Bhupendra MahajanFriend
Messages: 33
Registered: September 2013
Member
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 06:09 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
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 06:30 Go to previous message
Achim Loerke is currently offline Achim LoerkeFriend
Messages: 376
Registered: July 2009
Location: Braunschweig, Germany
Senior Member

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: Wed Apr 24 18:41:56 GMT 2024

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

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

Back to the top