Open ranorex sudio and run from cmd line?

Ask general questions here.
Posts: 13
Joined: Mon Mar 17, 2014 8:17 am

Open ranorex sudio and run from cmd line?

Post by Ram_Sankar » Tue May 13, 2014 9:52 am

Good Morning Folks,

Hope this Tuesday morning is coming well for all !

A wee question please: If I want to Open ranorex suite from the command prompt and run it from the command prompt, which command might do the job?

I am trying to create a batch file that should automatically open the Ranorex studio and do the build from the command prompt.
I would really appreciate if you can send your suggestions soon as I seem to have a pile of tasks assigned for today :oops:

Thanks in anticipation,

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

Re: Open ranorex sudio and run from cmd line?

Post by odklizec » Tue May 13, 2014 10:43 am


If you want to build and then run the solution, you don't need to use Ranorex Studio at all. All you need to do is to build the solution using msbuild.exe and then run the compiled exe.

MSBuild.exe should be already installed on your PC with Ranorex (e.g. c:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe).

So the command line to build the solution should look like this:

Code: Select all

path\to\MSBuild.exe "path\to\SolutionName.sln /p:Configuration=Release /t:Clean;Build
After the build is finished, you can run the compiled test suite with command line parameters described here: ... html#c4827

I personally would recommend you to invest some time and setup proper continuous integration solution, instead of using batch files, to build and run your tests. It's much more reliable way and once setup, it will make your life much easier ;) See these blogs about integrating Ranorex with various CI systems:
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