How to include SMB/CIFS tests in JMETER

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to include SMB/CIFS tests in JMETER

Remy Esclangon
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: [hidden email]
For additional commands, e-mail: [hidden email]
Reply | Threaded
Open this post in threaded view
|

Re: How to include SMB/CIFS tests in JMETER

support@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 <[hidden email]>
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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
Reply | Threaded
Open this post in threaded view
|

Re: How to include SMB/CIFS tests in JMETER

glinius@live.com
In reply to this post by Remy Esclangon
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: [hidden email]
For additional commands, e-mail: [hidden email]