Fernando Alonso 7 роки тому
батько
коміт
23615f2232

+ 24 - 23
behat/abm_fd3/tests/acceptance/1_baseCest.php

@@ -61,12 +61,12 @@ class BaseCest
 # Workflow
 
 		$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
-		$I->fillField('Nombre','FernandoTest');
+		$I->fillField('Nombre','fernandotest');
 		$I->fillField('Descripción', 'FernandoTest');
 		$I->fillField('Tipo de Workflow', 'workflow'."\n");
 		$I->fillField('Supports', 'ClientBundle\Entity\Client'."\n");
 		$I->click('button.btn.btn-success');
-		$I->wait('5');
+		$I->wait('8');
 		$I->see('ha sido creado con éxito');
 
 # Action
@@ -106,7 +106,7 @@ class BaseCest
 		$I->see('ha sido creado con éxito');
 
 # Crear Usuarios
-# Ya existe
+
 		$I->amOnUrl('http://base.fd3.flowdat.com/admin/user/create');
 		$I->fillField('Nombre de Usuario', 'TestFernando');
 		$I->fillField('E-Mail', 'TestFernando@test');
@@ -162,7 +162,7 @@ class BaseCest
 		$I->fillField('Id Dispositivo', '342234');
 		$I->fillField('Ip', '193.12.29.4');
 		$I->click('Crear y regresar al listado');
-		$I->wait('5');
+		$I->wait('8');
 		$I->see('ha sido creado con éxito');
 
 # ____________ FTTH _________________
@@ -183,11 +183,12 @@ $I->wait('3');
 		$I->selectOption('NAP','4');
 		$I->selectOption('Modelo','1');
 		$I->click('Crear y regresar al listado');
-		$I->wait('5');
+		$I->wait('18');
 		$I->see('ha sido creado con éxito');
 
 #$I->click("(//*[@class='icheckbox_square-blue'])[1]");
 
+
 # OLT
 # _____________ Crea la OLT NO HABILITADA ___________________
 		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/olt/create');
@@ -257,7 +258,7 @@ $I->wait('3');
 # Action Workflow
 
 		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/action/create');
-		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Nombre','testfernando');
 		$I->fillField('Evento','enter'."\n");
 		$I->fillField('Workflow','TestFernando');
 		$I->fillField('Referencia', 'TestFernando');
@@ -296,26 +297,26 @@ $I->amOnUrl('http://mapas.fd3.flowdat.com/admin/map/objecttype/create');
 # ________________ STATS ________________________
 # Servidor Dispositivos
 
-		$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/deviceserver/create');
-		$I->fillField('Nombre','TestFernando');
-		$I->fillField('Url','http://base.fd3.flowdat.com/api/devices.json');
-		$I->click("//*[@class='icheckbox_square-blue']");
-		$I->click('Crear y regresar al listado');
-		$I->wait('5');
-		$I->see('ha sido creado con éxito');
+#		$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/deviceserver/create');
+#		$I->fillField('Nombre','TestFernando');
+#		$I->fillField('Url','http://base.fd3.flowdat.com/api/devices.json');
+#		$I->click("//*[@class='icheckbox_square-blue']");
+#		$I->click('Crear y regresar al listado');
+#		$I->wait('5');
+#		$I->see('ha sido creado con éxito');
 
 # Dispositivo
 # ____________ Está roto el formulario ________________________
-/*
-		$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/device/create');
-		$I->fillField('Servidor','TestFernando'."\n");
-		$I->fillField('Id Dispositivo','3');
-		$I->fillField('Tipo Dispositivo',"\n"."\n");
-		$I->fillField('Ip','199.29.43.9');
-		$I->click('Crear y regresar al listado');
-		$I->wait('5');
-		$I->see('ha sido creado con éxito');
-*/
+
+#		$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/device/create');
+#		$I->fillField('Servidor','TestFernando'."\n");
+#		$I->fillField('Id Dispositivo','3');
+#		$I->fillField('Tipo Dispositivo',"\n"."\n");
+#		$I->fillField('Ip','199.29.43.9');
+#		$I->click('Crear y regresar al listado');
+#		$I->wait('5');
+#		$I->see('ha sido creado con éxito');
+
 	}
 
 }

+ 22 - 16
behat/abm_fd3/tests/acceptance/2_deleteCest.php

@@ -60,7 +60,7 @@ class deleteCest
 		$I->click('input.btn.btn-small.btn-primary');
 		$I->wait('3');
 		$I->click('Sí, ejecutar');
-		$I->wait('5');
+		$I->wait('8');
 		$I->see('eliminados con éxito.');
 
 # Action
@@ -78,7 +78,7 @@ class deleteCest
 		$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/list?filter%5Btitle%5D%5Btype%5D=&filter%5Btitle%5D%5Bvalue%5D=TestFernando&filter%5Bbody%5D%5Btype%5D=&filter%5Bbody%5D%5Bvalue%5D=&filter%5Btype%5D%5Btype%5D=&filter%5Btype%5D%5Bvalue%5D=&filter%5Bdiffusion%5D%5Btype%5D=&filter%5Bdiffusion%5D%5Bvalue%5D=&filter%5Bconfirmed%5D%5Btype%5D=&filter%5Bconfirmed%5D%5Bvalue%5D=&filter%5B_page%5D=1&filter%5B_sort_by%5D=id&filter%5B_sort_order%5D=DESC&filter%5B_per_page%5D=32');
 		$I->click("//*[@class='iCheck-helper']");
 		$I->click('input.btn.btn-small.btn-primary');
