Cannot get my path that configured in *.testsettings file

2 posts, 0 answers
  1. Totti
    Totti avatar
    10 posts
    Member since:
    Sep 2010

    Posted 06 Jul 2011 Link to this post

    In debug and running  enviroment, in code behind, I cannot get my path that configured in *.testsettings file even I have be enabled Deployment (you can see the attached file), it alway returns default path is "D:\"
    (I using TestStudio_2011_1_609 version)

    Colud you have any idea ?
  2. Cody
    Admin
    Cody avatar
    3360 posts

    Posted 06 Jul 2011 Link to this post

    Hi Totti,

    When you run tests from Test View in Visual Studio, all the necessary files to execute the tests are copied into a "deployment" directory and the test is then executed out of that folder. No reference to the source folder(s) is maintained during test execution in this scenario.

    To programmatically obtain this deployment folder use this code:
    this.ExecutionContext.DeploymentDirectory;

    Greetings,
    Cody
    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