## Open ranorex sudio and run from cmd line?

Ram_Sankar
Posts: 13
Joined: Mon Mar 17, 2014 8:17 am

### Open ranorex sudio and run from cmd line?

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

Thanks in anticipation,
Ram

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

### Re: Open ranorex sudio and run from cmd line?

Hi,

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:
http://www.ranorex.com/support/user-gui ... 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:
http://www.ranorex.com/blog/integration
Pavel Kudrys
Ranorex explorer at Descartes Systems