|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Sadly, yes. Others had this problem as well ...
http://stackoverflow.com/questions/21112717/error-trying-to-run-mstest-on-jenkins
I am getting a similar error:
Path To MSTest.exe: mstest.exe
Result file was not found so no action has been taken. file:/D:/Jenkins/jobs/BX%20AQM%20-%20Tests/workspace/products/BX/AQM_mstest.trx
FATAL: null
java.lang.NullPointerException
at org.jenkinsci.plugins.MsTestBuilder.perform(MsTestBuilder.java:144)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
at hudson.model.Run.execute(Run.java:1676)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:231)
Could this be a file permission problem on Win2012?
If I pop up a cmd prompt on the Jenkins machine (which has VS2010 installed), then the test run fails:
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>mstest /testcontainer:"D:
\Jenkins\jobs\BX Tests\workspace\products\BX\Test.dll"
Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Loading D:\Jenkins\jobs\BX Tests\workspace\products\BX\Test.dll...
Starting execution...
Final Test Results:
Results Top Level Tests
------- ---------------
Not Executed ModuleTest.UnitTest1.TestMethod1
0/1 test(s) Passed, 1 Not Executed
Summary
-------
Test Run Error.
Not Executed 1
---------------
Total 1
Results file: c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\TestResult
s\user_BUILDSERVER 2014-06-30 15_52_47.trx
Test Settings: Default Test Settings
Run has the following issue(s):
Failed to queue test run 'user@BUILDSERVER 2014-06-30 15:52:47': Access to t
he path 'c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\TestResults\user_BUILDSERVER 2014-06-30 15_52_47' is denied.
Error when trying to save result file: Could not find a part of the path 'c:\Pro
gram Files (x86)\Microsoft Visual Studio 10.0\VC\TestResults\user_BUILDSERVE
R 2014-06-30 15_52_47.trx'.
Same happens with the /noresults cmd line.
But if I change the working folder to c:\Temp, then run the above command, its OK. So it would seem MSTest fails to create some file and returns error? Also if I run MSTest from the VS cmd prompt, which has Admin privileges, then it works. Maybe multiple problems...