Page 1 of 1

Beginner code analysis

Posted: Mon Jun 29, 2015 10:35 am
by Mohan L
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.

Re: Beginner code analysis

Posted: Mon Jun 29, 2015 1:25 pm
by odklizec
Hi,

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?