How to set the relative path in the Generic Test working directory (Visual Studio 2010) and the final result file?
As I understand it, there is no way to set these locations programmatically in the Generic test, because the general test has only a property page and no page for writing C # code.
I have a folder structure as follows
from: \ Files \ GenericTestFolder \ generictest.sln C: \ Files \ SummaryFiles \ summary.xml
Now I need to set the working directory as follows (to start an external program) C: \ Files \
And the location of the final result file: C: \ Files \ SummaryFiles \ summary.xml
I tried the following options to set the location of the working directory (WD) and the summary file (SF) file:
setting WD to ".. \" or ". \" or "\" → they all seem to set the directory to c: \, so this is not useful to me.
Using an integrated visual studio environment such as% TestDeploymentDirectory% does not seem to work with ".. \", that is,% TestDeploymentDirectory% .. \ does not translate the% TestDeploymentDirectory% parent at run time.
source
share