The file that was (or wasn't) there
Hello,
I'm calling some nUnit tests from a C# WCF service, the how isn't too important. At any rate this WCF service is running as:
myProcess.Account = ServiceAccount.LocalSystem;
The nUnit test creates a testresult.xml that contains the test results.
If I open an Administrator command prompt as me I don't see the file:
c:\Windows\System32>dir testresult.xml
Volume in drive C is Windows C
Volume Serial Number is D0B0-****
Directory of c:\Windows\System32
File Not Found
c:\Windows\System32>whoami
mydomain\charlie
c:\Windows\System32>
If I use the sysinternals psexec tool ( PSEXEC -i -s -d CMD) to open a command prompt as system, I do see the file:
C:\Windows\system32>dir TestResult.xml
Volume in drive C is Windows C
Volume Serial Number is D0B0-****
Directory of C:\Windows\system32
08/23/2012 11:10 AM 3,412 TestResult.xml
1 File(s) 3,412 bytes
0 Dir(s) 41,799,045,120 bytes free
C:\Windows\system32>
I also see the file in explorer if I browse to the c:\windows\system32 directory.
It's mysterious to me that I can't see this file at all in a command prompt. I've experienced not being able to view the contents of a folder, or not being able to edit a file, but I've never seen it where I couldn't see a specific file (unless it's hidden),
and this file isn't hidden. It especially doesn't make sense that I CAN see it in Windows Explorer. By the way I'm running Win7 x64.
-Charlie
August 27th, 2012 11:09am
Hi,
If the issue only occur on this file, the cause should be the way of
testresult.xml generation.
You may refer to the answers in this link:
http://stackoverflow.com/questions/4369861/xml-file-not-copying-to-test-output-directory
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.Tracy Cai
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
August 29th, 2012 2:37am
Hi,
If the issue only occur on this file, the cause should be the way of
testresult.xml generation.
You may refer to the answers in this link:
http://stackoverflow.com/questions/4369861/xml-file-not-copying-to-test-output-directory
Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.Tracy Cai
TechNet Community Support
August 29th, 2012 2:43am