|
@@ -29,8 +29,8 @@ class BaseCest
|
|
|
# Clientes OAuth
|
|
|
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/oauthclient/create');
|
|
|
-
|
|
|
- $I->click('button.btn.btn-success');
|
|
|
+
|
|
|
+ $I->click('button.btn.btn-success');
|
|
|
$I->wait('1');
|
|
|
|
|
|
# Tokens de Acceso
|
|
@@ -51,35 +51,35 @@ class BaseCest
|
|
|
$I->fillField('Expiración','4');
|
|
|
$I->fillField('Alcance','TestFernando');
|
|
|
$I->click('button.btn.btn-success');
|
|
|
- $I->wait('1');
|
|
|
+ $I->wait('1');
|
|
|
|
|
|
# Workflow
|
|
|
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
|
|
|
$I->fillField('Nombre','FernandoTest');
|
|
|
$I->fillField('Descripción', 'FernandoTest');
|
|
|
-
|
|
|
+
|
|
|
+# _____________ No funciona select __________________
|
|
|
# $I->selectOption('Tipo de Workflow', 'workflow');
|
|
|
+
|
|
|
$I->fillField('Supports', 'ClientBundle\Entity\Client'."\n");
|
|
|
$I->click('button.btn.btn-success');
|
|
|
- $I->wait('1');
|
|
|
-
|
|
|
+ $I->wait('1');
|
|
|
|
|
|
-# Action __________________ NO FUNCIONA TEMPLATE ___________________
|
|
|
+# Action
|
|
|
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/action/create');
|
|
|
$I->fillField('Nombre', 'FernandoTest');
|
|
|
$I->fillField('Evento', 'transition'."\n");
|
|
|
$I->fillField('Workflow', 'FernandoTest');
|
|
|
$I->fillField('Referencia', 'FernandoTest'."\t");
|
|
|
-$I->fillField('Clase', "\n"."\n"."\t". 'templat');
|
|
|
-#$I->fillField('form textarea[label=Template]', 'template');
|
|
|
- $I->click('button.btn.btn-success');
|
|
|
+ $I->fillField('Clase', "\n"."\n");
|
|
|
+ $I->fillField("//*[@class='ace_text-input']", 'template');
|
|
|
$I->wait('5');
|
|
|
-
|
|
|
+ $I->click('button.btn.btn-success');
|
|
|
|
|
|
# Alertas
|
|
|
-# __________ERROR EN SELECT TIPO
|
|
|
+# __________ ERROR EN SELECT TIPO _____________________
|
|
|
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/create');
|
|
|
$I->fillField('Título','TestFernando');
|
|
@@ -87,40 +87,33 @@ $I->fillField('Clase', "\n"."\n"."\t". 'templat');
|
|
|
$I->click('span.control-label__text');
|
|
|
$I->click('button.btn.btn-success');
|
|
|
|
|
|
-
|
|
|
# Tipo de Alertas
|
|
|
-# ______________NO FUNCIONA NAMES______________
|
|
|
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alerttype/create');
|
|
|
-
|
|
|
$I->fillField('Nombre Corto','Test');
|
|
|
-# $I->fillField("//input[@name='#name']",'TestFernando');
|
|
|
- $I->wait('3');
|
|
|
- $I->click('ins.iCheck-helper');
|
|
|
- $I->fillField('textarea.form-control', 'TestFernando');
|
|
|
+ $I->fillField("(//*[@class=' form-control'])[2]",'TestFernando');
|
|
|
+ $I->wait('5');
|
|
|
+ $I->click("(//*[@class='iCheck-helper'])[1]");
|
|
|
+ $I->click("(//*[@class='iCheck-helper'])[2]");
|
|
|
$I->click('button.btn.btn-success');
|
|
|
- $I->wait('3');
|
|
|
-
|
|
|
-
|
|
|
|
|
|
# Crear Usuarios
|
|
|
# _________________ No encuentra checkbox _____________________
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/user/create');
|
|
|
-$I->fillField('Nombre de Usuario', 'TestFernando');
|
|
|
-$I->fillField('E-Mail', 'TestFernando@test');
|
|
|
-$I->fillField('Contraseña', 'TestFernando');
|
|
|
-$I->fillField('Nombre', 'TestFernando');
|
|
|
-$I->fillField('Apellido', 'TestFernando');
|
|
|
-
|
|
|
-
|
|
|
-$I->fillField('Acción inicial',"\n"."\n");
|
|
|
-$I->fillField('Tenencias', 'Tenencia Base'."\n");
|
|
|
-$I->checkOption('Habilitado');
|
|
|
-$I->wait('5');
|
|
|
-
|
|
|
-$I->click('Crear y regresar al listado');
|
|
|
+ $I->amOnUrl('http://base.fd3.flowdat.com/admin/user/create');
|
|
|
+ $I->fillField('Nombre de Usuario', 'TestFernando');
|
|
|
+ $I->fillField('E-Mail', 'TestFernando@test');
|
|
|
+ $I->fillField('Contraseña', 'TestFernando');
|
|
|
+ $I->fillField('Nombre', 'TestFernando');
|
|
|
+ $I->fillField('Apellido', 'TestFernando');
|
|
|
+# Roles
|
|
|
+ $I->click("(//*[@class='iCheck-helper'])[2]");
|
|
|
+ $I->click("(//*[@class='iCheck-helper'])[3]");
|
|
|
+ $I->click("(//*[@class='iCheck-helper'])[5]");
|
|
|
+
|
|
|
+ $I->fillField('Acción inicial',"\n"."\n");
|
|
|
+ $I->fillField('Tenencias', 'Tenencia Base'."\n");
|
|
|
+ $I->click('Crear y regresar al listado');
|
|
|
|
|
|
-*/
|
|
|
# Grupos
|
|
|
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/group/create');
|
|
@@ -129,26 +122,43 @@ $I->click('Crear y regresar al listado');
|
|
|
$I->fillField('Usuarios', 'TestFernando'."\n");
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
|
|
|
-/*
|
|
|
|
|
|
# Tenencias
|
|
|
-
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/tenancy/create');
|
|
|
+# ________________________ NO BORRA LA TENENCIA DESPUÉS ________________________
|
|
|
+ $I->amOnUrl('http://base.fd3.flowdat.com/admin/tenancy/create');
|
|
|
+ $I->fillField('Tenencia','TestFernando');
|
|
|
+ $I->click("(//*[@class='icheckbox_square-blue'])[1]");
|
|
|
+ $I->click('Crear y regresar al listado');
|
|
|
|
|
|
# Clientes
|
|
|
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/client/client/create');
|
|
|
+ $I->amOnUrl('http://base.fd3.flowdat.com/admin/client/client/create');
|
|
|
+ $I->fillField('External Id', 'extId_001336');
|
|
|
+ $I->fillField('Nombre', 'TestFernando');
|
|
|
+ $I->fillField('Companía', 'TestFernando');
|
|
|
+ $I->fillField('Comentario', 'TestFernando');
|
|
|
+ $I->fillField('Email', 'fernando@interlink.com.ar');
|
|
|
+ $I->fillField('Teléfono', '034070304');
|
|
|
+ $I->click('Crear y regresar al listado');
|
|
|
|
|
|
# Dispositivos
|
|
|
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/license/device/create');
|
|
|
+ $I->amOnUrl('http://base.fd3.flowdat.com/admin/license/device/create');
|
|
|
+ $I->fillField('Id Dispositivo', '342234');
|
|
|
+ $I->fillField('Ip', '193.12.29.4');
|
|
|
+ $I->click('Crear y regresar al listado');
|
|
|
|
|
|
# ____________ FTTH _________________
|
|
|
-
|
|
|
+*/
|
|
|
# ONU
|
|
|
|
|
|
-$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onu/create');
|
|
|
+ $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->wait('5');
|
|
|
|
|
|
+/*
|
|
|
# OLT
|
|
|
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/olt/create');
|
|
@@ -205,7 +215,7 @@ $I->amOnUrl('http://mapas.fd3.flowdat.com/admin/map/objecttype/create');
|
|
|
|
|
|
$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/deviceserver/create');
|
|
|
|
|
|
-# Dispositivo
|
|
|
+# Dispositivo
|
|
|
|
|
|
$I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/device/create');
|
|
|
|