This is a migrated thread and some comments may be shown as answers.

Best Practices - Tests that require the upload of a file

1 Answer 39 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 21 Jul 2011, 04:51 PM
We have a good number of tests that we are looking to automate which require that the test uploads a .txt or .csv file to our system.  This is easy to accomplish on my laptop - but my question is what would be the best way to set this up if we plan on running these same tests on different workstations or using the Runtime Edition on a Rackspace server?  In other words, how we can ensure that the files to be uploaded can be found by the tests regardless of which machine the tests are being executed on?  Is there a way to add these files as attachments to the project or individual tests?

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 25 Jul 2011, 07:55 PM
Hi Jeff,

The best way is to store the files in a network-shared folder. Ensure all machines that will be executing tests have access to this location. Then you enter the network path in the FileUploadPath property for the "Handle FileUpload dialog" step.

Also review our KB article on How to Use Relative Paths in File Uploads. This method is pursuant to your idea of keeping the files attached to the project.

Regards,
Anthony
the Telerik team
Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

Have you looked at the new Online User Guide for Telerik Test Studio?
Tags
General Discussions
Asked by
Jeff
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or