Im trying to run a Test Studio test as part of my Release Management.
I have a Powershell script to run the test.
try
{
artoftest.runner.exe test="E:\TestStudioTry1\TestingPrototype\logon.tstest"
if (!$?)
{
write-output "Failed"
throw "Tests Failed"
}
}
catch
{
Write-Error $_.Exception.Message
# exit 1 # to get an error flagged so it can be seen by RM
}
This script runs fine from Powershell ISE but when running as a step in RM it fails, looking at the logs i get.
"Message": "------------------------------------------------------------\r\n'09/09/2016 16:45:02' - Executing test: 'logon', path: 'logon.tstest.'\r\n'09/09/2016 16:45:02' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2016.2.630.0'.\r\n'09/09/2016 16:45:02' - Starting execution....\r\n'09/09/2016 16:45:04' - Failure detected during execution. Details:\r\n------------------------------------------------------------\r\n'09/09/2016 16:45:04' - ArtOfTest.WebAii.Exceptions.UnsupportedNonInteractiveOperationException: Dialog monitoring can not be enabled when running in non-interactive mode. Follow the link for more information: http://docs.telerik.com/teststudio/user-guide/command-line-test-execution/continuous-integration/team-foundation-server-builds.aspx\r\n at ArtOfTest.WebAii.Design.Execution.ExecutionContext.SetDialogMonitoring()\r\n at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTestIteration(Object codeBehindInstance, Boolean isDataDriven)\r\n at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)\r\n at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)\r\n------------------------------------------------------------\r\n'09/09/2016 16:45:04' - Test completed!\r\n",
How does one include a test as part of a release management flow?