{"id":1218,"date":"2010-07-20T11:36:54","date_gmt":"2010-07-20T15:36:54","guid":{"rendered":"http:\/\/www.webperformanceinc.com\/load_testing\/blog\/?p=1218"},"modified":"2017-05-16T10:14:53","modified_gmt":"2017-05-16T14:14:53","slug":"configuring-file-uploads","status":"publish","type":"post","link":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/2010\/07\/configuring-file-uploads\/","title":{"rendered":"Configuring File Uploads"},"content":{"rendered":"<p>When a testcase has a file upload in it, Load Tester automatically handles the file upload during replays and load tests. However, in many tests each user should upload different file contents (and possibly use a different file name). Load Tester has streamlined this process to make it very easy to handle. Just follow these easy steps:<br \/>\n1) Gather the set of files to be uploaded<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1220\" title=\"FileUpload-files\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-files1.png\" alt=\"FileUpload-files\" width=\"567\" height=\"201\" srcset=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-files1.png 567w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-files1-300x106.png 300w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-files1-500x177.png 500w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/p>\n<p>2) Import them into Load Tester (Window &gt; Preferences &gt; Web Performance &gt; File Upload) and generate a dataset<\/p>\n<div id=\"attachment_1222\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1222\" class=\"size-large wp-image-1222\" title=\"FileUpload-prefs\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-prefs-500x437.png\" alt=\"File Upload preferences page in Load Tester\" width=\"500\" height=\"437\" srcset=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-prefs-500x437.png 500w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-prefs-300x262.png 300w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-prefs.png 628w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><p id=\"caption-attachment-1222\" class=\"wp-caption-text\">File Upload preferences page in Load Tester<\/p><\/div>\n<p>3) Find the file field in the testcase using the Fields View<\/p>\n<div id=\"attachment_1224\" style=\"width: 510px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1224\" class=\"size-large wp-image-1224\" title=\"FileUpload-field\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-field-500x232.png\" alt=\"File upload field in Load Tester's Fields View\" width=\"500\" height=\"232\" srcset=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-field-500x232.png 500w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-field-300x139.png 300w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-field.png 569w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><p id=\"caption-attachment-1224\" class=\"wp-caption-text\">File upload field in Load Tester&#8217;s Fields View<\/p><\/div>\n<p>4) Configure the field to use the files specified in the dataset<\/p>\n<div id=\"attachment_1226\" style=\"width: 408px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1226\" class=\"size-large wp-image-1226\" title=\"FileUpload-configure\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-configure-398x500.png\" alt=\"Configure the source of the file upload field\" width=\"398\" height=\"500\" srcset=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-configure-398x500.png 398w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-configure-239x300.png 239w, https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2010\/07\/FileUpload-configure.png 430w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><p id=\"caption-attachment-1226\" class=\"wp-caption-text\">Configure the source of the file upload field<\/p><\/div>\n<p>The testcase is now ready to run! Load Tester will automatically send the files to the load engine prior to starting the next load test. Note that Load Tester has copied the files into its own private area, so if you change the contents of the files, the changes files must be re-imported into Load Tester so that the changes will be recognized and re-sent to the load engines.<\/p>\n<p>For more details, watch the <a href=\"http:\/\/files.webperformance.com\/videos\/FileUploads.mp4\">Configuring File Uploads video<\/a>.<\/p>\n<p>Chris<br \/>\nChief Engineer<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When a testcase has a file upload in it, Load Tester automatically handles the file upload during replays and load tests. However, in many tests each user should upload different file contents (and possibly use a different file name). Load Tester has streamlined this process to make it very easy to handle. Just follow these easy steps:<br \/>\n1) Gather the set of files to be uploaded<\/p>\n<p>2) Import them into Load Tester (Window &gt; Preferences &gt; Web Performance &gt; File Upload) and generate a dataset<br \/>\n3) Find the file field in the testcase using the Fields View<br \/>\n4) Configure the field to use the &hellip; <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/2010\/07\/configuring-file-uploads\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[89,237],"class_list":["post-1218","post","type-post","status-publish","format-standard","hentry","category-load-tester-software","tag-file-upload","tag-load-testing"],"_links":{"self":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/1218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/comments?post=1218"}],"version-history":[{"count":16,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/1218\/revisions"}],"predecessor-version":[{"id":5752,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/posts\/1218\/revisions\/5752"}],"wp:attachment":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/media?parent=1218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/categories?post=1218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/tags?post=1218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}