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

Cannot get my path that configured in *.testsettings file

1 Answer 72 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Totti
Top achievements
Rank 1
Totti asked on 06 Jul 2011, 11:38 AM
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 ?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 06 Jul 2011, 05:28 PM
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?
Tags
General Discussions
Asked by
Totti
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or