You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2019/02/07 18:34:41 UTC

[Bug 63155] New: ResponseData not shown in GUI

https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

            Bug ID: 63155
           Summary: ResponseData not shown in GUI
           Product: JMeter
           Version: 5.0
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: andrea.bugada@gmail.com
  Target Milestone: JMETER_5.1

I'm developing a custom sampler.
It's very easy, but I noticed that the GUI doesn't show correctly ResponseData.

public class MySampler extends AbstractSampler implements TestBean {
...
   @Override
   public SampleResult sample(Entry entry) {
   ...
     sampleResult.setSamplerData(request.toString());
     sampleResult.setResponseData(reply.toString(), null);
     sampleResult.setDataType(SampleResult.TEXT);
     sampleResult.setResponseOK();
     sampleResult.sampleEnd();

In the logs reply has content, but in the GUI I can see only the request set by
setSamplerData() but not the response set by setResponseData().

The same code is used in the DebugSampler, and it doesn0t show the response as
well.

Thank you

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
            Summary|ResponseData not shown in   |ResponseData not shown in
                   |GUI                         |GUI in my custom sampler
   Target Milestone|JMETER_5.1                  |---

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

Andrea Bugada <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #2 from Felix Schumacher <fe...@internetallee.de> ---
Maybe your reply is null or empty, or you are looking at the response headers.

This looks more like a question to be discussed on the mailing list.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

--- Comment #3 from Andrea Bugada <an...@gmail.com> ---
Thank you Felix,

but actually "reply" contains a JSON-like structure, and if I put
"reply.toString()" in setSamplerData(), it is perfectly displayed in the
request panel of the View Results Tree.

The api doc says:

setResponseData(java.lang.String response, java.lang.String encoding) 
Sets the encoding and responseData attributes of the SampleResult object.

and I saw that JMeter default samplers, like the DebugSampler, use the same
code (DebugSampler doesn't work, like my sampler).

It's not an HTTP request, so I don't think that response headers are involved,
I don't have them.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

--- Comment #9 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
(In reply to Andrea Bugada from comment #8)
> You're completely right Philippe.
> With "Async" or "Batch" the ResponseData is returned.
> 
> Thank you very much.

Thanks at Felix then me for my little contribution :-)
Happy we helped.
Note that for a load test, you should stick to default mode (StrippedBatch) or
Asynch which strip response.

Regards

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

Andrea Bugada <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Andrea Bugada <an...@gmail.com> ---
I forgot to mention that I'm using the View Results Tree as listener.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

Andrea Bugada <an...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #8 from Andrea Bugada <an...@gmail.com> ---
You're completely right Philippe.
With "Async" or "Batch" the ResponseData is returned.

Thank you very much.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

--- Comment #4 from Andrea Bugada <an...@gmail.com> ---
Further informations: 

I've just tested a test plan with a DebugSampler and a ViewResultsTree
on my personal W10 pc, it shows the JMeterVariables as expected.

But if I start a jmeter-server and I launch the same testplan remotely,
ResponseBody is empty. 

I'm using latest JMeter installation with 

server.rmi.ssl.disable=true

in jmeter.properties.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

--- Comment #6 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
See:

http://jmeter.apache.org/usermanual/properties_reference.html#remote_batching_config

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

--- Comment #7 from Andrea Bugada <an...@gmail.com> ---
Thanks, seems promising.
At work I need to use distributed testing because my pc can't reach the service
to test. 

Tomorrow I'll test if this fixes my problem.

Thank you for your patience.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
in distributed testing jmeter strips responses .
This is like this since 2.9

So IMO, there’s no issue here

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 63155] ResponseData not shown in GUI in my custom sampler

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=63155

--- Comment #10 from Andrea Bugada <an...@gmail.com> ---
Yes of course, StrippedBatch or StrippedAsync for the test remote server, Async
for my personal remote server (I can't use the my custom sampler on my pc since
I don't have intalled tibco rendezvous runtimes).

Now works perfectly.
Thank you Felix and Philippe.

-- 
You are receiving this mail because:
You are the assignee for the bug.