On 06/05/2009, Ed Young <[email protected]> wrote:
> In the TCP Sampler Config node, I specify the target ip and port for my
>  request. JMeter must be instantiating a socket for this request. How can I
>  get a handle to the socket or the port number for the socket?
>
>  If I could get a handle to the socket, I could make a call to getLocalPort()
>  using beanshell.
>

Beanshell has access to the sampler, so check the Javadoc to see if
there is a suitable API.
If not, have a look at the source in case there is another way to access it.

Failing that, you will need to write your own code - if you are able
to write Beanshell code, it should not be difficult to amend one of
the TCP Client implementations and use that.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to