cancel
Showing results for 
Search instead for 
Did you mean: 

Execute a Powershell using Groovy test step

SOLVED
Highlighted
Occasional Contributor

Execute a Powershell using Groovy test step

Is it possible to execute a Powershell file using the groovy test step?

 

for example: 

 

mypowershell.ps1

 

located in C:\test

 

?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Leader

Re: Execute a Powershell using Groovy test step

Groovy add the execute method to the String object. This can be used to run your Powershell script from the command line. See the following for an example of the execute method:

 

https://mrhaki.blogspot.com/2009/10/groovy-goodness-executing-string-or.html

3 REPLIES 3
Community Leader

Re: Execute a Powershell using Groovy test step

Groovy add the execute method to the String object. This can be used to run your Powershell script from the command line. See the following for an example of the execute method:

 

https://mrhaki.blogspot.com/2009/10/groovy-goodness-executing-string-or.html

Moderator

Re: Execute a Powershell using Groovy test step

Thanks for your reply, @Radford !

@mrdwprice, was your question answered?

 


Olga Terentieva
SmartBear Assistant Community Manager

Moderator

Re: Execute a Powershell using Groovy test step

I guess we can mark @Radford's reply as a solution so far. And, if @mrdwprice gets back with a different solution, we will mark it as the main one. 

 


Olga Terentieva
SmartBear Assistant Community Manager

New Here?
Join us and watch the welcome video:
Top Kudoed Authors