Comments (4)
I normally get this:
Error: Test host process exited unexpectedly.
Error: Failed to queue test run 'Administrator@TESTING-1 2017-10-26 03:31:19': Unable to start the agent process.
PsExec doesn't seem to help in any way, so I'm at a loss as to how to workaround this.
from windowsprotocoltestsuites.
Hi, GSam
Currently, we haven't test with WinRM and there's no guidance for WinRM yet. I would suggest you have a try with powershell.
Also, we would have an investigation on how to test with WinRM and back here to give you a response later.
Thanks for patience.
from windowsprotocoltestsuites.
The use case is that I want to trigger the tests remotely. What protocol it uses doesn't really matter, but I've discovered a few additional details:
- Running with
%vspath%"..\IDE\mstest.exe /noisolation
appears to trigger the test code to run but it seems there are other issues with running without isolation (while also running under WinRM).
I also don't know if the tests will behave any differently under isolation.
First of all, if you nest this command within another shell, the tests fail to begin in the same way originally. Furthermore, mstest.exe will always hang at the end of a run. This would be fine if I could capture the output (and kill it at the appropriate time), but tests suddenly fail upon redirection of standard output. This seems to be related to the problem with nested shells.
<Message>Class Initialization method Microsoft.Protocol.TestSuites.Kerberos.TestSuite.KILE.KileInteractiveLogonTest.ClassInitialize threw exception. System.IO.IOException: System.IO.IOException: The handle is invalid.
.</Message>
<StackTrace> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.Console.SetBufferSize(Int32 width, Int32 height)
at System.Console.set_BufferHeight(Int32 value)
at Microsoft.Protocols.TestTools.TestClassBase.Initialize(TestContext testContext, String testSuiteName)
at Microsoft.Protocols.TestTools.TestClassBase.Initialize(TestContext testContext)
at Microsoft.Protocol.TestSuites.Kerberos.TestSuite.KILE.KileInteractiveLogonTest.ClassInitialize(TestContext testContext) in e:\Jenkins\workspace\CodeSign-TestSuites\TestSuite\TestSuites\Kerberos\src\TestSuite\KILE\KileInteractiveLogonTest.cs:line 20
</StackTrace>
Even addressing (or ignoring) these issues, once you combine WinRM and mstest.exe, the tests suddenly fail again for no clear reason. It appears to be related to environment issues.
I've found one particular workaround by using Win32-OpenSSH and python pexpect (with mstest.exe) to control a remote shell. The tests don't seem to fail surreptitiously, it still hangs, but the standard output can be retrieved correctly. So far this seems the most viable solution for us.
-
Triggering a test run via Team Foundation server and remote calls seems entirely possible. Unfortunately this requires significantly more setup time (part of which is probably manual or at least hard to automate). I would prefer not to have to do this to trigger a test run remotely because having a long-term Windows instance for this sole purpose is not practical for us (and neither is setting it up every time), but it does appear the most standard way to do so.
-
There might be a task scheduler based solution. It appears that you can trigger the tests in this way without the nested shell issue occurring. But it needs to run under the correct user context and without an open session, which seems a bit bothersome to configure (assuming it will still work once it's been setup).
from windowsprotocoltestsuites.
Hi Sam,
The guide for using PowerShell Core to remotely trigger test suite is documented in our wiki. https://github.com/Microsoft/WindowsProtocolTestSuites/wiki/Remotely-Trigger-Test-Suites
This solution leverages PowerShell Core for its cross platform flexibility, and it uses a task scheduler based solution to avoid the issue you may have encountered when directly executing the test suite in a remote shell session.
from windowsprotocoltestsuites.
Related Issues (20)
- WindowsProtocolTestSuites : STATUS_LOGON_FAILURE HOT 5
- Hp 430 notebook Laptop with Window 7 platinum 32-bit showing error. HOT 2
- Trojan:MSIL/AgentTesla.SMK!MTB Virus detected in FileServer-TestSuite-ServerEP.zip v4.21.9.0 HOT 3
- Test host process crashed : No usable version of libssl was found HOT 3
- play list support, or method to re-run single tests HOT 7
- Misleading assertion failure messages in QueryDirectoryTestCases.cs
- Algorithm_NotingFileModified_Dir_LastAccessTime could be improved HOT 2
- Want to run AlternateDataStream tests on OTHERFS HOT 3
- FileInfo_Query_FileInternalInformation could run on OTHERFS HOT 3
- FileInfo_Query_FileBasicInfo_File_IsIntegritySupported always fails if OTHERFS and named streams HOT 4
- MS-WSP: CPMConnectIn request appears to be corrupt HOT 2
- This repo is missing important files
- PTMCLi error in NegotiateTestCaseS1040. HOT 2
- Could test get FILE_OBJECTID_BUFFER functions HOT 1
- Could test SMB2 setinfo BASIC with time = -2 HOT 3
- Directory entry AllocationSize values are implementation-specific HOT 3
- Directory entry ShortName values are implementation-specific HOT 3
- SMBD support HOT 1
- Timestamp MinusTwo tests are in BVT but others are not HOT 2
- active directory MS-SRVS protocol support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from windowsprotocoltestsuites.