I need to insert the current date into XML file. Is there an opportunity to generate the current date? Data Generator doesn't allow that.
Go to Solution.
try using following code.
TimeZone.setDefault(TimeZone.getTimeZone('EST'))def now = new Date();def ExecutionStartDate = now.format("yyyy-MM-dd hh:mm:ss.SSS")
Note that you can change the timezone and date format as you need.
View solution in original post
You can do it in a Groovy script then set the date to a custom property. You should then easily be able to insert into your XML
Gurunath, thank you for you reply!
I have one question to you. Where can I insert that code to be able to use variable ExecutionStartDate in my XML script?