Is it possible to see a file that has been downloaded on running visual studio webtest.?

Hi There,
I'm not sure if this is the right place to post the query :)
I'm new to visual studio performance testing. I created a webtest script using Visual Studio Ultimate 2013 for downloading a .pdf from a website. I gather from the response bytes that the script is doing its job.
My question is where could I find the .pdf file if it is getting downloaded? or is it not downloading the file physically.
Appreciate your support. Many thanks in advance. 
Renjith

I would not expect the file to be saved automatically in a web test. The file's contents will be in the "bodybytes" and "bodystring" of the relevant HTMLO response. So you can write some file writing code in a plugin.
Here is a version of the plugin that I have used:
public override void PostRequest(object sender, PostRequestEventArgs e)
string body = e.Response.BodyString;
if (body == null)
e.WebTest.AddCommentToResult("No response PDF");
else if (string.IsNullOrWhiteSpace(body))
e.WebTest.AddCommentToResult("PDF is empty");
else if (e.Response.BodyString.StartsWith("\x0d\x0a%PDF"))
string fileName = "The_response.pdf");
int bodyLength = e.Response.BodyString.Length;
File.WriteAllBytes(fileName, e.Response.BodyBytes);
string message = string.Format("PDF of {0} bytes written to file {1}", bodyLength, fileName);
e.WebTest.AddCommentToResult(message);
else
e.WebTest.AddCommentToResult("Unknown file contents");
Regards
Adrian

