Running exe from ranorex folders

Class library usage, coding and language questions.
vishni
Posts: 14
Joined: Wed May 26, 2021 11:51 pm

Running exe from ranorex folders

Post by vishni » Wed May 26, 2021 11:57 pm

Hi,

I am trying to run an .exe file which is location on my local system. I want to have this file as part of the renorex solution and want the recordings to access it. The exe would be uploaded to git so anyone can access it. How is it done with ranorex and where can I place this file and how to access it ?

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

Re: Running exe from ranorex folders

Post by odklizec » Fri May 28, 2021 9:37 am

Hi,

Just put the exe to a folder inside solution, e.g. Data and make it included in project and set copy to output dir to True...
Then add Run application action to recording of your choice and type name of exe to File name field and "Data" to Working directory field. That's all ;)
RunApp.png
You do not have the required permissions to view the files attached to this post.
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

vishni
Posts: 14
Joined: Wed May 26, 2021 11:51 pm

Re: Running exe from ranorex folders

Post by vishni » Sat Jun 05, 2021 11:58 am

Thanks for the solution !!

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

Re: Running exe from ranorex folders

Post by odklizec » Mon Jun 07, 2021 8:48 am

You are welcome ;)
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

shaily.gajjar
Posts: 1
Joined: Thu Jun 17, 2021 11:47 am

Re: Running exe from ranorex folders

Post by shaily.gajjar » Tue Jun 22, 2021 8:32 pm

Hi,

I tried this solution but can you please how to include Data folder in project and set copy to output dir to True..? I am very new to Ranorex and can't find these options.

Regards

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

Re: Running exe from ranorex folders

Post by odklizec » Wed Jun 23, 2021 9:00 am

Hi,

I'm afraid, there is no option to set entire Data folder to copy to output directory. YOu can include entire folder to project, but then you must set "copy to output dir" file by file. Boring, but there is no way around (maybe except manual editing of csproj file).
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