**Issue Details **
When trying to execute the above method (ExecuteUITest) with a value passed through the parameter “Workflow”, Iam able to reach the StartUITests.ps1 where this workflow value is passed as a parameter again to another solution and it executes the respective methods inside the class file based on the parameter value passed.
The issue here is its invoking the method based on the parameter name successfully and once the method execution is completed it returns with an error and the test script execution is getting failed
Error details
Error Message: System.Management.Automation.CmdletInvocationException : A command that prompts the user failed because the host program or the command type does not support user interaction. The host was attempting to request confirmation with the following message:
Data:
System.Management.Automation.Interpreter.InterpretedFrameInfo: System.Management.Automation.Interpreter.InterpretedFrameInfo
----> System.Management.Automation.Host.HostException : A command that prompts the user failed because the host program or the command type does not support user interaction. The host was attempting to request confirmation with the following message:
Stack Trace:
at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
at DcsPlus.ApiTests.BatchOMSConfig.Test.cs.test.BatchOMSConfigWorkflow.ExecuteUITest(String Workflow) in D:\Final\IuT_TA\src\APItests_Playground\DcsPlus.ApiTests.BatchOMSConfig.Test\BatchOMSConfigWorkf
low.cs:line 253
at DcsPlus.ApiTests.BatchOMSConfig.Test.cs.test.BatchOMSConfigWorkflow.BatchOMS_projectConfiguration() in D:\Final\IuT_TA\src\APItests_Playground\DcsPlus.ApiTests.BatchOMSConfig.Test\BatchOMSConfigWork
flow.cs:line 71
–HostException
at System.Management.Automation.Internal.Host.InternalHostUserInterface.ThrowPromptNotInteractive(String promptMessage)
at System.Management.Automation.Internal.Host.InternalHostUserInterface.Prompt(String caption, String message, Collection`1 descriptions)
at Microsoft.PowerShell.Commands.ReadHostCommand.BeginProcessing()
at System.Management.Automation.Cmdlet.DoBeginProcessing()
at System.Management.Automation.CommandProcessorBase.DoBegin()
Please let me know am I missing anything… immediate response is highly appreciated
Before we proceed … please do not post images of code, console output or error messages as this is not helpful at all. Instead post the plain text and format it as code. This makes it easy for people willing to help you to actually copy your code and use it right away to reproduce your issue if needed.
When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.