use centralized code/function as user code without delegatio
Posted: Thu Jul 04, 2013 10:52 am
Hello!
I've written a class where I'm managing many functions I need in different tests.
To call these functions in a recording module, I've to create a UserCode function and delegate the call to the centralized function/class.
Is there a way to implement the centralized functions somewhere to make them available for all recording modules without the need for delegation?
Here's an example of the UserCode I'd like to avoid copying into each UserCode file:
I've written a class where I'm managing many functions I need in different tests.
To call these functions in a recording module, I've to create a UserCode function and delegate the call to the centralized function/class.
Is there a way to implement the centralized functions somewhere to make them available for all recording modules without the need for delegation?
Here's an example of the UserCode I'd like to avoid copying into each UserCode file:
Code: Select all
namespace Tests
{
public partial class Create_Test
{
/// <summary>
/// This method gets called right after the recording has been started.
/// It can be used to execute recording specific initialization code.
/// </summary>
private void Init()
{
// Your recording specific initialization code goes here.
}
public void DoButtonClickAndWait()
{
ToolsModule.DoButtonClickAndWait();
}
}
}