Best Practices - Tests that require the upload of a file

2 posts, 0 answers
  1. Jeff
    Jeff avatar
    1 posts
    Member since:
    Oct 2012

    Posted 21 Jul 2011 Link to this post

    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?
  2. Anthony
    Anthony avatar
    19 posts

    Posted 25 Jul 2011 Link to this post

    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.

    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?
Back to Top