|
@@ -5,19 +5,22 @@ class BaseUserCest
|
|
|
{
|
|
|
public function frontpageWorks(AcceptanceTester $I)
|
|
|
{
|
|
|
-
|
|
|
+shell_exec('mkdir -p ./tests/_output/debug/User/');
|
|
|
#log in
|
|
|
+try{
|
|
|
$I->amOnPage('/');
|
|
|
$I->see('Nombre de usuario');
|
|
|
$I->fillField('_username', 'TestFernando');
|
|
|
$I->fillField('_password', 'TestFernando');
|
|
|
$I->click('_submit');
|
|
|
$I->wait('3');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/0_login');
|
|
|
+ }
|
|
|
# ____________________ Base _____________________
|
|
|
|
|
|
# Codigos de Autenticación
|
|
|
-/*
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/authcode/create');
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
@@ -27,17 +30,21 @@ class BaseUserCest
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/1_oauthcode');
|
|
|
+ }
|
|
|
# Clientes OAuth
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/oauthclient/create');
|
|
|
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/2_oauthclient');
|
|
|
+ }
|
|
|
# Tokens de Acceso
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/accesstoken/create');
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
@@ -46,9 +53,11 @@ class BaseUserCest
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/3_accesstoken');
|
|
|
+ }
|
|
|
# Tokens de Refresco
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/refreshtoken/create');
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
@@ -57,9 +66,11 @@ class BaseUserCest
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/4_refreshtoken');
|
|
|
+ }
|
|
|
# Workflow
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
|
|
|
$I->fillField('Nombre','fernandotest');
|
|
|
$I->fillField('Descripción', 'FernandoTest');
|
|
@@ -68,9 +79,11 @@ class BaseUserCest
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('18');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/5_workflow');
|
|
|
+ }
|
|
|
# Action
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/action/create');
|
|
|
$I->fillField('Nombre', 'FernandoTest');
|
|
|
$I->fillField('Evento', 'transition'."\n");
|
|
@@ -82,9 +95,11 @@ class BaseUserCest
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/6_action');
|
|
|
+ }
|
|
|
# Alertas
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/create');
|
|
|
$I->fillField('Título','TestFernando');
|
|
|
$I->fillField('Cuerpo','TestFernando');
|
|
@@ -92,9 +107,11 @@ class BaseUserCest
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/7_alert');
|
|
|
+ }
|
|
|
# Tipo de Alertas
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alerttype/create');
|
|
|
$I->fillField('Nombre Corto','Test');
|
|
|
$I->fillField("(//*[@class=' form-control'])[2]",'TestFernando');
|
|
@@ -104,9 +121,11 @@ class BaseUserCest
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/8_alerttype');
|
|
|
+ }
|
|
|
# Crear Usuarios
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/user/create');
|
|
|
$I->fillField('Nombre de Usuario', 'TestFernand');
|
|
|
$I->fillField('E-Mail', 'TestFernand@test');
|
|
@@ -123,9 +142,11 @@ class BaseUserCest
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-*/
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/9_user');
|
|
|
+ }
|
|
|
# Grupos
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/group/create');
|
|
|
$I->fillField('Nombre de Grupo', 'TestFernando');
|
|
|
$I->click("(//*[@class='icheckbox_square-blue'])[1]"); # selecciona el checkbox 1
|
|
@@ -133,18 +154,23 @@ class BaseUserCest
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/10_group');
|
|
|
+ }
|
|
|
# Tenencias
|
|
|
# ________________________ NO BORRA LA TENENCIA DESPUÉS ________________________
|
|
|
+try{
|
|
|
$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');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/11_tenancy');
|
|
|
+ }
|
|
|
# Clientes
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/client/client/create');
|
|
|
$I->fillField('External Id', 'extId_001336');
|
|
|
$I->fillField('Nombre', 'TestFernando');
|
|
@@ -155,22 +181,26 @@ class BaseUserCest
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/12_client');
|
|
|
+ }
|
|
|
# Dispositivos
|
|
|
-
|
|
|
+try{
|
|
|
$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');
|
|
|
$I->wait('8');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/13_device');
|
|
|
+ }
|
|
|
# ____________ FTTH _________________
|
|
|
|
|
|
# ONU
|
|
|
# ___________________ No me deja crear la ONU para mi cliente TestFernando _______________
|
|
|
# Clave duplicada
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onu/create');
|
|
|
$I->click("//*[@class='select2-selection__arrow']");
|
|
|
$I->wait('3');
|
|
@@ -192,10 +222,13 @@ $I->wait('3');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
|
|
|
#$I->click("(//*[@class='icheckbox_square-blue'])[1]");
|
|
|
-
|
|
|
+}catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/14_onu');
|
|
|
+}
|
|
|
|
|
|
# OLT
|
|
|
# _____________ Crea la OLT NO HABILITADA ___________________
|
|
|
+try{
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/olt/create');
|
|
|
$I->fillField('Nombre', 'TestFernando');
|
|
|
$I->selectOption('Modelo','FiberHome-AN5516-01');
|
|
@@ -207,9 +240,11 @@ $I->wait('3');
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/15_olt');
|
|
|
+ }
|
|
|
# Modelo OLT
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/oltmodel/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Propiedades','TestFernando');
|
|
@@ -217,9 +252,11 @@ $I->wait('3');
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/16_oltmodel');
|
|
|
+ }
|
|
|
# Modelo ONU
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onumodel/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Extra Data','
|
|
@@ -230,9 +267,11 @@ $I->wait('3');
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/17_onumodel');
|
|
|
+ }
|
|
|
# Perfil
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/profile/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Upload','6');
|
|
@@ -240,18 +279,22 @@ $I->wait('3');
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/18_profile');
|
|
|
+ }
|
|
|
# NAP
|
|
|
-
|
|
|
+try{
|
|
|
$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');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/19_nap');
|
|
|
+ }
|
|
|
# Workflow
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/workflow/create');
|
|
|
$I->fillField('Nombre','testfernando');
|
|
|
$I->fillField('Descripción','TestFernando');
|
|
@@ -259,9 +302,11 @@ $I->wait('3');
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('8');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/20_workflow');
|
|
|
+ }
|
|
|
# Action Workflow
|
|
|
-
|
|
|
+try{
|
|
|
$I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/action/create');
|
|
|
$I->fillField('Nombre','testfernando');
|
|
|
$I->fillField('Evento','enter'."\n");
|
|
@@ -272,15 +317,20 @@ $I->wait('3');
|
|
|
$I->click('Crear y regresar al listado');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
-
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/21_action');
|
|
|
+ }
|
|
|
# Template
|
|
|
-
|
|
|
+try{
|
|
|
$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');
|
|
|
$I->wait('5');
|
|
|
$I->see('ha sido creado con éxito');
|
|
|
+ }catch(\Exception $e){
|
|
|
+ $I->makeScreenshot('User/22_template');
|
|
|
+ }
|
|
|
/*
|
|
|
# ____________ Maps ______________
|
|
|
# Mapas
|