Forum Discussion
Cizo89
11 years agoFrequent Contributor
Hi,
to get a system date and time, try this script, it should work for you (you can change the format to fit your requirements):
If you need to store this timestamp after a TestStep is submitted, I'd suggest that SubmitListener.afterSubmit event handler would be perfect for you.
In case of any further questions, feel free to ask
Regards,
Marek
to get a system date and time, try this script, it should work for you (you can change the format to fit your requirements):
def date = new java.text.SimpleDateFormat("dd/MM/yyyy HH:mm:SS")
date.format(new Date())
If you need to store this timestamp after a TestStep is submitted, I'd suggest that SubmitListener.afterSubmit event handler would be perfect for you.
In case of any further questions, feel free to ask
Regards,
Marek
Related Content
- 6 years ago
- 2 months ago
- 9 years ago
Recent Discussions
- 9 days ago