Forum Discussion

hcalinga's avatar
hcalinga
Visitor
2 months ago

SFTP PUT to remote directory in ReadyAPI

I am trying to figure it out how to do SFTP PUT using Groovy scripts in ReadyAPI but to no avail haven't work for me yet.

Have search thru community and found some examples but doesn't work. I am not expert in Groovy scripting nor any programming language.

But just wanted to ask here if we have a sample SFTP PUT Groovy script where I can try, notice also that the remote doesn't accept password, it might be encrypted.

  • nmrao's avatar
    nmrao
    Champion Level 3

    You can try to use below library to achieve the same.

    http://www.jcraft.com/jsch/