-		$I->wait('3');
+		$I->wait('5');
 		$I->click('Sí, ejecutar');
 		$I->wait('5');
 		$I->see('eliminados con éxito.');
@@ -93,12 +93,19 @@ class deleteCest
 		$I->wait('5');
 		$I->see('eliminados con éxito.');
 
-# Crear Usuarios
+# Eliminar Usuarios
 
-#		$I->amOnUrl('http://base.fd3.flowdat.com/admin/user/list?filter%5Busername%5D%5Btype%5D=&filter%5Busername%5D%5Bvalue%5D=TestFernando&filter%5Bemail%5D%5Btype%5D=&filter%5Bemail%5D%5Bvalue%5D=&filter%5Benabled%5D%5Btype%5D=&filter%5Benabled%5D%5Bvalue%5D=&filter%5B_page%5D=1&filter%5B_sort_by%5D=id&filter%5B_sort_order%5D=ASC&filter%5B_per_page%5D=32');
+		$I->amOnUrl('http://base.fd3.flowdat.com/admin/user/list?filter%5Busername%5D%5Btype%5D=&filter%5Busername%5D%5Bvalue%5D=TestFernando&filter%5Bemail%5D%5Btype%5D=&filter%5Bemail%5D%5Bvalue%5D=&filter%5Benabled%5D%5Btype%5D=&filter%5Benabled%5D%5Bvalue%5D=&filter%5B_page%5D=1&filter%5B_sort_by%5D=id&filter%5B_sort_order%5D=ASC&filter%5B_per_page%5D=32');
+		$I->click('TestFernando');
+		$I->wait('3');
+		$I->click("//*[@class='btn btn-danger']");
+		$I->wait('3');
+		$I->click('Sí, borrar');
+		$I->wait('5');
+		$I->see('eliminado con éxito');
 
 # Grupos
-# ERROR
+
 		$I->amOnUrl('http://base.fd3.flowdat.com/admin/group/list?filter%5Bname%5D%5Btype%5D=&filter%5Bname%5D%5Bvalue%5D=TestFernando&filter%5B_page%5D=1&filter%5B_sort_by%5D=id&filter%5B_sort_order%5D=ASC&filter%5B_per_page%5D=32');
 		$I->click("//*[@class='iCheck-helper']");
 		$I->click('input.btn.btn-small.btn-primary');
@@ -108,7 +115,6 @@ class deleteCest
 		$I->see('eliminados con éxito.');
 
 # Tenencias
-# ERROR
 
 		$I->amOnUrl('http://base.fd3.flowdat.com/admin/tenancy/list?filter%5Bname%5D%5Btype%5D=&filter%5Bname%5D%5Bvalue%5D=TestFernando&filter%5Benabled%5D%5Btype%5D=&filter%5Benabled%5D%5Bvalue%5D=&filter%5B_page%5D=1&filter%5B_sort_by%5D=id&filter%5B_sort_order%5D=ASC&filter%5B_per_page%5D=32');
 		$I->click("//*[@class='iCheck-helper']");
@@ -126,8 +132,8 @@ class deleteCest
 		$I->wait('3');
 		$I->click('Sí, ejecutar');
 # Mensaje de exito
-#		$I->wait('5');
-#		$I->see('eliminados con éxito.');
+		$I->wait('8');
+		$I->see('NO HAY RESULTADOS');
 
 # Dispositivos
 
@@ -208,7 +214,7 @@ class deleteCest
 		$I->click('input.btn.btn-small.btn-primary');
 		$I->wait('3');
 		$I->click('Sí, ejecutar');
-		$I->wait('5');
+		$I->wait('10');
 		$I->see('NO HAY RESULTADOS');
 
 # Action Workflow
@@ -251,13 +257,13 @@ $I->amOnUrl('http://mapas.fd3.flowdat.com/admin/map/objecttype/create');
 # ________________ STATS ________________________
 # Servidor Dispositivos
 
-		$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/deviceserver/list?filter%5Bname%5D%5Btype%5D=&filter%5Bname%5D%5Bvalue%5D=TestFernando&filter%5Burl%5D%5Btype%5D=&filter%5Burl%5D%5Bvalue%5D=&filter%5BdeviceTypes%5D%5Btype%5D=&filter%5BdeviceTypes%5D%5Bvalue%5D=&filter%5B_page%5D=1&filter%5B_sort_by%5D=id&filter%5B_sort_order%5D=ASC&filter%5B_per_page%5D=32');
-		$I->click("//*[@class='iCheck-helper']");
-		$I->click('input.btn.btn-small.btn-primary');
-		$I->wait('3');
-		$I->click('Sí, ejecutar');
-		$I->wait('5');
-		$I->see('eliminados con éxito.');
+#		$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/deviceserver/list?filter%5Bname%5D%5Btype%5D=&filter%5Bname%5D%5Bvalue%5D=TestFernando&filter%5Burl%5D%5Btype%5D=&filter%5Burl%5D%5Bvalue%5D=&filter%5BdeviceTypes%5D%5Btype%5D=&filter%5BdeviceTypes%5D%5Bvalue%5D=&filter%5B_page%5D=1&filter%5B_sort_by%5D=id&filter%5B_sort_order%5D=ASC&filter%5B_per_page%5D=32');
+#		$I->click("//*[@class='iCheck-helper']");
+#		$I->click('input.btn.btn-small.btn-primary');
+#		$I->wait('3');
+#		$I->click('Sí, ejecutar');
+#		$I->wait('5');
+#		$I->see('eliminados con éxito.');
 
 # Dispositivo
 # ____________ Está roto el formulario ________________________