You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ed Young <ej...@summitbid.com> on 2009/04/27 20:18:20 UTC

HTTP Request sends request, View Results does not display response

This has got to be a simple problem/solution. I did do an archive
search, but no luck. It's killing me...

I'm sending the simplest of HTTP Requests and Jmeter indicates it got
a response, I don't see it in the Viewe Results Tree "Response Data"
tab.

I can even see the response in Wireshark and it looks good.

I put the HTTP Request as a child to the Thread Group and added a View
Results Tree to it.

Here's what the Sampler Result says:
Thread Name: Thread Group 1-1
Sample Start: 2009-04-27 12:13:43 MDT
Load time: 8
Latency: 8
Size in bytes: 34
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK

Response headers:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Mon, 27 Apr 2009 18:13:29 GMT

I'm tweaking all the View Results Tree parameters, but I can't see the
response...

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


Re: HTTP Request sends request, View Results does not display response

Posted by sebb <se...@gmail.com>.
On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
> The snapshot jmeter version provides a bit more info about the Sampler
>  Result and indicates the ContentType is null.
>
>  Note: I can invoke the servlet from a browser and the response is successful.
>
>  I'm experimenting with an HTTP Header Manager to see if I can coerce
>  the header a bit. Still no Response Data.

The response shows that 34 bytes were received.

Try adding a "Save Reponses to a file" element.

>  Sampler Result from jmeter version  2.3.2.20090427:
>
>
>  Thread Name: Thread Group 1-1
>
> Sample Start: 2009-04-27 13:21:07 MDT
>
> Load time: 3
>  Latency: 3
>  Size in bytes: 34

So there was a response.

>  Sample Count: 1
>  Error Count: 0
>  Response code: 200
>  Response message: OK
>
>  Response headers:
>  HTTP/1.1 200 OK
>
> Transfer-Encoding: chunked
>  Server: Jetty(6.1.16)
>
>
>  HTTPSampleResult fields:
>  ContentType:
>  DataEncoding: ISO-8859-1
>
>
>
>
>  On Mon, Apr 27, 2009 at 1:05 PM, Ed Young <ej...@summitbid.com> wrote:
>  > I'm testing against a simple java servlet which as only one method.
>  > The content type returns null:
>  > System.out.println("content type" + request.getContentType());
>  >
>  > returns:
>  > content type: null
>  >
>  > I've tried it with two jmeter versions:
>  > Version 2.3.2 r665936
>  >
>  > I'll try the snapshot version I have too  (2.3.2.20090427) and get the
>  > same result.
>  >
>  > Here's the log when I run it against the snapshot:
>  > 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
>  > Running the test!
>  > 2009/04/27 13:03:11 INFO  - jmeter.gui.util.JMeterMenuBar:
>  > setRunning(true,*local*)
>  > 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
>  > Starting 1 threads for group Thread Group. Ramp up = 1.
>  > 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
>  > Continue on error
>  > 2009/04/27 13:03:11 INFO  - jmeter.threads.JMeterThread: Thread Thread
>  > Group 1-1 started
>  > 2009/04/27 13:03:11 INFO  - jmeter.threads.JMeterThread: Thread Thread
>  > Group 1-1 is done
>  > 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Ending
>  > thread Thread Group 1-1
>  > 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test
>  > 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
>  > Notifying test listeners of end of test
>  > 2009/04/27 13:03:11 INFO  - jmeter.gui.util.JMeterMenuBar:
>  > setRunning(false,*local*)
>  > 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended
>  >
>  >
>  >
>  > On Mon, Apr 27, 2009 at 12:45 PM, sebb <se...@gmail.com> wrote:
>  >> On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
>  >>> This has got to be a simple problem/solution. I did do an archive
>  >>>  search, but no luck. It's killing me...
>  >>
>  >> Which version of JMeter?
>  >>
>  >>>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>  >>>  a response, I don't see it in the Viewe Results Tree "Response Data"
>  >>>  tab.
>  >>>
>  >>>  I can even see the response in Wireshark and it looks good.
>  >>>
>  >>>  I put the HTTP Request as a child to the Thread Group and added a View
>  >>>  Results Tree to it.
>  >>>
>  >>>  Here's what the Sampler Result says:
>  >>>  Thread Name: Thread Group 1-1
>  >>>  Sample Start: 2009-04-27 12:13:43 MDT
>  >>>  Load time: 8
>  >>>  Latency: 8
>  >>>  Size in bytes: 34
>  >>>  Sample Count: 1
>  >>>  Error Count: 0
>  >>>  Response code: 200
>  >>>  Response message: OK
>  >>>
>  >>>  Response headers:
>  >>>  HTTP/1.1 200 OK
>  >>>  Server: Apache-Coyote/1.1
>  >>>  Transfer-Encoding: chunked
>  >>>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>  >>>
>  >>>  I'm tweaking all the View Results Tree parameters, but I can't see the
>  >>>  response...
>  >>
>  >> Does this happen for all samples, or just this particular one?
>  >> Have you checked for errors in the JMeter log file?
>  >>
>  >> What is the Content-Type?
>  >>
>  >>>  ---------------------------------------------------------------------
>  >>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>>
>  >>>
>  >>
>  >> ---------------------------------------------------------------------
>  >> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>
>  >>
>  >
>  >
>  >
>  > --
>  > - Ed
>  >
>
>
>
>  --
>  - Ed
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: HTTP Request sends request, View Results does not display response

