Page 1 of 1

Open ranorex sudio and run from cmd line?

Posted: Tue May 13, 2014 9:52 am
by Ram_Sankar
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,
Ram

Re: Open ranorex sudio and run from cmd line?

Posted: Tue May 13, 2014 10:43 am
by odklizec
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