Ask a Question

Data Sink - "java.lang.Exception: Failed to prepare the step [DataSink]" when run through Jenkins

Pravin01
New Contributor

Data Sink - "java.lang.Exception: Failed to prepare the step [DataSink]" when run through Jenkins

Hi,

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.

 

Please advise.

 

Thank You.

 

5 REPLIES 5
Pravin01
New Contributor

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.

TanyaYatskovska
SmartBear Alumni (Retired)

Hi @Pravin01,

 

It looks like this question requires a deep investigation. Could you please contact our Support Team for this?

http://support.smartbear.com/message/?prod=ReadyAPI

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Thank You Tanya for your reply, sure will do that.

 

Best Regards,

Pravin

TanyaYatskovska
SmartBear Alumni (Retired)

Hi Pravin,

 

Thanks! Please share the solution with us once you find it together with the Support Team.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



Hi Tanya,

I got following reply from "SmartBear Customer Care <customercare@smartbear.com>" :

 

"Development has investigated this and opened defect RIA-10137 for this issue.  They have given the below workarounds.

 

 

  1. Move Groovy Script test step to another test case that should be executed before current test case.
  2. Create a custom property in the test case and set up value for it by Setup Script of a test case.

In both cases need to update property expansion in a DataSink test step.

 

cancel
Showing results for 
Search instead for 
Did you mean: