Meaningless Drivel is fun!*
The moose likes Testing and the fly likes How to send a file with jmeter and jsf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "How to send a file with jmeter and jsf" Watch "How to send a file with jmeter and jsf" New topic
Author

How to send a file with jmeter and jsf

Edward Herrera
Greenhorn

Joined: Apr 06, 2008
Posts: 7
Hi,
I have a jsf application that uploads a photo for any user registered. I�m trying to re create the HTTP Request using JMeter. Apparently JMeter executes the request without a problem but when I look at the result, the photo has not be sent.

thanks in advance.

Edward
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Can you tell whether the application receives an HTTP request with the image attachment?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Edward Herrera
Greenhorn

Joined: Apr 06, 2008
Posts: 7
Hi,
Effectively, the application receives a request with the photo attachment.
Thanks
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Ok. So you're able to "see" the incoming request. Can you compare the incoming data to that of a successful request (e.g. coming from a web browser)?
Edward Herrera
Greenhorn

Joined: Apr 06, 2008
Posts: 7
Finally I do it, along the file to attach the three parameters according to: http://wiki.apache.org/myfaces/PerformanceTestingWithJMeter have to be added.

Thanks
sugan san
Ranch Hand

Joined: May 23, 2013
Posts: 47
Send it with Request.
Visit the below URL: you might get the solution
http://www.technix.in/jmeter-problems-and-solutions/
Dmitri Tikhanski
Greenhorn

Joined: Oct 13, 2013
Posts: 14
Just in case if anyone will face similar problem again, there is a guide on Upload and Download Scenarios with Apache JMeter testing, it covers the peculiarities of file upload and download performance testing using Apache JMeter.

Hope this helps.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send a file with jmeter and jsf
 
Similar Threads
Junit and Jmeter testing issue
JMeter and JSF
About JMeter session
Stress testing using JMeter
Test Web Services