DCSIMG
How To Add File Upload To Team System Web Test - Shai Raiten

Shai Raiten

 Subscribe

How To Add File Upload To Team System Web Test

How To Add File Upload To Team System Web Test

May times people asks me how can I Upload File with Web Test, The first thing is to record the Web Test using “Web Test Recorder” or Fiddler.

But when running the Web Test its fails in the Upload section.

Why?

Before understanding the problem let get familiar with “File Upload Parameter”     image

Right click on the required request and select “Add File Upload Parameter”

image

Then you can add the field name and the file location.

So why file upload fails?

Have a look at a short web test I record inside blogs.microsoft.co.il blogs, I upload a photo and only the file name is there.

When running the web test team system cannot file your file.

image

Add the full path of the file.

image

And Now your web test will work just fine.

Comments

Manitra said:

Hello,

Thanks for the tips. Is there a way give a relative path of the document ?

My test document is in the WebTest Proect and I would like to use something like ../TestDocuments/WitIt.png instead of c:\Images\WitIt.png.

Thanks in advance for your help.

Manitra

# January 29, 2010 3:11 PM

shair said:

Hi,

You can set Deployment Item and than just write the path - TestDocuments\Witit.png

# January 30, 2010 5:29 PM

How To Add File Upload To Team System Web Test With Relative Path - Shai Raiten said:

Pingback from  How To Add File Upload To Team System Web Test With Relative Path - Shai Raiten

# January 30, 2010 5:41 PM

black onyx earrings said:

WOW, it really works !

# February 26, 2010 6:58 PM

aarthi said:

Thanks for the soln

# March 27, 2010 4:33 PM

aarthi said:

Thanks for the soln....

# March 27, 2010 4:34 PM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: