Beginner code analysis

Ask general questions here.
Mohan L
Posts: 1
Joined: Mon Jun 08, 2015 4:07 pm

Beginner code analysis

Post by Mohan L » Mon Jun 29, 2015 10:35 am

Hi There. I am new to Ranorex and aware of Record and Play. Could you please suggest how do i start to look into the coding aspect of it (code of the recorded one) for analysis. I am decent in Java but beginner in C#. I have a simple test open application-login-logout. Please suggest how to start understanding this code and where do i get this code.

User avatar
Ranorex Guru
Ranorex Guru
Posts: 7469
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Beginner code analysis

Post by odklizec » Mon Jun 29, 2015 1:25 pm


Each recording contains two cs files. The one generated by Ranorex (RecordingName.cs) and the other one for user defined code (RecordingName.UserCode.cs). If you want to examine the code for recorded actions, just open the first one. You can also right click each recorded action and from the appeared menu select View Code action. Eventually press Ctrl+Enter for selected recorded action.

Please remember that you are not supposed to edit the code behind the recorded actions! It's Ranorex generated code and any change you make in this file will get lost after saving/compiling solution.

Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration