code module

Ask general questions here.
omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

code module

Post by omayer » Mon Oct 01, 2012 4:39 pm

what is the difference between 'code module' and 'class'. Thank you in Advance
Tipu

User avatar
artur_gadomski
Posts: 207
Joined: Mon Jul 19, 2010 6:55 am
Location: Copenhagen, Denmark
Contact:

Re: code module

Post by artur_gadomski » Tue Oct 02, 2012 7:58 am

Class is programming language construct, part of C#.
Code module is Ranorex 'thing'.
So you will find classes in other c# programs but you won't find Code modules there.

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: code module

Post by omayer » Tue Oct 02, 2012 7:40 pm

the reason is when i create class i can't drag and drop to the testsuite, but i can do that on codemodule
Tipu

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: code module

Post by Support Team » Wed Oct 03, 2012 11:56 am

Hi,

A Class is a simple C# class skeleton and a UserCode module derives from the ITestModule interface and implements the methods which are needed in order to add it to the test suite.
You can also edit the C# class in a way that you can add it to your test suite but this would make no sense.

Regards,
Markus
Ranorex Support Team

omayer
Posts: 458
Joined: Thu Oct 28, 2010 6:14 pm

Re: code module

Post by omayer » Wed Oct 03, 2012 7:05 pm

Thank you Markus, All clear to me now
Tipu