martes, 1 de enero de 2013

Automatizar Pruebas Selenium, Eclipse, Junit.

La Automatización de pruebas es un camino para generar scripts y ejecutarlos sin necesidad de generar paso a paso el ingreso de datos manualmente.
Font: www.testnbug.com/wp-content/uploads/2015/01/Automation-Testing.png

Eclipse:
Eclipse Is... An amazing open source community of Tools, Projects and Collaborative Working Groups.

Junit:
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks

Selenium:

What is Selenium?
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.

Inicialmente se descarga Eclipse, JUnit, Selenium.

Configuramos Eclipse con JUnit y agregamos todas las librerías de Selenium.
Instalamos el Plugin de Selenium en Firefox.

Procedemos a grabar el escenario con Selenium y guardamos con extensión JUnit test.java, agregamos el test.java en nuestro paquete en Eclipse y se ejecuta.

Si todo esta bien nuestro explorador se iniciara y ejecutará el script.

Los problemas que mas se presentan es por no agregar las librerías de Selenium.

Si necesitas ayuda o apoyo no dudes en contactarme. Testing Toluca México.

Saludos.