Web1/login.rxrec
Web1/foo1.rxrec
Web1/foo2.rxrec
Web1/logout.rxrec
Web2/login.rxrec
Web2/foo1.rxrec
Web2/foo2.rxrec
Web2/logout.rxrec
etc.
Basically, each website has a set of recorded modules, with a specific naming structure. Each website has its own folder.
Then, a c# code module parses data corresponding to the various websites, logs in to the website, does stuff, and a finally logs out.
The code for login, for example, would be something like:
Code: Select all
public static void doLogin(string condition)
{
if (condition == condition1)
Web1.login.Start();
else if (condition == condition2)
Web2.login.Start();
else if ...
}
Is there a way to change it to something like:
Code: Select all
public static void doLogin( <sometype> moduleFolder)
{
moduleFolder.login.Start();
}