How to get Ranorex to starting a powershell script

Ask general questions here.
AviatorFly
Posts: 15
Joined: Fri Sep 06, 2019 2:21 pm

How to get Ranorex to starting a powershell script

Post by AviatorFly » Wed Oct 21, 2020 1:47 pm

Hi all,

I was wondering if there is a simple way to get Ranorex to start a PowerShell script. There was another post here with a link that is broken.

It appear that the action Run application is not working for me. I am trying to avoid having to write user code.

Thanks

Ricardo

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6795
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: How to get Ranorex to starting a powershell script

Post by odklizec » Wed Oct 21, 2020 2:49 pm

Hi,

It should be possible to start powershell script, via Run application command. Simply call PowerShell.exe with appropriate parameters and don't forget to fill working directory.

Alternatively, you can store entire powershell script in a batch file (bat or cmd) and simply call this file via Run command.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration