Forum Discussion
you won't believe this -but its true.
I edited the file again -essentially overwriting all the paths as they currently appear - so literally - I replaced 'SyncVenue' with 'SyncVenue'.
I commented out the last part (the most recent changes msiadak had made, so I was going to the script msiadak had provided me with yesterday).
Issue no longer manifests!
I uncommented the additional lines (here they are commented out)
//def porps = context.testCase.testSteps["porps"]; //porps.setPropertyValue("Test", errorCount.toString()); // If success exists, that means there's a VenueID to use // Find the venue id via Xpath, store to properties step //if (successExists) //{ // def syncID = (holder["//Responses/VenueSyncSuccesses/VenueSyncSuccess/@VenueID"]) // def propertiesStep = context.testCase.testSteps["Properties"]; //propertiesStep.setPropertyValue("VenueID", syncID); //}
Once I'd uncommented out the lines - the error warning occurred again.
I replaced the commented section - I typed out the commented section line by line (leaving the commented lines in so I could copy them) - ran the debug
No error response!
this is so annoying - I still cant see any problems - I'm not a groovy coder so I've literally copied out the lines verbatim and it now works!
Many thanks to msiadak for putting in all the extra effort spoon feeding me to get me sorted!
richie
richie
Glad you got it worked. My guess is that pasting the code here can inject a sort of newline character that ReadyAPI can't handle. Crazy, but it does not surprise me.
Related Content
- 4 years agomehdisinger
- 2 months agoStoplight
- 3 years agoprekar