|
@@ -7,6 +7,7 @@ class BaseCest
|
|
|
{
|
|
|
public function frontpageWorks(AcceptanceTester $I)
|
|
|
{
|
|
|
+ $cliente = ".fd3";
|
|
|
shell_exec('mkdir -p ./tests/_output/debug/Add/');
|
|
|
#log in
|
|
|
try{
|
|
@@ -23,7 +24,7 @@ try{
|
|
|
|
|
|
# Codigos de Autenticación
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/authcode/create');
|
|
|
+ $I->amOnUrl('http://base' . $cliente . '.flowdat.com/admin/base/oauthserver/authcode/create');
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
|
$I->fillField('URI de Redirección','TestDirección');
|
|
@@ -38,7 +39,7 @@ try{
|
|
|
# Clientes OAuth
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/oauthclient/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/base/oauthserver/oauthclient/create');
|
|
|
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('5');
|
|
@@ -49,7 +50,7 @@ try{
|
|
|
# Tokens de Acceso
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/accesstoken/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/base/oauthserver/accesstoken/create');
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
|
$I->fillField('Expiración','4');
|
|
@@ -63,7 +64,7 @@ try{
|
|
|
# Tokens de Refresco
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/refreshtoken/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/base/oauthserver/refreshtoken/create');
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
|
$I->fillField('Expiración','4');
|
|
@@ -77,7 +78,7 @@ try{
|
|
|
# Workflow
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/workflow/workflow/create');
|
|
|
$I->fillField('Nombre','fernandotest');
|
|
|
$I->fillField('Descripción', 'FernandoTest');
|
|
|
$I->fillField('Tipo de Workflow', 'workflow'."\n");
|
|
@@ -91,7 +92,7 @@ try{
|
|
|
# Action
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/action/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/workflow/action/create');
|
|
|
$I->fillField('Nombre', 'FernandoTest');
|
|
|
$I->fillField('Evento', 'transition'."\n");
|
|
|
$I->fillField('Workflow', 'FernandoTest');
|
|
@@ -108,7 +109,7 @@ try{
|
|
|
# Alertas
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/alert/alert/create');
|
|
|
$I->fillField('Título','TestFernando');
|
|
|
$I->fillField('Cuerpo','TestFernando');
|
|
|
$I->click('span.control-label__text');
|
|
@@ -121,7 +122,7 @@ try{
|
|
|
# Tipo de Alertas
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alerttype/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/alert/alerttype/create');
|
|
|
$I->fillField('Nombre Corto','Test');
|
|
|
$I->fillField("(//*[@class=' form-control'])[2]",'TestFernando');
|
|
|
$I->wait('5');
|
|
@@ -136,7 +137,7 @@ try{
|
|
|
# Crear Usuarios
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/user/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/user/create');
|
|
|
$I->fillField('Nombre de Usuario', 'TestFernando');
|
|
|
$I->fillField('E-Mail', 'TestFernando@test');
|
|
|
$I->fillField('Contraseña', 'TestFernando');
|
|
@@ -158,7 +159,7 @@ try{
|
|
|
# Grupos
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/group/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/group/create');
|
|
|
$I->fillField('Nombre de Grupo', 'TestFernando');
|
|
|
$I->click("(//*[@class='icheckbox_square-blue'])[1]"); # selecciona el checkbox 1
|
|
|
$I->fillField('Usuarios', 'TestFernando'."\n");
|
|
@@ -172,7 +173,7 @@ try{
|
|
|
# ________________________ NO BORRA LA TENENCIA DESPUÉS ________________________
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/tenancy/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/tenancy/create');
|
|
|
$I->fillField('Tenencia','TestFernando');
|
|
|
$I->click("(//*[@class='icheckbox_square-blue'])[1]");
|
|
|
$I->click('Crear y regresar al listado');
|
|
@@ -184,7 +185,7 @@ try{
|
|
|
# Clientes
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/client/client/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.flowdat.com/admin/client/client/create');
|
|
|
$I->fillField('External Id', 'extId_001336');
|
|
|
$I->fillField('Nombre', 'TestFernando');
|
|
|
$I->fillField('Companía', 'TestFernando');
|
|
@@ -200,7 +201,7 @@ try{
|
|
|
# Dispositivos
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://base.fd3.flowdat.com/admin/license/device/create');
|
|
|
+ $I->amOnUrl('http://base'.$cliente.'.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');
|
|
@@ -216,7 +217,7 @@ try{
|
|
|
# Clave duplicada
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onu/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/ftth/onu/create');
|
|
|
$I->click("//*[@class='select2-selection__arrow']");
|
|
|
$I->wait('3');
|
|
|
$I->fillField("//*[@class='select2-search__field']",'TestFernando'."\n");
|
|
@@ -245,7 +246,7 @@ $I->wait('3');
|
|
|
# _____________ Crea la OLT NO HABILITADA ___________________
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/olt/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/ftth/olt/create');
|
|
|
$I->fillField('Nombre', 'TestFernando');
|
|
|
$I->selectOption('Modelo','FiberHome-AN5516-01');
|
|
|
$I->click('Configuración');
|
|
@@ -262,7 +263,7 @@ try{
|
|
|
# Modelo OLT
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/oltmodel/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/ftth/oltmodel/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Propiedades','TestFernando');
|
|
|
#$I->fillField('Extra Data','TestFernando');
|
|
@@ -275,7 +276,7 @@ try{
|
|
|
# Modelo ONU
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onumodel/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/ftth/onumodel/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Extra Data','
|
|
|
{
|
|
@@ -292,7 +293,7 @@ try{
|
|
|
# Perfil
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/profile/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/ftth/profile/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Upload','6');
|
|
|
$I->fillField('Download','10');
|
|
@@ -306,7 +307,7 @@ try{
|
|
|
# NAP
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/nap/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/ftth/nap/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Padre','Centro'."\n");
|
|
|
$I->click('Crear y regresar al listado');
|
|
@@ -319,7 +320,7 @@ try{
|
|
|
# Workflow
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/workflow/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/workflow/workflow/create');
|
|
|
$I->fillField('Nombre','testfernando');
|
|
|
$I->fillField('Descripción','TestFernando');
|
|
|
$I->fillField('Supports',"\n"."\n");
|
|
@@ -333,7 +334,7 @@ try{
|
|
|
# Action Workflow
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/action/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/workflow/action/create');
|
|
|
$I->fillField('Nombre','testfernando');
|
|
|
$I->fillField('Evento','enter'."\n");
|
|
|
$I->fillField('Workflow','TestFernando');
|
|
@@ -350,7 +351,7 @@ try{
|
|
|
# Template
|
|
|
|
|
|
try{
|
|
|
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/template/template/create');
|
|
|
+ $I->amOnUrl('http://ftth'.$cliente.'.flowdat.com/admin/template/template/create');
|
|
|
$I->fillField('Nombre','TestFernando');
|
|
|
$I->fillField('Contenido','TestFernando');
|
|
|
$I->click('Crear y regresar al listado');
|
|
@@ -383,7 +384,7 @@ $I->amOnUrl('http://mapas.fd3.flowdat.com/admin/map/objecttype/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->fillField('Url','http://base'.$cliente.'.flowdat.com/api/devices.json');
|
|
|
# $I->click("//*[@class='icheckbox_square-blue']");
|
|
|
# $I->click('Crear y regresar al listado');
|
|
|
# $I->wait('5');
|