You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by 黄吉浩 <13...@163.com> on 2013/09/13 08:24:26 UTC
'response code' & 'EOL byte value' in TCP sampler
hi, I have 2 questions.
first, the response code defaults to 500, which jmeter interprets it as failure. then jmeter will colse the connection for the current sampler, which is not I want. I did some search on internet, and add the 'Response Assertion' for the sampler, but that did not work.
second, 'EOL byte value' in TCP Sampler only let you to set a byte value as the stream terminator marker. is there a way to set a sequence of byte value, that will be helpful.
thanks in advance.
Re:'response code' & 'EOL byte value' in TCP sampler
Posted by 黄吉浩 <13...@163.com>.
I've got some progess.
jmeter give the response code 500, and exception is "org.apache.jmeter.protocol.tcp.sampler.ReadException" (btw, where can I get more detailed error log?). that's because Jmeter read the response but can't find the 'EOL byte value' defined, so it fails and throw the exception when timeout, and since there's an error, so jmeter colse the connection for the sampler.
in fact, I can see from the 'response data' that the value is '0b', and also I've set the value '0b' in 'EOL byte value' field, which is not right. When I change it to '11', it is right. the Sampler runs ok, and the connection is reused for the next sampler.
So, only the second question leaves...
At 2013-09-13 14:24:26,"黄吉浩" <13...@163.com> wrote:
>hi, I have 2 questions.
>first, the response code defaults to 500, which jmeter interprets it as failure. then jmeter will colse the connection for the current sampler, which is not I want. I did some search on internet, and add the 'Response Assertion' for the sampler, but that did not work.
>second, 'EOL byte value' in TCP Sampler only let you to set a byte value as the stream terminator marker. is there a way to set a sequence of byte value, that will be helpful.
>thanks in advance.
>