Posted by Ed Young <ej...@summitbid.com>.
The snapshot jmeter version provides a bit more info about the Sampler
Result and indicates the ContentType is null.

Note: I can invoke the servlet from a browser and the response is successful.

I'm experimenting with an HTTP Header Manager to see if I can coerce
the header a bit. Still no Response Data.

Sampler Result from jmeter version  2.3.2.20090427:

Thread Name: Thread Group 1-1
Sample Start: 2009-04-27 13:21:07 MDT
Load time: 3
Latency: 3
Size in bytes: 34
Sample Count: 1
Error Count: 0
Response code: 200
Response message: OK

Response headers:
HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Jetty(6.1.16)


HTTPSampleResult fields:
ContentType:
DataEncoding: ISO-8859-1



On Mon, Apr 27, 2009 at 1:05 PM, Ed Young <ej...@summitbid.com> wrote:
> I'm testing against a simple java servlet which as only one method.
> The content type returns null:
> System.out.println("content type" + request.getContentType());
>
> returns:
> content type: null
>
> I've tried it with two jmeter versions:
> Version 2.3.2 r665936
>
> I'll try the snapshot version I have too  (2.3.2.20090427) and get the
> same result.
>
> Here's the log when I run it against the snapshot:
> 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
> Running the test!
> 2009/04/27 13:03:11 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(true,*local*)
> 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
> Starting 1 threads for group Thread Group. Ramp up = 1.
> 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
> Continue on error
> 2009/04/27 13:03:11 INFO  - jmeter.threads.JMeterThread: Thread Thread
> Group 1-1 started
> 2009/04/27 13:03:11 INFO  - jmeter.threads.JMeterThread: Thread Thread
> Group 1-1 is done
> 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Ending
> thread Thread Group 1-1
> 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test
> 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
> Notifying test listeners of end of test
> 2009/04/27 13:03:11 INFO  - jmeter.gui.util.JMeterMenuBar:
> setRunning(false,*local*)
> 2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended
>
>
>
> On Mon, Apr 27, 2009 at 12:45 PM, sebb <se...@gmail.com> wrote:
>> On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
>>> This has got to be a simple problem/solution. I did do an archive
>>>  search, but no luck. It's killing me...
>>
>> Which version of JMeter?
>>
>>>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>>>  a response, I don't see it in the Viewe Results Tree "Response Data"
>>>  tab.
>>>
>>>  I can even see the response in Wireshark and it looks good.
>>>
>>>  I put the HTTP Request as a child to the Thread Group and added a View
>>>  Results Tree to it.
>>>
>>>  Here's what the Sampler Result says:
>>>  Thread Name: Thread Group 1-1
>>>  Sample Start: 2009-04-27 12:13:43 MDT
>>>  Load time: 8
>>>  Latency: 8
>>>  Size in bytes: 34
>>>  Sample Count: 1
>>>  Error Count: 0
>>>  Response code: 200
>>>  Response message: OK
>>>
>>>  Response headers:
>>>  HTTP/1.1 200 OK
>>>  Server: Apache-Coyote/1.1
>>>  Transfer-Encoding: chunked
>>>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>>>
>>>  I'm tweaking all the View Results Tree parameters, but I can't see the
>>>  response...
>>
>> Does this happen for all samples, or just this particular one?
>> Have you checked for errors in the JMeter log file?
>>
>> What is the Content-Type?
>>
>>>  ---------------------------------------------------------------------
>>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
>
>
> --
> - Ed
>



