{"id":4814,"date":"2014-06-11T14:13:50","date_gmt":"2014-06-11T18:13:50","guid":{"rendered":"http:\/\/www.webperformance.com\/load-testing-tools\/blog\/?page_id=4814"},"modified":"2016-02-27T17:08:24","modified_gmt":"2016-02-27T21:08:24","slug":"file-uploads","status":"publish","type":"page","link":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/real-browser-manual\/building-a-testcase\/file-uploads\/","title":{"rendered":"File Uploads"},"content":{"rendered":"<p>It&#8217;s possible to perform a file upload by typing a valid file path into an HTML5 file input form field.<\/p>\n<ol>\n<li>Set up your files in the File Upload preferences page (under Window &gt; Preferences &gt; Web Performance &gt; File Upload). All of the files you create here will be uploaded to your load engines in a special directory that exists for that purpose.<\/li>\n<li>Inside your testcase, create a &#8220;Type Text&#8221; action against the HTML file input field. The action <span style=\"text-decoration: underline;\">must not<\/span> clear the contents of the field before typing.<\/li>\n<li>Edit the data source in this action so that it is a concatenation of the &#8220;File path&#8221; data source and the name of the file. The file path data source points to the special file upload directory.<\/li>\n<\/ol>\n<p>The screenshot below shows how to build the file path:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5642\" src=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-content\/uploads\/2014\/06\/FileUploadDatasource.jpg\" alt=\"FileUploadDatasource\" width=\"315\" height=\"160\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s possible to perform a file upload by typing a valid file path into an HTML5 file input form field.<\/p>\n<p>Set up your files in the File Upload preferences page (under Window &gt; Preferences &gt; Web Performance &gt; File Upload). All of the files you create here will be uploaded to your load engines in a special directory that exists for that purpose.<br \/>\nInside your testcase, create a &#8220;Type Text&#8221; action against the HTML file input field. The action must not clear the contents of the field before typing.<br \/>\nEdit the data source in this action so that it is a concatenation of &hellip; <a href=\"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/articles\/real-browser-manual\/building-a-testcase\/file-uploads\/\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":53,"featured_media":0,"parent":4859,"menu_order":7,"comment_status":"open","ping_status":"open","template":"manual-page.php","meta":{"footnotes":""},"class_list":["post-4814","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/users\/53"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/comments?post=4814"}],"version-history":[{"count":14,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4814\/revisions"}],"predecessor-version":[{"id":5643,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4814\/revisions\/5643"}],"up":[{"embeddable":true,"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/pages\/4859"}],"wp:attachment":[{"href":"https:\/\/www.webperformance.com\/load-testing-tools\/blog\/wp-json\/wp\/v2\/media?parent=4814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}