[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
jMeter: Problem with ccautocomplete  XML
Forum Index -> Development
Author Message
mmueller

Active

Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline

Hi Björn,

we try to test the ccautocomplete feature with jMeter, but if we run the test, the response remain empty.
Do you have any idea?

Our request looks like e.g.
GET http://10.0.0.175:8087/act3_explorer/jsp/AC_1354621995534_38.ccautocomplete;jsessionid=44430A20BC6535C28F3321A6DCC3831D?SEARCHSTRING=F HTTP/1.1

We have extracted the "AC_1354621995534_38" from the prior response.
Also the jsessionid is extracted and inserted dynamically.

Do you have any idea why the response of this request remains empty on test runs?

Best regards,
MaMü
[WWW]
mmueller

Active

Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline

Hi Björn,

debugging the test shows that AutoCompleteServlet.doGet() is called correctly and the Writer of the response object is called repeatedly with the correct results. The doGet() call returns normally, i.e. without exception.

Do you have any idea why the jMeter tool sees no response content?

Best regards,
MaMü
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5527
Offline

...yes, there is an idea.

The http-request of the autocomplete component holds an id in order to match ther server side autocomplete processor. This id is dynamically assigned - so it is not finding it in the test environment.

How could one solve it? No real idea yet without changing the application and explicitly pass back stable ids. (But this is something I hate, implementing the application to fit one test tool...)

At the moment: do not use autocomplete when recording test scenarios...

Regards, Björn

Björn Müller, CaptainCasa GmbH
mmueller

Active

Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline

I assume you mean the large number in .../jsp/AC_1354621995534_38.ccautocomplete...

This number is no problem.
We capture this number from the response before.
We find the number in in the valuesurl attribute of the autocomplete element in the previous response.

With this url we call the server - which builds the proposals correctly, as we detected while debugging. But the result is not received by the client.
At least jMeter displays an empty response body...

Best regards,
MaMue
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5527
Offline

...wow, you already have seen how the ids are used...!

Hmmm. Then I cannot really help - the response is passed as just normal string as XML stirng. Maybe JMeter somehow tries to find some HTML-tags???

Regards, Björn

Björn Müller, CaptainCasa GmbH
mmueller

Active

Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline

Hi Björn,

the header fields of the response do not contain some info how the response is encoded. Therefore jMeter does not analyze the response. If I smuggle the following header into the response, jMeter shows and analyzes the response:
Content-Type: text/plain;charset=UTF-8

Is it possible to add this kind of header by default to the autocompletion responses?

Best regards,
MaMü
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5527
Offline

...no problem, of course!
Will be immediately added. We will provide an interim update quite shortterm...

Regards, Björn

Björn Müller, CaptainCasa GmbH
mmueller

Active

Joined: 17/12/2009 07:05:17
Messages: 24
Location: Ettlingen
Offline

Muchas gracias!
MaMü
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team