-- 
- Ed

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


Re: HTTP Request sends request, View Results does not display response

Posted by Ed Young <ej...@summitbid.com>.
I'm testing against a simple java servlet which as only one method.
The content type returns null:
System.out.println("content type" + request.getContentType());

returns:
content type: null

I've tried it with two jmeter versions:
Version 2.3.2 r665936

I'll try the snapshot version I have too  (2.3.2.20090427) and get the
same result.

Here's the log when I run it against the snapshot:
2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
Running the test!
2009/04/27 13:03:11 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(true,*local*)
2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
Starting 1 threads for group Thread Group. Ramp up = 1.
2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
Continue on error
2009/04/27 13:03:11 INFO  - jmeter.threads.JMeterThread: Thread Thread
Group 1-1 started
2009/04/27 13:03:11 INFO  - jmeter.threads.JMeterThread: Thread Thread
Group 1-1 is done
2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Ending
thread Thread Group 1-1
2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Stopping test
2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine:
Notifying test listeners of end of test
2009/04/27 13:03:11 INFO  - jmeter.gui.util.JMeterMenuBar:
setRunning(false,*local*)
2009/04/27 13:03:11 INFO  - jmeter.engine.StandardJMeterEngine: Test has ended



On Mon, Apr 27, 2009 at 12:45 PM, sebb <se...@gmail.com> wrote:
> On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
>> This has got to be a simple problem/solution. I did do an archive
>>  search, but no luck. It's killing me...
>
> Which version of JMeter?
>
>>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>>  a response, I don't see it in the Viewe Results Tree "Response Data"
>>  tab.
>>
>>  I can even see the response in Wireshark and it looks good.
>>
>>  I put the HTTP Request as a child to the Thread Group and added a View
>>  Results Tree to it.
>>
>>  Here's what the Sampler Result says:
>>  Thread Name: Thread Group 1-1
>>  Sample Start: 2009-04-27 12:13:43 MDT
>>  Load time: 8
>>  Latency: 8
>>  Size in bytes: 34
>>  Sample Count: 1
>>  Error Count: 0
>>  Response code: 200
>>  Response message: OK
>>
>>  Response headers:
>>  HTTP/1.1 200 OK
>>  Server: Apache-Coyote/1.1
>>  Transfer-Encoding: chunked
>>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>>
>>  I'm tweaking all the View Results Tree parameters, but I can't see the
>>  response...
>
> Does this happen for all samples, or just this particular one?
> Have you checked for errors in the JMeter log file?
>
> What is the Content-Type?
>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>



-- 
- Ed

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


Re: HTTP Request sends request, View Results does not display response

Posted by sebb <se...@gmail.com>.
On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
> "bingo" he said with embarrassment.

I should have twigged sooner too...

>  I know you asked me what the content type was on your first reply, but
>  I kept thinking I needed to set the content type of the request not
>  the response.
>
>  I was looking for something like
>  HttpServletRequest setContentType("text/html");
>  But of course that method doesn't exist.
>
>  I just now added
>
>  HttpServletResonse setContentType("text/html");

Might be better as "text/plain" unless it really is HTML.

>
>  to my servlet and it is now showing up in the response view.
>
>  Oh, well. Now I have experience using the Save Responses to File
>  element and I have some ideas as to how I can use that on this
>  project.
>
>  Thanks again for your help!
>

Glad it's sorted.

>  > Just realised that if there is no content-type then it does not set
>  > the response data type, which means it won't be displayed.
>  >
>  >>
>
>
>
>
>
> --
>
> - Ed
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: HTTP Request sends request, View Results does not display response

Posted by Ed Young <ej...@summitbid.com>.
"bingo" he said with embarrassment.

I know you asked me what the content type was on your first reply, but
I kept thinking I needed to set the content type of the request not
the response.

I was looking for something like
HttpServletRequest setContentType("text/html");
But of course that method doesn't exist.

I just now added

HttpServletResonse setContentType("text/html");

to my servlet and it is now showing up in the response view.

