Test fails with below exception,
Exception:
System.InvalidOperationException Sequence contains no elements
at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source)
at Citrix.Console.PowerShellSdk.EnvironmentTestService.Scripts.RunTestTaskScript.UpdateProgress(Guid taskId)
at Citrix.Console.PowerShellSdk.EnvironmentTestService.Scripts.RunTestTaskScript.RunScript()
at Citrix.Console.PowerShellInteraction.PowerShellScript`1.Run()
at Citrix.Console.Shared.UI.Tests.TestLauncher.Start()
at Citrix.Console.DeliveryCenter.UI.Mmc.Commands.ExecuteDeliveryCenterTestCommand`1.ExecuteWithItem(T item, IProgressReporter reporter, Canceller canceller)
at Citrix.Console.Common.OperationTimer.TimeBlock(Action operation)
at Citrix.Console.CommonControls.ProgressDisplay.GenericProgressOperationWithFeedBack.PerformOperationInternal()
at Citrix.Console.CommonControls.ProgressDisplay.ProgressWindowOperation.PerformOperation()
at Citrix.Console.CommonControls.ProgressDisplay.ProgressWindowViewModel.PerformAction(Action operationComplete)
DesktopStudio_PowerShellHistory : Run Tests
New-EnvTestDiscoveryTargetDefinition -AdminAddress “DDC.domain.com:80” -TestSuiteId “Infrastructure” | Set-Variable -Name “testTarget0”
Get-Variable -Name @(“testTarget0″) -ValueOnly | Start-EnvTestTask -AdminAddress “DDC.domain.com:80” -RunAsynchronously
Remove-Variable -Name “testTarget0”
From the eventvwr, we also noticed that Citrix.Env.Test.exe service crashed due to an unhandled exception.
