LostInSpace
4 years agoNew Contributor
Previously working test no longer works...
Hi! I have been asked to run a ReadyAPI test that was last run about a year ago. I am now getting this groovy error when I try to run it: startup failed:
Script3.groovy: 1: Unexpected...
- 4 years ago
There are changes in data time libraries from Jdk 8.
Try something like below:
{ "date": "${= import java.time.LocalDate; import java.time.format.DateTimeFormatter; LocalDate.from(LocalDate.parse('2021/03/01', DateTimeFormatter.ofPattern('yyyy/MM/dd'))).minusYears(58)}" }