Ranorex can easily be integrated into continuous integration (CI) systems, e.g. CruiseControl for .NET (CCNet). Just create a task that calls your Ranorex executables (<exec> task in CCNet, other systems should support similar).I am planning to integrate Ranorex automation and CruiseControl.
My task is as soon as the CruiseControl build completes I want to invoke the Ranorex tool to run my acceptance test cases.
Is this possible? Any suggestions on this?
To evaluate the outcome of the test, CI systems usually examine the return value of the executable (return value 0 generally signals success) or the its output text (e.g. "TEST FAILED" for failure). So, just use either way to signal failure if your Ranorex code throws an exception (Ranorex code templates use this approach).
There's one thing you need to watch out for: Ranorex needs a logged on user, for the applications under test need a desktop to be displayed on to be available for automation. We recommend to create a distinct user on the build machine who is always logged on and who runs the Ranorex executables or better the CI application.
Also remember to disable screensavers and the automatic locking of the computer. The computer might get locked even if you try logging on to the machine via Remote Desktop. We recommend using a VNC application in order to guarantee that this does not happen.
If you got any questions, don't hesitate to post them
Ranorex Support Team