Oh, well. Now I have experience using the Save Responses to File
element and I have some ideas as to how I can use that on this
project.

Thanks again for your help!

> Just realised that if there is no content-type then it does not set
> the response data type, which means it won't be displayed.
>
>>




-- 
- Ed

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


Re: HTTP Request sends request, View Results does not display response

Posted by sebb <se...@gmail.com>.
On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
> I'm able to see the response data when I use "save response to a file".
>  That may just work for me. Does the Variable Name contain the same
>  thing that the file does? If so that might be my solution.

No, it contains the file name.

But as I already wrote, the file created by Save Response contains
whatever was in the response data element, so is accessible to a
PostProcessor such as Regex Extractor.

>  Still don't understand the response tree issue...
>

Just realised that if there is no content-type then it does not set
the response data type, which means it won't be displayed.

>
>  Sebb said:
>
>  Please try using the Save Responses to a file element.
>
>  It may well also create an empty file, but it is a useful check.
>
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: HTTP Request sends request, View Results does not display response

Posted by Ed Young <ej...@summitbid.com>.
The variable in the "save responses to a file" element saves the file
name, not the file contents.

So now to figure out how to get the file contents into a variable? CSV
Data Set Config?



On Mon, Apr 27, 2009 at 2:39 PM, Ed Young <ej...@summitbid.com> wrote:
> I'm able to see the response data when I use "save response to a file".
> That may just work for me. Does the Variable Name contain the same
> thing that the file does? If so that might be my solution.
>
> Still don't understand the response tree issue...
>
>
> Sebb said:
>
> Please try using the Save Responses to a file element.
>
> It may well also create an empty file, but it is a useful check.
>



-- 
- Ed

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


Re: HTTP Request sends request, View Results does not display response

Posted by Ed Young <ej...@summitbid.com>.
I'm able to see the response data when I use "save response to a file".
That may just work for me. Does the Variable Name contain the same
thing that the file does? If so that might be my solution.

Still don't understand the response tree issue...


Sebb said:

Please try using the Save Responses to a file element.

It may well also create an empty file, but it is a useful check.

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


Re: HTTP Request sends request, View Results does not display response

Posted by Ed Young <ej...@summitbid.com>.
I switched to an HTTP request HTTPClient sampler. Still no Response
Data in the View Results Tree element.

Trying to figure out how to use the "Save Responses to a File" element....

Here's the jmeter RESPONSE output from wireshark:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Mon, 27 Apr 2009 20:19:53 GMT

22
35990c2bce7647ab9b26b514862b3894

0

Here's the wireshark response if I invoke the servlet from a browser
(looks the same):
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Mon, 27 Apr 2009 20:30:46 GMT

22
bdeb22be5b114faa81f858fab706b4d6

0






