Temario
#RSGECU2015Slin Castro
• SCRUM• Artefactos , Roles, Reuniones
• Desarrollo• TDD
• Pruebas de funcionalidad
Ambiente
#RSGECU2015Slin Castro
• NUnit Adapter (Beta 4) (agregado desde "Extensions and Updates" del IDE)• NUnit (agregado al proyecto de pruebas)• Selenium Web Driver (conjuntamente con el Web Driver Server -
IEDriverServer.exe)• SpecFlow Adapter (agregado desde "Extensions and Updates" del IDE)• SpecFlow (agregado al proyecto de pruebas)
www.ndeveloper.com
Criterio de Aceptación
#RSGECU2015Slin Castro
Feature: CreacionSe necesita Crear Suscripciones para varios clientes
@ValidacionScenario: Validacion de CamposGiven Navego hacia la Pagina CreacionWhen presiono guardarThen visualizo "Este campo es obligatorio" en la pantalla
www.ndeveloper.com
Glue Code
#RSGECU2015Slin Castro
[Given(@"Navego hacia la Pagina Creacion")] public void GivenNavegoHaciaLaPaginaCreacion() { _atdd.Navegar("Create"); }
[Then(@"visualizo ""(.*)"" en la pantalla")] public void ThenVisualizoEnLaPantalla(string p0) { }
[When(@"presiono guardar")] public void WhenPresionoGuardar() { _atdd.ClickSubmit(); }
www.ndeveloper.com
Driver
#RSGECU2015Slin Castro
public void ClickSubmit() { ie.Driver.FindElementByCssSelector("input[type='submit']").Click(); }
public void Navegar(string pagina) {
ie.Driver.Navigate().GoToUrl(string.Concat("http://localhost:23178/Suscripcion/", pagina)); }
www.ndeveloper.com
Assertion Library
#RSGECU2015Slin Castro
[Then(@"visualizo ""(.*)"" en la pantalla")] public void ThenVisualizoEnLaPantalla(string p0) { Assert.IsTrue(_atdd.IsValuePresent(p0)); }
www.ndeveloper.com
Inquietudes
#RSGECU2015Slin Castro
• ¿Por qué automatizar?• ¿Que automatizar?• ¿Cuando automatizar?• ¿Quien automatiza?• ¿Cómo automatizar?• ¿Con que automatizar?
www.ndeveloper.com
Bibliografía
#RSGECU2015Slin Castro
• https://nicopaez.wordpress.com/• http://specificationbyexample.com/ • http://ndeveloper.wikia.com/wiki/ATDD_con_Visual
_Studio_2012#ATDD_con_Visual_Studio_2012_-_Herramientas_y_Uso
www.ndeveloper.com
Contacto
#RSGECU2015Slin Castro
• [email protected]• [email protected]• @Slin_dkDroid• Slincastro.wordpress.com
Top Related