Similar Messages

  • Is it possible to delete a file that has been backed up?

    Hi,
    Before doing a backup with Time Machine, I forgot to tell it NOT to backup a certain file that is fairly large. Now that the backup is complete, this large file is on my external hard drive and is backed up. But I want to delete this file from the backup----is it possible to do this, or am I stuck with it backed up now?
    Thanks!

    yes, it's possible. select this file in finder and start TM. click on the "gears" action button in Finder's toolbar and select "delete all backups of this item".

  • I do not get a readable or editable PDF file that has been converted to Microsoft Word.

    In the past I have been able to convert PDF files to MicroSoft Word, and Edit and Save the Documents. Now, the converted files are unreadable and uneditable. How do I correct this problem?

    Thanks for the email, Stacy!
    I don't have an old PDF file that I converted to MicroSoft Word, however the new file that I am trying to convert and edit is the same kind of file that I've converted and edited before; An Invoice from the same Company. Is there a possibility that a download, MicroSoft Compatibility Pack for the 2007 Office System, onto MicroSoft Windows XP Home Edition Version 2002 computer might be causing the problem? Should I download to (.doc) or (.docx)? Any help will be greatly appreciated!
    Thanks,
    Joseph Renn Little
    Date: Fri, 21 Mar 2014 08:48:32 -0700
    From: [email protected]
    To: [email protected]
    Subject: I do not get a readable or editable PDF file that has been converted to Microsoft Word.
        Re: I do not get a readable or editable PDF file that has been converted to Microsoft Word.
        created by StacySison in Adobe ExportPDF - View the full discussion
    Hi Joseph,
    I'd like to assist!
    Have you tried converting one of your old PDF's that have worked in the past to see if it still works?
    Are these files scanned to PDF files?
    You may want to try utilizing the OCR solution.
    Let me know if that works.
    Looking forward to hearing back from you!
    Kind regards, Stacy
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6231210#6231210
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6231210#6231210
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6231210#6231210. In the Actions box on the right, click the Stop Email Notifications link.
               Start a new discussion in Adobe ExportPDF at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How do I fix or open a corrupted file that has been corrupted by some sort of programmatically email

    How do I fix or open a corrupted PDF file that has been corrupted by some sort of programmatically emailing?
    Please see the following screen shot:
    http://i67.photobucket.com/albums/h292/Athono/pdfproblem_zpsbd9bdc00.png

    Well, it is a pdf file, and it once was a readable one, I suppose.
    It must have data on the hex or binary level that can be retrieved. 
    If necessary, I will have to look into the file format of a PDF file?  Is this documented?

  • How to get PDF file that has been transformed into docx into my filing system so I can work on it???

    How can I get the PDF file that was transformed into a docx file into my filing system to be able to work on it and translate it as the customer requested?

    THanks for your reply.
    Well what happens is I bought the program. It gives you a button to click,
    you log in and then a box opens up asking you to select the file, I go into
    my filing system (in Windows explorer) select the file, and the program
    converts it into docx, my choice.  I can read it there and when I try to
    copy and paste it into my file where the PDF version is saved, it behaves
    like an "image", and I can't save it.... or it saves likes something you
    save on the internet, so you have to go into internet every time you want
    to see it.    I have also pressed any amount of buttons to see if it will
    give me the option to save it any other way, and have found nothing.  What
    I would need is a file in docx.format that I can edit.  People send me
    things in PDF and sometimes I can just copy it off the PDF file and save it
    in WOrd, then I can translate it for them. But sometimes the PDF file
    doesnt allow me to copy the text.  If it is in image form, I cannot work on
    it.  It means printing it, so I can copy type it into Word... and for that
    I certainly wouldnt need to buy a program.  Its just double the work and
    ends up that the job takes twice as long.!
    Sorry  if I am a bit dumb with informatics.  But I simply could not find
    any way whatever to  copy the PDF file that was transformed into Word, in a
    format that would enable me to edit it.
    Kindest regards,
    Margery
    2013/12/2 Test Screen Name <[email protected]>
        Re: How to get PDF file that has been transformed into docx into my
    filing system so I can work on it???
    created by Test Screen Name<http://forums.adobe.com/people/TestScreenName>in *Adobe
    ExportPDF* - View the full discussion<http://forums.adobe.com/message/5890871#5890871

  • Changing a number in an excel file that has been changed to a PD ?

    Changing a number in an excel file that has been changed to a PD ?

    Hi llkwx,
    If I understand correctly, you've converted an Excel file to PDF, but now need to edit the PDF file? If so, you'll need either update the Excel file and re-create the PDF, or use Acrobat to edit the text in the PDF. If you don't have Acrobat, you're welcome to try ti for free for 30 days: see http://www.adobe.com/products/acrobat.html for more information.
    Best,
    Sara

  • How do I open a pdf book cover file using Acrobat XI into Indesign CC?  Everytime I try, it says I am trying to open a file that has been saved wrong.

    How do I open a pdf book cover file using Acrobat XI into Indesign CC?  Everytime I try, it says I am trying to open a file that has been saved wrong.

    PDF files cannot be natively opened in InDesign. They can only be placed as graphics.

  • How do I edit the text in a pdf file that has been converted to a Word doc

    How do I edit the text in a pdf file that has been converted to a Word doc?

    Hi BridgetteJean,
    Please go through this video this explains how to edit text in a pdf document.
    http://tv.adobe.com/watch/acrobat-tips-and-tricks/editing-text-with-the-typewriter-tool/

  • I cannot and never have been, able to open a file that has been previously saved to hard disk by choosing the print to file option in the print dialogue box

    '''I cannot and never have been, able to open a file that has been previously saved to hard disk by choosing the print to file option in the print dialogue box. Firefox displays gooblygook even though the file name is an html, Windows Notepad crashes, MS Excel does not recognise the file type. MS Word displays goobblys also when the file has no filename extension.'''

    If you use print to file then you get a file that is meant to be send to a printer and that file has all kind of formatting code for that specific printer.
    Opening such a file in Firefox or a text editor can only work if you use a text only printer to print the file to, so make sure that such a printer is installed and selected.

  • I can't get gold of adobe - which is annoying me. I have a file that has been uploaded to my creative cloud that i did not upload or have i ever seen before. SO it seems adobe cannot guarantee security and are uncontactable - i think i may leave

    I can't get gold of adobe - which is annoying me. I have a file that has been uploaded to my creative cloud that i did not upload or have i ever seen before. SO it seems adobe cannot guarantee security and are uncontactable - i think i may leave

    Since this is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Changing a number in an excel file that has been changed to a PDF

    Changing a number in an excel file that has been changed to a PD ?

    Hi llkwx,
    I would like to confirm ,do you want to change the page number of the PDF  or any other number in the data given in that PDF?
    For changing the page number display
    You can select Page Thumbnail option from the left hand side .In that panel ,right click and select the option "Number Pages" from the drop down menu.You can further change the page numbers as per your requirement.
    Adding page numbers to PDF
    Tools>Pages>Edit Page Design>Header and Footer>Add Header and Footer>click Insert Page Number
    Do write us back with your response .We will be glad to help you out with your queries.
    Regards
    Sukrit Dhingra

  • Printing the percentage of the file that has been loaded

    Hello everyone!
    I'm using a FileInputStream and a DataInputStream to read my .DAT file, but I want to print out the amount of percentages of the file that has been loaded, in a System,out.print(""); statement, please tell me how I can do this. :)
                fileInStream = new FileInputStream("C:/Documents and Settings/Benjamin Dahse/Dokumenter" +
                        "/NetBeansProjects/Online Multiplayer Game Client/build/classes/net/client/game/io/Cache/" +
                        "main_file_cache.DAT");
                dataInStream = new DataInputStream(fileInStream);This by the way, is how I get the path to the file, I want my DataInputStream to read.

    Thank you for your comment, but out of this code:
                int percentage = 0;
                byte[] buffer = new byte[15000000];
                while(true){
                    percentage += dataInStream.read(buffer, percentage, Math.min(buffer.length,
                            fileInStream.available() - percentage));
                    System.out.print(percentage / fileInStream.available() + "\n");
                    if(percentage >= fileInStream.available()){
                        break;
                }The only output I get is 3?

  • FCPX, How do I reconnect a video file that has been modified or over written?

    FCPX, How do I reconnect a video file that has been modified or over written?
    As an animator, I am constantly modifying and overwriting movies files that have already been imported into the Final Cut time line. In FCP7, I could easily modify and update movie files and have those changes appear in the timeline without the need to reimport and re-edit those clips, but FCPX seems to lose it's connection with any modified or overwritten file, making all the editing work I've done to these files worthless.
    Does anyone know of a way to reconnect to a modified or overwritten file? Because, this one single issue makes FCPX completely worthless to me.
    Andy Murdock

    If you import the new clip , select it and drag over the old offline clip , you can choose from the menu ...

  • Does an adobe reader read the Adobe acrobat document that has been downloaded from a web site

    I am having trouble opening anything that has been downloaded into a adobe acrobat document . I am wondering if I am suppose to have an Adobe reader to read it and why is it not  being read because it is not a supported file type or because  the file was damaged sent as an email attachment  and wasn't correctly decoded. I am not very computer illiterate and don't understand what I need to be able to get a embroidery designed sent to my computer and be able to open it up.?

    Hi Adpdfacct808,
    PDF is the document standard that you are trying to read. If you have Acrobat installed then you can open the pdf with Acrobat to read it.
    What error do you get when you try to open the document?
    Regards,
    Rave

  • I want to use icloud but i have a lot of music on itunes that has been downloaded from elsewhere on the internet. Will i be able to access this on icloud if it has not be bought through itunes?

    I want to use icloud but i have a lot of music on itunes that has been downloaded from elsewhere on the internet. Will i be able to access this on icloud if it has not be bought through itunes?

    Not on iCloud itself - what you need is 'iTunes Match' which seeks to find versions in the Store of songs you already have, and failing that allows you to upload your own copies. This will cost you $24.99 per year; it does not count towards your 5GB free iCloud space. Limit 25,000 songs (purchased songs do not count towards this limit). You will need iTunes 10.5.1 or later on your Mac or PC and iOS 5.0.1 or later on your iPhone 3GS or later, iPod touch (3rd and 4th generation), or iPad.
    Please see this page: http://www.apple.com/itunes/itunes-match/
    Also note that some people have found that when using this facility with songs which contain strong language, iTunes Match is substituting a cleaned-up version.

Maybe you are looking for

  • Sales Org assign to Plant

    Hello Everyone, I would need your help to confirm the following is true or clarify some doubts: 1. I understand that Sales Org (SOrg) is assigned to Plant   , thus :  Sorg := Plant 2. Does this also Implies : SOrg + Distr Channel := Plant? Not necess

  • Import Contacts from emails like hotmail, gmail,...

    Do you kno wany functions atht permit to import contacts from main emails (yahoo.com, hotmail, gmail, ...) if the user accepts to give his user and password . it is used to send invitations to diffrent users. A lot of sites begin to use that, it is c

  • My iphone is stuck on a frozen image saying 'restore failed'

    I Plugged my Iphone into the computer to get music onto it. It came up with 'set phone up as new IPhone or Restore from other device (with a list of all other devices) I accidentely pressed the other device option. Just as it started to restore my ph

  • Comparision between 2 schemas in between 2 clients

    Hi, Please let me know that any option available to compare  2 same schemas in between 2 clients. Thanks

  • Pick Release Batch generation

    Hi All, I want to automate the whole process of Pick Release->Ship Confirm For this I need to call the APIs. But I am not sure about which APIs I need to call. However I plan to first Create the Batch_id (WSH_PICKING_BATCHES_GRP.Create_Batch) for par