On Mon, Apr 27, 2009 at 2:06 PM, sebb <se...@gmail.com> wrote:
> On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
>> I know there's a respons because I can see it when I invoke the
>>  servlet from a browser, and I can see it in wireshark, just not in
>>  jmeter.
>>
>>  Do I need to encode the data in the servlet or something like that so
>>  jmeter will handle it correctly?
>
> No.
>
>>  it's clearly something about the way the servlet is rendering the
>>  response. If I invoke it from the browser the servlet returns:
>>  844fc1e22a274c7eba24daa06c3b275b
>>
>>  No html, nothing except the text.
>>
>>  If I change the url so it's bogus, jmeter's response data is a proper
>>  error wrapped in html.
>>
>>  I can see the sampler response if I set it to write to a file, but
>>  that won't work since I need to extract the response data in my test.
>
> The file data is written from the response, so if it appears in the
> file, it can be extracted, regardless of whether it is visible in the
> Tree View Listener or not.
>
>>  However, if I set it to write the response to a file and get:
>>
>>  <?xml version="1.0" encoding="UTF-8"?>
>>  <testResults version="1.2">
>>  <httpSample t="5" lt="5" ts="1240861767241" s="true" lb="HTTP Request"
>>  rc="200" rm="OK" tn="Thread Group 1-1" dt="" de="ISO-8859-1" by="34"
>>  sc="1" ec="0" ng="1" na="1" hn="cocmcl-naeng30">
>>   <responseHeader class="java.lang.String">HTTP/1.1 200 OK
>>
>> Transfer-Encoding: chunked
>
> Could perhaps be the chunking that is causing the problem.
>
>>  Server: Jetty(6.1.16)
>>
>> </responseHeader>
>>   <requestHeader class="java.lang.String">Connection: keep-alive
>>  </requestHeader>
>>   <responseData class="java.lang.String"/>
>
> Which is an empty String, so no wonder the display shows nothing.
>
> There's no sign of the string
>
> 844fc1e22a274c7eba24daa06c3b275b
>
> which you say appears in the browser.
>
>>   <responseFile class="java.lang.String"></responseFile>
>>   <cookies class="java.lang.String"></cookies>
>>   <method class="java.lang.String">GET</method>
>>   <queryString class="java.lang.String"></queryString>
>>   <java.net.URL>http://localhost:8080/loadtest-servlet/sessionid</java.net.URL>
>>  </httpSample>
>>
>>  </testResults>
>>
>
> Please try using the Save Responses to a file element.
>
> It may well also create an empty file, but it is a useful check.
>
> Also, try using the HttpClient sampler in case that handles the response better.
>
> Can you save the response from Wireshark?
>
>>
>>
>>
>>  On Mon, Apr 27, 2009 at 12:45 PM, sebb <se...@gmail.com> wrote:
>>
>> > On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
>>  >> This has got to be a simple problem/solution. I did do an archive
>>  >>  search, but no luck. It's killing me...
>>  >
>>  > Which version of JMeter?
>>  >
>>  >>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>>  >>  a response, I don't see it in the Viewe Results Tree "Response Data"
>>  >>  tab.
>>  >>
>>  >>  I can even see the response in Wireshark and it looks good.
>>  >>
>>  >>  I put the HTTP Request as a child to the Thread Group and added a View
>>  >>  Results Tree to it.
>>  >>
>>  >>  Here's what the Sampler Result says:
>>  >>  Thread Name: Thread Group 1-1
>>  >>  Sample Start: 2009-04-27 12:13:43 MDT
>>  >>  Load time: 8
>>  >>  Latency: 8
>>  >>  Size in bytes: 34
>>  >>  Sample Count: 1
>>  >>  Error Count: 0
>>  >>  Response code: 200
>>  >>  Response message: OK
>>  >>
>>  >>  Response headers:
>>  >>  HTTP/1.1 200 OK
>>  >>  Server: Apache-Coyote/1.1
>>  >>  Transfer-Encoding: chunked
>>  >>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>>  >>
>>  >>  I'm tweaking all the View Results Tree parameters, but I can't see the
>>  >>  response...
>>  >
>>  > Does this happen for all samples, or just this particular one?
>>  > Have you checked for errors in the JMeter log file?
>>  >
>>  > What is the Content-Type?
>>  >
>>  >>  ---------------------------------------------------------------------
>>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >>
>>  >>
>>  >
>>  > ---------------------------------------------------------------------
>>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>  >
>>  >
>>
>>
>>
>>
>> --
>>
>> - Ed
>>
>>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>



-- 
- Ed

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


Re: HTTP Request sends request, View Results does not display response

Posted by sebb <se...@gmail.com>.
On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
> I know there's a respons because I can see it when I invoke the
>  servlet from a browser, and I can see it in wireshark, just not in
>  jmeter.
>
>  Do I need to encode the data in the servlet or something like that so
>  jmeter will handle it correctly?

No.

>  it's clearly something about the way the servlet is rendering the
>  response. If I invoke it from the browser the servlet returns:
>  844fc1e22a274c7eba24daa06c3b275b
>
>  No html, nothing except the text.
>
>  If I change the url so it's bogus, jmeter's response data is a proper
>  error wrapped in html.
>
>  I can see the sampler response if I set it to write to a file, but
>  that won't work since I need to extract the response data in my test.

The file data is written from the response, so if it appears in the
file, it can be extracted, regardless of whether it is visible in the
Tree View Listener or not.

>  However, if I set it to write the response to a file and get:
>
>  <?xml version="1.0" encoding="UTF-8"?>
>  <testResults version="1.2">
>  <httpSample t="5" lt="5" ts="1240861767241" s="true" lb="HTTP Request"
>  rc="200" rm="OK" tn="Thread Group 1-1" dt="" de="ISO-8859-1" by="34"
>  sc="1" ec="0" ng="1" na="1" hn="cocmcl-naeng30">
>   <responseHeader class="java.lang.String">HTTP/1.1 200 OK
>
> Transfer-Encoding: chunked

