Difference between Usercode module and program.cs

Ranorex Spy, Recorder, and Studio.
nandhu
Posts: 12
Joined: Wed Jan 21, 2015 6:59 am

Difference between Usercode module and program.cs

Post by nandhu » Fri Feb 06, 2015 6:59 am

Hi everyone,
Could you please define the main difference between usercodemodule.cs and program.cs in ranorex

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Difference between Usercode module and program.cs

Post by krstcs » Fri Feb 06, 2015 3:45 pm

Program.cs contains the "main" method, which is where the application starts.

Usercode.cs files just contain code for test actions. This is where you would put any code logic that you wanted to actually use in a test.


You should stay away from the Program.cs file unless you know what you are doing with it. Since you don't know what it is, I would say you should stay away. :D
Shortcuts usually aren't...