English|Deutsch
Subscribe Ranorex Announcements Feed Ranorex LinkedIn Ranorex twitter Ranorex Facebook

Integrated Ranorex Recorder

The integrated Ranorex Recorder captures user actions such as mouse movements or keystrokes and generates Ranorex automation code directly within your test project. The Ranorex Recorder is also available as standalone tool in the setup package. Both the integrated and the standalone methods offer the same functionality for generating test automation code using our modern capture replay editor. Have a look at the Recorder documentation to see how to create and edit Ranorex recordings. Read More...

Every newly created Ranorex Studio project automatically contains an empty recording called 'Recording1.rxrec'. In the default case, the empty recording automatically refers to an empty object repository which is also part of the project template ('EmptyProjectRepository.rxrep').

Ranorex Studio - newly created project

Code generation

Start a new recording by clicking the 'Record' button. Stop the recording by clicking the 'Stop' button in the Recorder tool bar. All recorded action items are listed in the Recorder's actions table and all related UI elements are stored within the associated Repository file.

Recording within Ranorex Studio
Automatically generated Repository items by the Recorder

All repository items generated by the Recorder are stored within the related repository file (*.rxrep). Ranorex Studio supports two different views of the repository:

  • Standard file based view (shown above right)
  • Recorder integrated view (shown above left)

Both editors refer to the same repository file so changes made within one view causes the other to update automatically.

After saving the recording, Ranorex Studio automatically generates code files for both, the recording and the repository.

Generated code files within Ranorex Studio project
Generated recording code
Generated repository code
Use the Recorder's code action to extend the generated code with user specific code. Read more about user code actions here...

Replay Single Recording - Compile and Execute Code

Within Ranorex Studio a single recording file can be started by clicking the 'Play' button within the Recorder's design view. But please consider, that that kind of replay does not execute user code actions.

In contrast to replaying a single recording, compiling and starting the Ranorex Studio project executable is triggered by the 'Run' button provided by the Studio's toolbar. In that case it's necessary to call the recording's 'Start()' method within the project's static main routine.

Difference between starting the project executable and starting a single recording

How to use and call Recorder generated automation code

To run recorder generated code, you simply call the Recorder generated method (Start) from the main routine of your test application as follows:

How to call the recorder generated method 'Recording1.Start()'