You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Remy Esclangon <Re...@sita.aero> on 2017/11/08 14:14:09 UTC

How to include SMB/CIFS tests in JMETER

Hi

Looking for a way to add to JMETER test plan, tests of users accessing network files (CIFS/SMB)

A call to a basic file copy command within JMETER would be enough..... if this call can be inserted in the test plan logic (ramp up, included within other users HTTP/S simulated activities...)

Anyone have experience in this ?

Thanks best regards

Rémy

Confidential Communication: The contents of this e-mail including any attachment are confidential and intended solely for the person(s) to whom they are addressed. Any reader of this email who is not the intended recipient is notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all copies from your computer system. Subsequent alterations to this email after its transmission will be disregarded.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org

Re: How to include SMB/CIFS tests in JMETER

Posted by "glinius@live.com" <gl...@live.com>.
I would suggest using  JCIFS library <https://jcifs.samba.org/>   from a 
JSR223 Sampler
<http://jmeter.apache.org/usermanual/component_reference.html#JSR223_Sampler> 
, it will provide robust, reliable and cross-platform way of accessing Samba
shares. 

A very simple scenario would look like:


> def filePath  = 'smb://your_server_ip_or_hostname/folder/file.extension'
> NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("",'your
> username', 'your password');
> SmbFile file = new SmbFile(filePath,auth);
> SmbFileOutputStream out = new SmbFileOutputStream(file);
> out.write('hello world'.getBytes('UTF-8'));
> IOUtils.closeQuietly(out)

See  JCIFS examples <https://jcifs.samba.org/src/examples/>  ,  API
documentation <https://jcifs.samba.org/src/docs/api/>   and  Apache Groovy -
Why and How You Should Use It
<https://www.blazemeter.com/blog/groovy-new-black>   for more details. 



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org


Re: How to include SMB/CIFS tests in JMETER

Posted by UBIK LOAD PACK Support <su...@ubikloadpack.com>.
Hello,
You can use:

   -
   http://jmeter.apache.org/usermanual/component_reference.html#OS_Process_Sampler

And then it's the regular use of JMeter.


@ubikloadpack Team

On Wed, Nov 8, 2017 at 3:14 PM, Remy Esclangon <Re...@sita.aero>
wrote:

> Hi
>
> Looking for a way to add to JMETER test plan, tests of users accessing
> network files (CIFS/SMB)
>
> A call to a basic file copy command within JMETER would be enough..... if
> this call can be inserted in the test plan logic (ramp up, included within
> other users HTTP/S simulated activities...)
>
> Anyone have experience in this ?
>
> Thanks best regards
>
> Rémy
>
> Confidential Communication: The contents of this e-mail including any
> attachment are confidential and intended solely for the person(s) to whom
> they are addressed. Any reader of this email who is not the intended
> recipient is notified that any dissemination, distribution or copying of
> this communication is strictly prohibited. If you have received this e-mail
> in error, please notify the sender immediately and delete all copies from
> your computer system. Subsequent alterations to this email after its
> transmission will be disregarded.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>