> 4. PDF report opens in a PDF reader application and not in a browser. The PDF is still available as a URL to which the browser does make a HTTP request. The mime type determines what the browser does with the file (e.g. prompting a different application to run), but an HTTP request is still made...if you ask Jmeter to make the same request it will get the bytes that form the PDF. The reason your assertions wont work is because those work only over text responses and PDF is a binary with its own way of encoding a file (its like downloading an image which shows some text and running an assertion for the text). You normally would only assert the file size and status code of the PDF. if you wish you can save the PDF to file (using save response to file) and finally if you really, really want to assert the content within the file , you'd have to write your own code using any PDF library (e.g. text)
On Thu, Oct 15, 2009 at 2:29 PM, vishwesh_k <[email protected]> wrote: > > Hello, > > I am trying to perform a load test for opening a PDF file. Here is a gist > of > my test case. > > 1. Login into application > 2. Select the dates > 3. Generate Report > 4. PDF report opens in a PDF reader application and not in a browser. > > While clicking on the generate report, I get the File download window. How > do I make the Jmeter Open the PDF file (Click on the OPEN button in the > dialog)? > > I am using HTTP Request to perform this request. The parameters I see in > the > aspx page is t, o, e, c with the values 0,0,1, Local file path directory. > (I > recorded the script using Badboy). > > I tried giving Assertions to the page. It does not seem to work as the PDF > does NOT open in a Browser. Any Suggestions? > > http://www.nabble.com/file/p25916352/openFileDialog.jpg > -- > View this message in context: > http://www.nabble.com/Handling-File-Download-Window-tp25916352p25916352.html > Sent from the JMeter - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

