Browse Source

maximize screen

Fernando Alonso 6 years ago
parent
commit
ee84fe5fe0

+ 17 - 27
behat/abm_fd3/tests/acceptance/1_baseCest.php

@@ -7,6 +7,7 @@ class BaseCest
 {
 	public function frontpageWorks(AcceptanceTester $I)
 	{
+		$I->maximizeWindow();
 		$cliente = "test01";
 shell_exec('mkdir -p ./tests/_output/debug/Add/');
 #log in
@@ -79,8 +80,8 @@ try{
 		$I->makeScreenshot('Add/4_refreshtoken');
 	}
 */
-# Workflow
 
+# Workflow
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/workflow/workflow/create');
 		$I->fillField('Nombre','fernandotest');
@@ -93,8 +94,8 @@ try{
 	}catch(\Exception $e){
 		$I->makeScreenshot('Add/5_workflow');
 	}
-# Action
 
+# Action
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/workflow/action/create');
 		$I->fillField('Nombre', 'FernandoTest');
@@ -110,8 +111,8 @@ try{
 	}catch(\Exception $e){
 		$I->makeScreenshot('Add/6_action');
 	}
-# Alertas
 
+# Alertas
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/alert/alert/create');
 		$I->fillField('Título','TestFernando');
@@ -123,8 +124,8 @@ try{
 	}catch(\Exception $e){
 		$I->makeScreenshot('Add/7_alert');
 	}
-# Tipo de Alertas
 
+# Tipo de Alertas
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/alert/alerttype/create');
 		try{
@@ -142,8 +143,8 @@ try{
 	}catch(\Exception $e){
 		$I->makeScreenshot('Add/8_alerttype');
 	}
-# Crear Usuarios
 
+# Crear Usuarios
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/user/create');
 		try{
@@ -171,8 +172,8 @@ try{
 	}catch(\Exception $e){
 		$I->makeScreenshot('Add/9_user');
 	}
-# Grupos
 
+# Grupos
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/group/create');
 		try{
@@ -180,8 +181,9 @@ try{
 }catch(\Exception $e){
 }
 		$I->fillField('Nombre de Grupo', 'TestFernando');
-		$I->click("(//*[@class='icheckbox_square-blue'])[1]"); # selecciona el checkbox 1
-		$I->fillField('Usuarios', 'TestFernando'."\n");
+		#$I->click("(//*[@class='icheckbox_square-blue'])[1]"); # selecciona el checkbox 1
+		#$I->fillField('Usuarios', 'TestFernando'."\n");
+		$I->fillField('Roles', 'ROLE_SONATA_ALERT_READER'."\n");
 		$I->click('Crear y regresar al listado');
 		$I->wait('5');
 		$I->see('ha sido creado con éxito');
@@ -191,7 +193,6 @@ try{
 
 # Tenencias
 # ________________________ NO BORRA LA TENENCIA DESPUÉS ________________________
-
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/tenancy/create');
 		try{
@@ -208,7 +209,6 @@ try{
 	}
 
 # Clientes
-
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/client/client/create');
 		try{
@@ -237,7 +237,6 @@ $I->wait('3');
 	}
 
 # Dispositivos
-
 try{
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/license/device/create');
 		try{
@@ -255,7 +254,6 @@ try{
 # ____________ FTTH _________________
 
 # Modelo OLT
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/ftth/oltmodel/create');
 		try{
@@ -274,7 +272,6 @@ try{
 	}
 
 # Modelo ONU
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/ftth/onumodel/create');
 		try{
@@ -295,7 +292,6 @@ try{
 	}
 
 # Perfil
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/ftth/profile/create');
 		try{
@@ -314,7 +310,6 @@ try{
 
 # OLT
 # _____________ Crea la OLT NO HABILITADA ___________________
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/ftth/olt/create');
 		try{
@@ -345,7 +340,6 @@ $I->wait('3');
 	}
 
 # NAP
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/ftth/nap/create');
 		try{
@@ -375,7 +369,6 @@ $I->click('Crear y regresar al listado');
 # ONU
 # ___________________ No me deja crear la ONU para mi cliente TestFernando _______________
 # Clave duplicada
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/ftth/onu/create');
 		try{
@@ -396,8 +389,9 @@ $I->wait('3');
 
 		$I->click('Avanzado');
 $I->wait('8');
-#		$I->fillField('Número Serie', '2342342');
-		$I->fillField('Mac', 'fd34sd24fgr4');
+		$I->fillField('Número Serie', '1234567890987654');
+		$I->fillField('Número Serie Pon', '123456789098');
+#		$I->fillField('Mac', 'fd34sd24fgr4');
 		$I->fillField('OLT', 'TestFernando'."\n");
 
 $I->click('Mapa');
@@ -418,7 +412,6 @@ $I->wait('3');
 # ONU 2
 # ___________________ No me deja crear la ONU para mi cliente TestFernando _______________
 # Clave duplicada
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/ftth/onu/create');
 		try{
@@ -439,8 +432,9 @@ $I->wait('3');
 
 		$I->click('Avanzado');
 $I->wait('8');
-#		$I->fillField('Número Serie', '2342342');
-		$I->fillField('Mac', 'fd34sd24fgf2');
+		$I->fillField('Número Serie', '1234567890987653');
+		$I->fillField('Número Serie Pon', '123456789097');
+#		$I->fillField('Mac', 'fd34sd24fgf2');
 		$I->fillField('OLT', 'TestFernando'."\n");
 
 $I->click('Mapa');
@@ -458,9 +452,7 @@ $I->wait('3');
 	$I->makeScreenshot('Add/19_onu2');
 }
 
-
 # Workflow
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/workflow/workflow/create');
 		try{
@@ -478,7 +470,6 @@ try{
 	}
 
 # Action Workflow
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/workflow/action/create');
 		try{
@@ -499,7 +490,6 @@ try{
 	}
 
 # Template
-
 try{
 		$I->amOnUrl('https://ftth.'.$cliente.'.flowdat.com/admin/template/template/create');
 		try{
@@ -507,7 +497,7 @@ try{
 }catch(\Exception $e){
 }
 		$I->fillField('Nombre','TestFernando');
-		$I->fillField('Contenido','TestFernando');
+		$I->fillField('Contenido','TestFernandoTest');
 		$I->click('Crear y regresar al listado');
 		$I->wait('5');
 		$I->see('ha sido creado con éxito');

+ 24 - 22
behat/abm_fd3/tests/acceptance/1_cablemodemCest.php

@@ -5,6 +5,7 @@ class CablemodemCest
 {
 	public function frontpageWorks(AcceptanceTester $I)
 	{
+		$I->maximizeWindow();
 		$cliente = "test01";
 shell_exec('mkdir -p ./tests/_output/debug/Add_Cablemodem/');
 #log in
@@ -28,7 +29,7 @@ try{
 			$I->acceptPopup();
 		}catch(\Exception $e){
 		}
-		$I->fillField('Nombre', 'TestFernando'."\n");
+		$I->fillField('Nombre', 'TestFernando');
 		$I->click('Crear y regresar al listado');
 		$I->wait('5');
 		$I->see('ha sido creado con éxito.');
@@ -43,7 +44,7 @@ try{
 			$I->acceptPopup();
 		}catch(\Exception $e){
 		}
-		$I->fillField('Nombre', 'TestFernandoP'."\n");
+		$I->fillField('Nombre', 'TestFernandoP');
 		$I->fillField('Padre','TestFernando'."\n");
 		$I->click('Crear y regresar al listado');
 		$I->wait('5');
@@ -59,12 +60,12 @@ try{
 			$I->acceptPopup();
 		}catch(\Exception $e){
 		}
-		$I->fillField('Nombre', 'TestFernando'."\n");
-		$I->fillField('Downstream','5'."\n");
-		$I->fillField('Upstream','5'."\n");
-		$I->fillField('Filtro upload','5'."\n");
-		$I->fillField('Filtro download','5'."\n");
-		$I->fillField('Max cpe','5'."\n");
+		$I->fillField('Nombre', 'TestFernando');
+		$I->fillField('Downstream','5000');
+		$I->fillField('Upstream','2000');
+		$I->fillField('Filtro upload','50');
+		$I->fillField('Filtro download','50');
+		$I->fillField('Max cpe','5');
 		$I->click('Crear y regresar al listado');
 		$I->wait('5');
 		$I->see('ha sido creado con éxito.');
@@ -80,7 +81,7 @@ try{
 			$I->acceptPopup();
 		}catch(\Exception $e){
 		}
-		$I->fillField('Nombre', 'TestFernando'."\n");
+		$I->fillField('Nombre', 'TestFernando');
 		$I->click('Crear y regresar al listado');
 		$I->wait('5');
 		$I->see('ha sido creado con éxito.');
@@ -95,7 +96,7 @@ try{
 			$I->acceptPopup();
 		}catch(\Exception $e){
 		}
-		$I->fillField('Nombre', 'TestFernando'."\n");
+		$I->fillField('Nombre', 'TestFernando');
 		$I->click('Crear y regresar al listado');
 		$I->wait('5');
 		$I->see('ha sido creado con éxito.');
@@ -110,7 +111,7 @@ try{
 			$I->acceptPopup();
 		}catch(\Exception $e){
 		}
-		$I->fillField('Nombre', 'TestFernando'."\n");
+		$I->fillField('Nombre', 'TestFernando');
 		$I->click('Configuración');
 $I->wait('5');
 		$I->fillField('Host','cmts1.cabletv.com');
@@ -130,23 +131,24 @@ try{
 			$I->acceptPopup();
 		}catch(\Exception $e){
 		}
-		$I->fillField('clientId_search', 'TestFernando'); # Cliente
+		$I->fillField('Mac','foe1d2c3b4a5'); # Mac
+		$I->fillField('Código activación','ferNando2'); # Codigo
+		$I->fillField('Nodo','TestFernando'."\n");
+		$I->fillField('Perfil','TestFernando'."\n");
 
+		$I->fillField('clientId_search', 'TestFernando'); # Cliente
 		$I->pressKey("//*[@class='form-control ui-autocomplete-input']", WebDriverKeys::DOWN);
 		$I->wait('3');
 		$I->click("//*[@class='ui-corner-all']");
 		$I->wait('3');
-		$I->fillField('Mac','foe1d2c3b4a5'."\n"); # Mac
-		$I->fillField('Código activación','ferNando2'."\n"); # Codigo
-		$I->fillField('Nodo','TestFernando'."\n");
-		$I->fillField('Perfil','TestFernando'."\n");
 
-$I->click('Mapa');
-$I->wait('3');
-		$I->fillField("//*[@id='searchtext9']",'Mariano Moreno 535, Rosario'."\n"."\n");
-$I->click("//*[@id='searchtext9']");
-		$I->pressKey("//*[@id='searchtext9']", WebDriverKeys::ENTER);
-$I->wait('3');
+#$I->click('Mapa');
+#$I->wait('3');
+#		$I->fillField("//*[@id='searchtext9']",'Mariano Moreno 535, Rosario'."\n"."\n");
+#$I->click("//*[@id='searchtext9']");
+#		$I->pressKey("//*[@id='searchtext9']", WebDriverKeys::ENTER);
+#$I->wait('3');
+
 		$I->click('Crear y regresar al listado');
 		$I->wait('8');
 		$I->see('ha sido creado con éxito.');

+ 1 - 0
behat/abm_fd3/tests/acceptance/1_dhcpCest.php

@@ -7,6 +7,7 @@ class dhcpCest
 {
 	public function frontpageWorks(AcceptanceTester $I)
 	{
+		$I->maximizeWindow();
 		$cliente = "test01";
 shell_exec('mkdir -p ./tests/_output/debug/Add_DHCP/');
 #log in

File diff suppressed because it is too large
+ 2 - 1
behat/abm_fd3/tests/acceptance/2_deleteCMCest.php


+ 14 - 13
behat/abm_fd3/tests/acceptance/2_deleteCest.php

@@ -7,6 +7,7 @@ class deleteCest
 {
 	public function frontpageWorks(AcceptanceTester $I)
 	{
+		$I->maximizeWindow();
 		$cliente = "test01";
 shell_exec('mkdir -p ./tests/_output/debug/Delete/');
 #log in
@@ -77,7 +78,6 @@ try{
 # Workflow
 
 try{
-$I->wait('5');
 		$I->amOnUrl('https://base.'.$cliente.'.flowdat.com/admin/workflow/workflow/list?filter%5Bname%5D%5Btype%5D=&filter%5Bname%5D%5Bvalue%5D=&filter%5Bdescription%5D%5Btype%5D=&filter%5Bdescription%5D%5Bvalue%5D=FernandoTest&filter%5Benable%5D%5Btype%5D=&filter%5Benable%5D%5Bvalue%5D=&filter%5Btemplate%5D%5Btype%5D=&filter%5Btemplate%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->wait('3');
 		$I->click("//*[@class='iCheck-helper']");
@@ -155,19 +155,7 @@ try{
 	}catch(\Exception $e){
 		$I->makeScreenshot('Delete/10_groupD');
 	}
-# Tenencias
 
-try{
-		$I->amOnUrl('https://base.'.$cliente.'.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']");
-		$I->click('input.btn.btn-small.btn-primary');
-		$I->wait('3');
-		$I->click('Sí, ejecutar');
-		$I->wait('5');
-		$I->see('eliminados con éxito.');
-	}catch(\Exception $e){
-		$I->makeScreenshot('Delete/11_tenancyD');
-	}
 # Clientes
 # ERROR
 
@@ -320,6 +308,19 @@ try{
 	}catch(\Exception $e){
 		$I->makeScreenshot('Delete/22_templateD');
 	}
+
+	# Tenencias
+	try{
+		$I->amOnUrl('https://base.'.$cliente.'.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']");
+		$I->click('input.btn.btn-small.btn-primary');
+		$I->wait('3');
+		$I->click('Sí, ejecutar');
+		$I->wait('5');
+		$I->see('eliminados con éxito.');
+	}catch(\Exception $e){
+		$I->makeScreenshot('Delete/23_tenancyD');
+	}
 /*
 # ____________ Maps ______________
 # Mapas

+ 1 - 0
behat/abm_fd3/tests/acceptance/2_deleteDHCPCest.php

@@ -7,6 +7,7 @@ class deleteDHCPCest
 {
 	public function frontpageWorks(AcceptanceTester $I)
 	{
+		$I->maximizeWindow();
 		$cliente = "test01";
 shell_exec('mkdir -p ./tests/_output/debug/DeleteDHCP/');
 #log in

+ 1 - 0
behat/abm_fd3/tests/acceptance/3_baseUserCest.php

@@ -6,6 +6,7 @@ class BaseUserCest
 {
 	public function frontpageWorks(AcceptanceTester $I)
 	{
+		$I->maximizeWindow();
 		$cliente = 'test01';
 shell_exec('mkdir -p ./tests/_output/debug/User/');
 #log in