0

I am trying to copy one file from one directory to another directory using Telnet Server. Can we do this in Jmeter. I am using Beanshell Sampler for that. Please anyone guide me on this.

Thanks in advance, Anto

user28
  • 249
  • 2
  • 7
  • 20

1 Answers1

1

Anto, no you can't do that with Beanshell sampler. I do not know about telnet but you can do this with SSH.

You do however have the SSHSampler:

So after you've filled in connection details, there is execute tab at the bottom with command so you can write inside cp /path/to/dir1/file /path/to/dir2

Aliaksandr Belik
  • 12,725
  • 6
  • 64
  • 90
ant
  • 22,634
  • 36
  • 132
  • 182
  • Thanks Ant. Please tell me the usage of Beanshell Sampler. If we use java code, what are the modifications we should do in the Beanshell Sampler? – user28 Jun 28 '12 at 05:02
  • @Anto you need not to modify anything, paste the java code and I'll take a look at it – ant Jun 28 '12 at 10:29