Contributions
Re: powershell from groovy no longer working
Well you exactly recreated the behaviour I got, directory got created in old version and not in the new version. No error code, nothing. So basically you are confirming that this is a bug and not something weird in my environment (we reproduced the error in multiple of our own environments). As for your suggestion to using jms, I don't think there is a way to directly access msmq through JMS. I think there used to be support through hermes, but that's deprecated. And of course the sample code was not the code I actually want fixed. Our actual code calls a powershell script with multiple parameters. The script searches a queue based on several criteria and saves a found message on file. But since that script is not the problem I thought I'd give a simpler example with the same behaviour to not distract from what I think is the actual issue.3 years agoPlace ReadyAPI QuestionsReadyAPI Questions668Views0likes0Commentspowershell from groovy no longer working
We have a powershell script to get something from a msmq queue. This used to run fine before readyapi 3.10 (I'm not totally sure which the latest version was that we tried before that(, but in 3.10 en 3.20 the script no longer runs. Also other script no longer work. For example creating a simple folder. import java.lang.String def powerShellCommand ='New-Item -Path \'C:\\JSONJournal\' -Name \'tests\' -ItemType \'directory\'' log.info(powerShellCommand) def shellCommand = "powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -Command \"${powerShellCommand}\"" def process = shellCommand.execute() log.info(shellCommand) process.waitFor() log.info(process.exitValue())3 years agoPlace ReadyAPI QuestionsReadyAPI Questions698Views0likes2Comments