// start at the welcome page
beginAt("/index.jsp");
// find the registration link and click it
String regLinkText = getMessage("index.registration");
clickLinkWithText(regLinkText);
// check that the registration form is displayed
assertFormElementPresent("username");
// use the current time as part of the username for repeatability
long ts = System.currentTimeMillis();
// fill out the form
setFormElement("username","t"+ts);
setFormElement("password","gotech");
setFormElement("password2","gotech");
String fullName = "George P. Burdell";
setFormElement("fullName", fullName);
setFormElement("fromAddress","gpburdell@matech.com");
setFormElement("replyToAddress","gpburdell@matech.com");
// submit the form
submit();
// check that the main menu is displayed with the name included
assertTextPresent(getMessage("mainMenu.heading")+' "+fullName);