Fernando Alonso 7 年之前
父节点
当前提交
b8b406d5ec
共有 1 个文件被更改,包括 77 次插入23 次删除
  1. 77 23
      behat/abm_fd3/tests/acceptance/1_baseCest.php

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

@@ -149,50 +149,99 @@ class BaseCest
 		$I->click('Crear y regresar al listado');
 
 # ____________ FTTH _________________
-*/
+
 # ONU
+# ___________________ No me deja crear la ONU para mi cliente TestFernando _______________
 
 		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onu/create');
-		$I->click("//*[@role='presentation']");
-		$I->fillField('//*[@class=select2-search__field]','TestFernando'."\n");
-//*[@class='icheckbox_square-blue']
+		$I->click('span.select2-selection__arrow');
+$I->wait('3');
+		$I->fillField("//*[@class='select2-search__field']",'TestFernando'."\n");
+		$I->wait('3');
+		$I->pressKey("//*[@class='select2-search__field']",WebDriverKeys::ENTER);
+		$I->wait('3');
+		$I->fillField('Número Serie Pon','fhtt041a89pe');
+		$I->selectOption('Perfil','1');
+		$I->selectOption('NAP','4');
+		$I->selectOption('Modelo','1');
+		$I->click('Crear y regresar al listado');
 		$I->wait('5');
 
-/*
-# OLT
+		#$I->click("(//*[@class='icheckbox_square-blue'])[1]");
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/olt/create');
+# OLT
+# _____________ Crea la OLT NO HABILITADA ___________________
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/olt/create');
+		$I->fillField('Nombre', 'TestFernando');
+		$I->fillField('Modelo',"\n"."\n");
+		$I->click('Crear y regresar al listado');
+		$I->wait('1');
+		$I->fillField('Ip','195.12.1.6');
+		$I->fillField('SSH USER','TestFernando');
+		$I->fillField('SSH PASS','TestFernando');
+		$I->click('Crear y regresar al listado');
 
 # Modelo OLT
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/oltmodel/create');
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/oltmodel/create');
+		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Propiedades','TestFernando');
+		#$I->fillField('Extra Data','TestFernando');
+		$I->click('Crear y regresar al listado');
 
 # Modelo ONU
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onumodel/create');
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onumodel/create');
+		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Extra Data','
+    {
+"type": "HG260",
+"telnet": "/tmp"
+}');
+		$I->click('Crear y regresar al listado');
 
 # Perfil
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/profile/create');
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/profile/create');
+		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Upload','6');
+		$I->fillField('Download','10');
+		$I->click('Crear y regresar al listado');
 
 # NAP
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/nap/create');
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/nap/create');
+		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Padre','Centro'."\n");
+		$I->click('Crear y regresar al listado');
 
 # Workflow
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/workflow/create');
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/workflow/create');
+		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Descripción','TestFernando');
+		$I->fillField('Supports',"\n"."\n");
+		$I->click('Crear y regresar al listado');
 
 # Action Workflow
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/action/create');
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/action/create');
+		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Evento','enter'."\n");
+		$I->fillField('Workflow','TestFernando');
+		$I->fillField('Referencia', 'TestFernando');
+		$I->fillField('Clase',"\n"."\n");
+		$I->fillField("//*[@class='ace_text-input']",'TestFernando');
+		$I->click('Crear y regresar al listado');
 
 # Template
 
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/template/template/create');
+		$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/template/template/create');
+		$I->fillField('Nombre','TestFernando');
+		$I->fillField('Contenido','TestFernando');
+		$I->click('Crear y regresar al listado');
 
 # ____________ Maps ______________
-
 # Mapas
 
 $I->amOnUrl('http://mapas.fd3.flowdat.com/admin/map/map/create');
@@ -210,19 +259,24 @@ $I->amOnUrl('http://mapas.fd3.flowdat.com/admin/map/object/create');
 $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->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');
 
 # Dispositivo
+# ____________ Está roto el formulario ________________________
 
-$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/device/create');
-
-
-
-*/
-
+		$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');
 
 	}