Contributions
Re: Parsing a date in groovy.
I think you are misunderstanding the question. I accepted the answer on Parsing the date and formatting. However I have seen a instance where on successful parsing its changing the year on the result, So my second question is why is the results adding a year. Hence opened up a new question.30KViews0likes1CommentRe: Parsing a date in groovy.
Not sure why the behavior is so strange in Parsing.. I have code like this //capturing date from response before date parse def bday =jsonResponse.Demographics.BirthDate log.info "Response date Before Date Parse "+bday //Parsing the date from response above def newDate= Date.parse("yyyy-MM-dd'T'HH:mm:ss", bday).format('MM/dd/YYYY') log.info "Response Date"+newDate Output : Response date Before Date Parse 1971-12-28T00:00:00 Response Date12/28/1972 ---??? WHY IS THIS DATE ADDING A EXTRA year?30KViews0likes4CommentsAssertions for via Store Proc Execution
hi All i want to Validate a response values which i have parsed and stored in a variable. In a separate method I want to return the values executed by a stored proc. How does one execute a store proc in groovy is this correct public def getSPvalues(def database,def cid, def eid) { def query ="exec <ProcName>@ViewedCompanyId= '$cid', @ViewedEmployeeId='$eid', 0, 1, 1 " return query } Note: using the free version of soap ui Can Anyone help with correct syntax?491Views0likes0Comments- 30KViews0likes0Comments
Re: Parsing a date in groovy.
on doing the below def bday =jsonResponse.Demographics.BirthDate log.info "bday"+bday def newDate= Date.parse("yyyy-MM-dd'T'HH:mm:ss", bday).format('MM/DD/YYYY') log.info "dattttte"+newDate Am getting the Wrong date like this Wed May 11 08:52:50 CDT 2016:INFO:dattttte02/43/1972 not sure where the 43 is coming from ?30KViews0likes2CommentsParsing a date in groovy.
I have a response with a date just like this BirthDate": "1972-02-12T00:00:00" i want to get to date like this02/12/1972 How can i do that?. So far I have tried def bday =jsonResponse.Demographics.BirthDate log.info "bday"+bday def formatter = new SimpleDateFormat(); Date date = formatter.parse(bday); am getting a error saying "unparseable date" can anyone helpSolved31KViews0likes11CommentsIssue with running SOAP UI free next to SOAP UI Pro
need to have both versions running at the same time . However seems like when you have them run side by side same project loads up in both version without opening the project in both. Also when saving get a override warning. Is this normal?. how can this be avoided?. I havent delebrately opened the same project in both versions.9 years agoPlace ReadyAPI QuestionsReadyAPI Questions793Views0likes1CommentRe: Setting Properties off of groovy assertion script
Can you use messageExchange.modelItem.testStep.testCase.setPropertyValue( "My property", "The new value" ) to get properties back to next request and next assertion of the response?9 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.7KViews0likes1Comment- 9 years agoPlace ReadyAPI QuestionsReadyAPI Questions6.4KViews0likes0Comments