Could perhaps be the chunking that is causing the problem.

>  Server: Jetty(6.1.16)
>
> </responseHeader>
>   <requestHeader class="java.lang.String">Connection: keep-alive
>  </requestHeader>
>   <responseData class="java.lang.String"/>

Which is an empty String, so no wonder the display shows nothing.

There's no sign of the string

844fc1e22a274c7eba24daa06c3b275b

which you say appears in the browser.

>   <responseFile class="java.lang.String"></responseFile>
>   <cookies class="java.lang.String"></cookies>
>   <method class="java.lang.String">GET</method>
>   <queryString class="java.lang.String"></queryString>
>   <java.net.URL>http://localhost:8080/loadtest-servlet/sessionid</java.net.URL>
>  </httpSample>
>
>  </testResults>
>

Please try using the Save Responses to a file element.

It may well also create an empty file, but it is a useful check.

Also, try using the HttpClient sampler in case that handles the response better.

Can you save the response from Wireshark?

>
>
>
>  On Mon, Apr 27, 2009 at 12:45 PM, sebb <se...@gmail.com> wrote:
>
> > On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
>  >> This has got to be a simple problem/solution. I did do an archive
>  >>  search, but no luck. It's killing me...
>  >
>  > Which version of JMeter?
>  >
>  >>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>  >>  a response, I don't see it in the Viewe Results Tree "Response Data"
>  >>  tab.
>  >>
>  >>  I can even see the response in Wireshark and it looks good.
>  >>
>  >>  I put the HTTP Request as a child to the Thread Group and added a View
>  >>  Results Tree to it.
>  >>
>  >>  Here's what the Sampler Result says:
>  >>  Thread Name: Thread Group 1-1
>  >>  Sample Start: 2009-04-27 12:13:43 MDT
>  >>  Load time: 8
>  >>  Latency: 8
>  >>  Size in bytes: 34
>  >>  Sample Count: 1
>  >>  Error Count: 0
>  >>  Response code: 200
>  >>  Response message: OK
>  >>
>  >>  Response headers:
>  >>  HTTP/1.1 200 OK
>  >>  Server: Apache-Coyote/1.1
>  >>  Transfer-Encoding: chunked
>  >>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>  >>
>  >>  I'm tweaking all the View Results Tree parameters, but I can't see the
>  >>  response...
>  >
>  > Does this happen for all samples, or just this particular one?
>  > Have you checked for errors in the JMeter log file?
>  >
>  > What is the Content-Type?
>  >
>  >>  ---------------------------------------------------------------------
>  >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >>
>  >>
>  >
>  > ---------------------------------------------------------------------
>  > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>  >
>  >
>
>
>
>
> --
>
> - Ed
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

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


Re: HTTP Request sends request, View Results does not display response

Posted by Ed Young <ej...@summitbid.com>.
I know there's a respons because I can see it when I invoke the
servlet from a browser, and I can see it in wireshark, just not in
jmeter.

Do I need to encode the data in the servlet or something like that so
jmeter will handle it correctly?

it's clearly something about the way the servlet is rendering the
response. If I invoke it from the browser the servlet returns:
844fc1e22a274c7eba24daa06c3b275b

No html, nothing except the text.

If I change the url so it's bogus, jmeter's response data is a proper
error wrapped in html.

I can see the sampler response if I set it to write to a file, but
that won't work since I need to extract the response data in my test.
However, if I set it to write the response to a file and get:

<?xml version="1.0" encoding="UTF-8"?>
<testResults version="1.2">
<httpSample t="5" lt="5" ts="1240861767241" s="true" lb="HTTP Request"
rc="200" rm="OK" tn="Thread Group 1-1" dt="" de="ISO-8859-1" by="34"
sc="1" ec="0" ng="1" na="1" hn="cocmcl-naeng30">
  <responseHeader class="java.lang.String">HTTP/1.1 200 OK
Transfer-Encoding: chunked
Server: Jetty(6.1.16)
</responseHeader>
  <requestHeader class="java.lang.String">Connection: keep-alive
