Automated Start of the User Interface with Powershell-Window

Ranorex Spy, Recorder, and Studio.
steffi
Posts: 4
Joined: Mon Dec 09, 2019 2:45 pm

Automated Start of the User Interface with Powershell-Window

Post by steffi » Mon Dec 09, 2019 3:08 pm

Hey guys,

I am using the trial version of Ranorex Studio.
I would like to perform automated GUI Software tests and start our own application automatically.

A Powershell-Window can start the application with the use of specific commands.
These commands are stored in a file.
I don't know very much about Ranorex Studio yet and I don't know how to implement this.
Could someone help me?

In a record, I could click a shortcut that will automatically execute the powershell with the commands.
Unfortunately, this works only temporarily and it is tied to the place of the shortcut on the desktop.

I hope someone understands my situation and can help me.
I you have any questions, please answer me, I'll try to explain it better. :)

Thanks.
Steffi

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

Re: Automated Start of the User Interface with Powershell-Window

Post by odklizec » Tue Dec 10, 2019 12:34 pm

Hi,

I think you best chance is to use Run Application command, where you can specify powershell.exe as app to start and required powershell file and parameters, as argument.

Check these stackoverflow posts, regarding powershell command line usage...
https://stackoverflow.com/a/16436712
https://stackoverflow.com/a/27912928
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