I am using file path from groovy script instead of hardcoding it in data sink output folder, since I have multiple environment and I can not hard code output file to avoid overwriting same file again and again.
It works fine when I ran locally. But it fails when I run through Jenkins. Please see attached screen shot for my test and jenkins error.
I am using ReadyAPI2.3.0. All other projects where sink data file is hard coded working from thorugh Jenkins.
Error occurs even when I run Test in Ready API. Its clearly data sink step issue.
I am just feeding grovvy script result (which return file path based on env. selected) to data sink instead of hardcoded file path. When I debug groovy script step PASS but data sink fails.
Please see attached three screen shots to get clear idea of what I did and the error I am getting.
Appreciate any help to resolve this issue.
Thanks in advance.
It looks like this question requires a deep investigation. Could you please contact our Support Team for this?
Thank You Tanya for your reply, sure will do that.
Thanks! Please share the solution with us once you find it together with the Support Team.
I got following reply from "SmartBear Customer Care <email@example.com>" :
"Development has investigated this and opened defect RIA-10137 for this issue. They have given the below workarounds.
In both cases need to update property expansion in a DataSink test step.