</requestHeader>
  <responseData class="java.lang.String"/>
  <responseFile class="java.lang.String"></responseFile>
  <cookies class="java.lang.String"></cookies>
  <method class="java.lang.String">GET</method>
  <queryString class="java.lang.String"></queryString>
  <java.net.URL>http://localhost:8080/loadtest-servlet/sessionid</java.net.URL>
</httpSample>

</testResults>




On Mon, Apr 27, 2009 at 12:45 PM, sebb <se...@gmail.com> wrote:
> On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
>> This has got to be a simple problem/solution. I did do an archive
>>  search, but no luck. It's killing me...
>
> Which version of JMeter?
>
>>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>>  a response, I don't see it in the Viewe Results Tree "Response Data"
>>  tab.
>>
>>  I can even see the response in Wireshark and it looks good.
>>
>>  I put the HTTP Request as a child to the Thread Group and added a View
>>  Results Tree to it.
>>
>>  Here's what the Sampler Result says:
>>  Thread Name: Thread Group 1-1
>>  Sample Start: 2009-04-27 12:13:43 MDT
>>  Load time: 8
>>  Latency: 8
>>  Size in bytes: 34
>>  Sample Count: 1
>>  Error Count: 0
>>  Response code: 200
>>  Response message: OK
>>
>>  Response headers:
>>  HTTP/1.1 200 OK
>>  Server: Apache-Coyote/1.1
>>  Transfer-Encoding: chunked
>>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>>
>>  I'm tweaking all the View Results Tree parameters, but I can't see the
>>  response...
>
> Does this happen for all samples, or just this particular one?
> Have you checked for errors in the JMeter log file?
>
> What is the Content-Type?
>
>>  ---------------------------------------------------------------------
>>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>



-- 
- Ed

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


Re: HTTP Request sends request, View Results does not display response

Posted by sebb <se...@gmail.com>.
On 27/04/2009, Ed Young <ej...@summitbid.com> wrote:
> This has got to be a simple problem/solution. I did do an archive
>  search, but no luck. It's killing me...

Which version of JMeter?

>  I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>  a response, I don't see it in the Viewe Results Tree "Response Data"
>  tab.
>
>  I can even see the response in Wireshark and it looks good.
>
>  I put the HTTP Request as a child to the Thread Group and added a View
>  Results Tree to it.
>
>  Here's what the Sampler Result says:
>  Thread Name: Thread Group 1-1
>  Sample Start: 2009-04-27 12:13:43 MDT
>  Load time: 8
>  Latency: 8
>  Size in bytes: 34
>  Sample Count: 1
>  Error Count: 0
>  Response code: 200
>  Response message: OK
>
>  Response headers:
>  HTTP/1.1 200 OK
>  Server: Apache-Coyote/1.1
>  Transfer-Encoding: chunked
>  Date: Mon, 27 Apr 2009 18:13:29 GMT
>
>  I'm tweaking all the View Results Tree parameters, but I can't see the
>  response...

Does this happen for all samples, or just this particular one?
Have you checked for errors in the JMeter log file?

What is the Content-Type?

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

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


Re: HTTP Request sends request, View Results does not display response

Posted by Deepak Goel <de...@gmail.com>.
You might have to update your Jmeter

On 6/23/12, sebb <se...@gmail.com> wrote:
> On 21 June 2012 06:47, ann <an...@gmail.com> wrote:
>> Ed Young <ejy <at> summitbid.com> writes:
>>
>>> I am facing exactly the same problem with the Response Header as follows
>>
>> Response headers:
>> HTTP/1.1 200 OK
>> Server: Apache-Coyote/1.1
>> Transfer-Encoding: chunked
>> Date: Thu, 21 Jun 2012 04:59:16 GMT
>>
>>
>> HTTPSampleResult fields:
>> ContentType:
>> DataEncoding: null
>>
>> Can somebody tell me why the Content Type is not present in the Response
>> Header?
>
> Because the server did not send one.
>
>>> This has got to be a simple problem/solution. I did do an archive
>>> search, but no luck. It's killing me...
>>>
>>> I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>>> a response, I don't see it in the Viewe Results Tree "Response Data"
>>> tab.
>>>
>>> I can even see the response in Wireshark and it looks good.
>>>
>>> I put the HTTP Request as a child to the Thread Group and added a View
>>> Results Tree to it.
>>>
>>> Here's what the Sampler Result says:
>>> Thread Name: Thread Group 1-1
>>> Sample Start: 2009-04-27 12:13:43 MDT
>>> Load time: 8
>>> Latency: 8
>>> Size in bytes: 34
>>> Sample Count: 1
>>> Error Count: 0
>>> Response code: 200
>>> Response message: OK
>>>
>>> Response headers:
>>> HTTP/1.1 200 OK
>>> Server: Apache-Coyote/1.1
>>> Transfer-Encoding: chunked
>>> Date: Mon, 27 Apr 2009 18:13:29 GMT
>>>
>>> I'm tweaking all the View Results Tree parameters, but I can't see the
>>> response...
>>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>


