Ejemplo n.º 1
0
  @AfterClass
  public void tearDown() {

    startPage.logout();

    logger.info("Logged out, now closing browser... ");

    GeneralPage.stop();
  }
Ejemplo n.º 2
0
  @BeforeClass
  public void setUp() throws Exception {

    // enabling Webservice
    webService = Service.create(new URL(url + "?wsdl"), new QName(namespaceUri, localPart));
    buecherService = webService.getPort(BuecherService.class);

    // creating some books in the store
    createTestBooks(numOfBooks);

    // enabling Selenium Gui driver service
    // and login
    product = new Product();
    product.title = "Books Project (" + browser + ")";
    product.description = "Contains a story for every missing book...";

    SeleniumProperties.browser = browser;
    GeneralPage.setDriver(SeleniumProperties.browser);
    GeneralPage.start();

    LoginPage loginPage = new LoginPage();
    startPage = loginPage.login(SeleniumProperties.adminName, SeleniumProperties.adminPwd);
  }