Examples of fillForm()


Examples of co.edu.eafit.day2.selenium.RegisterBuyerPage.fillForm()

  }

  @Test
  public void testHappyPath() {
    RegisterBuyerPage page = new RegisterBuyerPage();
    page.fillForm("svelez" + new Random().nextInt(), "Sebastian", "Velez",
        "05-05-2013", "sebasv89@gmail.com");
    page.submit();
    String message = page.getSuccessMessage();
    Assert.assertEquals("Comprador creado", message);
    page.close();
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterBuyerPage.fillForm()

  @Test
  public void testDuplicatedUser() {
    RegisterBuyerPage page = new RegisterBuyerPage();
    String userName = "svelez" + new Random().nextInt();
    page.fillForm(userName, "Sebastian", "Velez", "05-05-2013",
        "sebasv89@gmail.com");
    page.submit();
    page.close();

    page = new RegisterBuyerPage();
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterBuyerPage.fillForm()

        "sebasv89@gmail.com");
    page.submit();
    page.close();

    page = new RegisterBuyerPage();
    page.fillForm(userName, "Sebastian", "Velez", "05-05-2013",
        "sebasv89@gmail.com");
    page.submit();
    String message = page.getErrorMessage();
    Assert.assertEquals("El usaurio comprador ya existe: " + userName,
        message);
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterSalesPoint.fillForm()

    RegisterStore registerStore = new RegisterStore();
    registerStore.registerStore(nit, storeName);
    registerStore.close();
   
    RegisterSalesPoint page = new RegisterSalesPoint();
    page.fillForm("Hidden Street" + new Random().nextInt(), String.valueOf(new Random().nextInt()), "Fake St 123", "2", "2", nit);
    page.submit();
    String message = page.getSuccessMessage();
    Assert.assertEquals("Punto de venta creado exitosamente", message);
    page.close();
  }
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterSalesPoint.fillForm()

    String longitude = String.valueOf(new Random().nextInt());
   
   
    RegisterSalesPoint page = new RegisterSalesPoint();

    page.fillForm(address, longitude, "Fake St 123", "2", "2", nit);
    page.submit();
    page.close();

    page = new RegisterSalesPoint();
    page.fillForm(address, longitude, "Fake St 123", "2", "2", nit);
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterSalesPoint.fillForm()

    page.fillForm(address, longitude, "Fake St 123", "2", "2", nit);
    page.submit();
    page.close();

    page = new RegisterSalesPoint();
    page.fillForm(address, longitude, "Fake St 123", "2", "2", nit);
    page.submit();
    String message = page.getNoHandleError();
    Assert.assertEquals("HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: El punto de venta ya existe: " + address, message);
    page.close();
  }
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterStore.fillForm()

  }

  @Test
  public void testHappyPath() {
    RegisterStore page = new RegisterStore();
    page.fillForm("0123"+new Random().nextInt(), "San andresito");
    page.submit();
    String message = page.getSuccessMessage();
    Assert.assertEquals("Almacen creado exitosamente", message);
    page.close();
  }
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterStore.fillForm()

  @Test
  public void testDuplicatedUser() {
    RegisterStore page = new RegisterStore();
    String nitAlmacen = "4567" + new Random().nextInt();
    String storeName = "Flamingo";
    page.fillForm(nitAlmacen, storeName);
    page.submit();
    page.close();

    page = new RegisterStore();
    page.fillForm(nitAlmacen, storeName);
View Full Code Here

Examples of co.edu.eafit.day2.selenium.RegisterStore.fillForm()

    page.fillForm(nitAlmacen, storeName);
    page.submit();
    page.close();

    page = new RegisterStore();
    page.fillForm(nitAlmacen, storeName);
    page.submit();
    String message = page.getNoHandleError();
    Assert.assertEquals("HTTP Status 500 - Request processing failed; nested exception is java.lang.IllegalArgumentException: El almacen ya existe: " + storeName, message);
    page.close();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.