Micro Focus QTP (UFT) Forums
Multipart form data retrieval problems running QC from host - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Multipart form data retrieval problems running QC from host (/Thread-Multipart-form-data-retrieval-problems-running-QC-from-host)



Multipart form data retrieval problems running QC from host - mikeyrad - 11-03-2010

I am using QTP 10 (QuickTest Professional Add-In) for testing an ASP.NET MVC application. I am having problems retrieving the value of a dropdown box in a file upload form (enctype="mulitpart/form-data".) It works fine when I run locally but is not running when I run the test on another host. It seems to be retrieving the filename (input type="file"), but is not retrieving the value of the <select>. This causes my server-side validation to send an error message back to the browser, and my test fails. Any ideas that you might have would definitely help. Thanks.
I should note that when the form is submitted, the validation method reads the file to make sure that it is formatted correctly. This takes about one and a half seconds.