Run Powershell script in Ranorex Solution?
Run Powershell script in Ranorex Solution?
Hello, can I call Powershell script "doSomething.ps1" in Ranorex TestSuite? in UserCodeModule or in Recoding as "Run Application"? Many thanks!
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run Powershell script in Ranorex Solution?
Hello TestXYZ,
Yes, you can execute Powershell scripts within a UserCodeModule. Please follow the instructions on how to do so: http://blogs.msdn.com/b/kebab/archive/2 ... rom-c.aspx
Regards,
Robert
Yes, you can execute Powershell scripts within a UserCodeModule. Please follow the instructions on how to do so: http://blogs.msdn.com/b/kebab/archive/2 ... rom-c.aspx
Regards,
Robert
Re: Run Powershell script in Ranorex Solution?
Hi Robert,
thank you very much for your link. It works fine but write Powershell commands in C# as UserCodeModule - it would not so flexible for any changes in Powershell logic. On the other way I would call PS in Batch file (.cmd) such as then put it to action “Run Application” in Ranorex.
However it would be very nice, if “Run Application“ (or "Run Script") supports Call of Powershell directly in the later Ranorex release.
Best wishes
thank you very much for your link. It works fine but write Powershell commands in C# as UserCodeModule - it would not so flexible for any changes in Powershell logic. On the other way I would call PS in Batch file (.cmd) such as
Code: Select all
start /B powershell.exe -file ".\doSomething.ps1"
However it would be very nice, if “Run Application“ (or "Run Script") supports Call of Powershell directly in the later Ranorex release.

Best wishes
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Run Powershell script in Ranorex Solution?
Hello,
You are welcome!
In order to raise and discuss your feature request may I ask you to send it to [email protected]? We want to handle feature request via email in order to avoid misunderstandings.
Thank you in advance.
Regards,
Robert
You are welcome!
In order to raise and discuss your feature request may I ask you to send it to [email protected]? We want to handle feature request via email in order to avoid misunderstandings.
Thank you in advance.
Regards,
Robert