|
@@ -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');
|