-- 
Namaskara~Nalama~Guten Tag~Bonjour


   --
Keigu

Deepak
+91-9765089593
deicool@gmail.com
http://www.simtree.net

Skype: thumsupdeicool
Google talk: deicool
Blog: http://loveandfearless.wordpress.com
Facebook: http://www.facebook.com/deicool

"Contribute to the world, environment and more : http://www.gridrepublic.org
"

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


Re: HTTP Request sends request, View Results does not display response

Posted by sebb <se...@gmail.com>.
On 21 June 2012 06:47, ann <an...@gmail.com> wrote:
> Ed Young <ejy <at> summitbid.com> writes:
>
>> I am facing exactly the same problem with the Response Header as follows
>
> Response headers:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Transfer-Encoding: chunked
> Date: Thu, 21 Jun 2012 04:59:16 GMT
>
>
> HTTPSampleResult fields:
> ContentType:
> DataEncoding: null
>
> Can somebody tell me why the Content Type is not present in the Response Header?

Because the server did not send one.

>> This has got to be a simple problem/solution. I did do an archive
>> search, but no luck. It's killing me...
>>
>> I'm sending the simplest of HTTP Requests and Jmeter indicates it got
>> a response, I don't see it in the Viewe Results Tree "Response Data"
>> tab.
>>
>> I can even see the response in Wireshark and it looks good.
>>
>> I put the HTTP Request as a child to the Thread Group and added a View
>> Results Tree to it.
>>
>> Here's what the Sampler Result says:
>> Thread Name: Thread Group 1-1
>> Sample Start: 2009-04-27 12:13:43 MDT
>> Load time: 8
>> Latency: 8
>> Size in bytes: 34
>> Sample Count: 1
>> Error Count: 0
>> Response code: 200
>> Response message: OK
>>
>> Response headers:
>> HTTP/1.1 200 OK
>> Server: Apache-Coyote/1.1
>> Transfer-Encoding: chunked
>> Date: Mon, 27 Apr 2009 18:13:29 GMT
>>
>> I'm tweaking all the View Results Tree parameters, but I can't see the
>> response...
>>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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


Re: HTTP Request sends request, View Results does not display response

Posted by ann <an...@gmail.com>.
Ed Young <ejy <at> summitbid.com> writes:

> I am facing exactly the same problem with the Response Header as follows

Response headers:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Transfer-Encoding: chunked
Date: Thu, 21 Jun 2012 04:59:16 GMT


HTTPSampleResult fields:
ContentType: 
DataEncoding: null
 
Can somebody tell me why the Content Type is not present in the Response Header? 

> This has got to be a simple problem/solution. I did do an archive
> search, but no luck. It's killing me...
> 
> I'm sending the simplest of HTTP Requests and Jmeter indicates it got
> a response, I don't see it in the Viewe Results Tree "Response Data"
> tab.
> 
> I can even see the response in Wireshark and it looks good.
> 
> I put the HTTP Request as a child to the Thread Group and added a View
> Results Tree to it.
> 
> Here's what the Sampler Result says:
> Thread Name: Thread Group 1-1
> Sample Start: 2009-04-27 12:13:43 MDT
> Load time: 8
> Latency: 8
> Size in bytes: 34
> Sample Count: 1
> Error Count: 0
> Response code: 200
> Response message: OK
> 
> Response headers:
> HTTP/1.1 200 OK
> Server: Apache-Coyote/1.1
> Transfer-Encoding: chunked
> Date: Mon, 27 Apr 2009 18:13:29 GMT
> 
> I'm tweaking all the View Results Tree parameters, but I can't see the
> response...
> 





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