Contributions
Re: How to move file from local drive to server in putty using groovy script?
Hi, I am trying to write test script for below scenario in SoapUI Pro 5.1.2 using groovy script. Scenario: 1.Login to server through putty. 2.Provide username and password. 3.give command (ssh 005eisst@msgt.eeaid.eeinit.cio.uk) 4.give command (cd path) 5.paste a file from desktop to this path. I was thinking to use ChannelSftp class as it already has put(InputStream src, String dst) inbuilt method to move file from source to destination but i am not able to give command (ssh 005eisst@msgt.eeaid.eeinit.cio.uk) using this class. I also tried using ChannelExec class but even then i was not able to execute above scenario. Can someone please provide any solution, how to write script for this scenario. Thanks, Ashish8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1CommentHow to move file from local drive to server in putty using groovy script?
Hi, I am trying to write test script for below scenario in SoapUI Pro 5.1.2 using groovy script. Scenario: 1.Login to server through putty. 2.Provide username and password. 3.give command (ssh 005eisst@msgt.eeaid.eeinit.cio.uk) 4.give command (cd path) 5.paste a file from desktop to this path. I was thinking to use ChannelSftp class as it already has put(InputStream src, String dst) inbuilt method to move file from source to destination but i am not able to give command (ssh 005eisst@msgt.eeaid.eeinit.cio.uk) using this class. I also tried using ChannelExec class but even then i was not able to execute above scenario. Can someone please provide any solution, how to write script for this scenario. Thanks, Ashish8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes2Comments