Skip to content

Instantly share code, notes, and snippets.

@freynaud
Created September 9, 2011 09:42
Show Gist options
  • Save freynaud/1205848 to your computer and use it in GitHub Desktop.
Save freynaud/1205848 to your computer and use it in GitHub Desktop.
@WebTest
@Test(groups = { "REGRESSION", "SMOKE" })
public User buyerRegistrationUKEma() {
User u = User.createUser(site);
BuyerRegValidation.buyerRegPCCheck(site);
WebTestSession.webdriver().get(QATEURL.PRIVATE_REG.generate(site, TestSession.getPool()));
EnterInfoPage page = new EnterInfoPage(site);
page.fillInWithUserData(u);
VerificationFlow ema = new EmaFlow(u);
ema.process();
ema.performValidation();
CongratulationPage congratzPage = new CongratulationPage();
SpineReporter.log("done");
return u;
}
private BuyerRegistrationUKTests userFactory = new BuyerRegistrationUKTests();
@WebTest
@Test(groups = { "REGRESSION" })
public void sellerRegistrationUKCamilla() {
User user = userFactory.buyerRegistrationUKEma();
WebTestSession.webdriver().get(sellerSignIn());
SellerFlow camilla = new CamillaFlow(user);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment