Hi everyone

I am testing a web based application. I login to the app and I need to go
to a new page that is under development. Currently there is no way to get
to this page by clicking a link or button, so I have to manually copy and
paste the new url into the browser to get to the new page. When I do this
and then try to click on a check box to apply a filter criteria, I get this
error in jmeter:

2016/01/26 10:29:42 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl:
readResponse: java.io.IOException: Server returned HTTP response code: 400
for URL:
/rest/rfx?where=type+in+%5B%22RFP%22%5D&limit=100&offset=0
2016/01/26 10:29:42 ERROR - jmeter.protocol.http.sampler.HTTPJavaImpl:
Cause: java.io.IOException: Server returned HTTP response code: 400 for
URL:
/rest/rfx?where=type+in+%5B%22RFP%22%5D&limit=100&offset=0
2016/01/26 10:29:42 INFO  - jmeter.protocol.http.sampler.HTTPJavaImpl:
Error Response Code: 400

The request should look *something* like this:
/rest/rfx?where=status%20in%20
[%22OPEN%22,%22CREATED%22]%20and%20type%20in%20[%22RFP%22]
&limit=100&offset=0

However even though it is technically sending the wrong request, the
request its sending is legal. I am not sure why it sends the wrong request.
The difference between these is there are some additional filters that are
applied but the app is sending the request without those open and created
filters. Another thing that I noticed, when recording in jmeter the
parameters in the request that throws the errors are for some reason not
encoded in the  http request but when the request is done correctly the
parameters in the http request are encoded as seen above.

This problem only occurs when recording in jmeter, when I am using the app
without recording there are no issues. I am thinking that manually
navigating to the new url by copy pasting might be causing issues, but I
cant see any errors in any log files that confirm this. What I have been
doing to get around this issue up to this point, is when I navigate to the
new page, I stop and start the recorder and usually that works. However I
would like to know why this is happening and It would be nice if I didn't
have to frequently stop and start. Any help is appreciated.

thanks.

Reply via email to