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

How to generate code from a recording

How to generate code from a recording

Export and integrate recorded actions into an existing test automation project by clicking the ‘Generate Code’ button. Within Ranorex Studio the generated code will be adapted automatically after each change of the recording within the project's namespace.

Generate code from a recording

The Recorder generates two files. One file represents all repository object items required for the test while the other one contains the test automation code based on these items.

Generated C# code based on the used repository items
Generated C# test automation code based on the action items

Note: The generated test automation requires the generated repository code within the same namespace. For this reason, both files should be added to your test automation project.

The code content generated by the Recorder depends on several configuration settings within the recording. In addition, the generated code contains delay actions between each recorded action to ensure a realistic user simulation. Activate Turbo Mode to prevent the Recorder from generating delay actions.

Generated code using normal speed
Generated code using turbo mode