or
namespace
TestProject1
{
public
class
WebTest : BaseWebAiiTest
{
#region [ Dynamic Pages Reference ]
private
Pages _pages;
public
string
g_sRandomUserName =
"AutomationUser"
;
public
Pages Pages
{
get
{
if
(_pages ==
null
)
{
_pages =
new
Pages(Manager.Current);
}
return
_pages;
}
}
#endregion
// Add your test methods here...
[CodedStep(@
"Enter text '"
+ g_sRandomUserName +
"' in 'MainContentTxtUsernameText'"
)]
public
void
WebTest_CodedStep()
{
// Enter text 'AutomationUser' in 'MainContentTxtUsernameText'
Actions.SetText(Pages.UserAdministrator.MainContentTxtUsernameText, g_sRandomUserName);
}
...