|
@@ -15,14 +15,14 @@ class BaseCest
|
|
|
$I->wait('3');
|
|
|
|
|
|
# ____________________ Base _____________________
|
|
|
-
|
|
|
+/*
|
|
|
# Codigos de Autenticación
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/base/oauthserver/authcode/create');
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
|
- $I->fillField('URI de Redirección','Dirección');
|
|
|
+ $I->fillField('URI de Redirección','TestDirección');
|
|
|
$I->fillField('Expiración','4');
|
|
|
- $I->fillField('Alcance','2m');
|
|
|
+ $I->fillField('Alcance','TestFernando');
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('1');
|
|
|
|
|
@@ -39,7 +39,7 @@ class BaseCest
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
|
$I->fillField('Expiración','4');
|
|
|
- $I->fillField('Alcance','2m');
|
|
|
+ $I->fillField('Alcance','TestFernando');
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('1');
|
|
|
|
|
@@ -49,31 +49,77 @@ class BaseCest
|
|
|
$I->fillField('Usuario', 'iksop'."\n");
|
|
|
$I->fillField('Token', '002');
|
|
|
$I->fillField('Expiración','4');
|
|
|
- $I->fillField('Alcance','2m');
|
|
|
+ $I->fillField('Alcance','TestFernando');
|
|
|
$I->click('button.btn.btn-success');
|
|
|
$I->wait('1');
|
|
|
|
|
|
# Workflow
|
|
|
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
|
|
|
+ $I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/workflow/create');
|
|
|
+ $I->fillField('Nombre','FernandoTest');
|
|
|
+ $I->fillField('Descripción', 'FernandoTest');
|
|
|
+
|
|
|
+# $I->selectOption('Tipo de Workflow', 'workflow');
|
|
|
+ $I->fillField('Supports', 'ClientBundle\Entity\Client'."\n");
|
|
|
+ $I->click('button.btn.btn-success');
|
|
|
+ $I->wait('1');
|
|
|
|
|
|
|
|
|
-# Action
|
|
|
+# Action __________________ NO FUNCIONA TEMPLATE ___________________
|
|
|
+
|
|
|
+ $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->wait('5');
|
|
|
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/workflow/action/create');
|
|
|
|
|
|
# Alertas
|
|
|
+# __________ERROR EN SELECT TIPO
|
|
|
+
|
|
|
+ $I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/create');
|
|
|
+ $I->fillField('Título','TestFernando');
|
|
|
+ $I->fillField('Cuerpo','TestFernando');
|
|
|
+ $I->click('span.control-label__text');
|
|
|
+ $I->click('button.btn.btn-success');
|
|
|
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alert/create');
|
|
|
|
|
|
# Tipo de Alertas
|
|
|
+# ______________NO FUNCIONA NAMES______________
|
|
|
|
|
|
-$I->amOnUrl('http://base.fd3.flowdat.com/admin/alert/alerttype/create');
|
|
|
+ $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->click('button.btn.btn-success');
|
|
|
+ $I->wait('3');
|
|
|
+
|
|
|
+*/
|
|
|
|
|
|
# Usuarios
|
|
|
|
|
|
$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->wait('5');
|
|
|
+
|
|
|
+
|
|
|
+/*
|
|
|
# Grupos
|
|
|
|
|
|
$I->amOnUrl('http://base.fd3.flowdat.com/admin/group/create');
|
|
@@ -158,6 +204,8 @@ $I->amOnUrl('http://stats.fd3.flowdat.com/admin/stats/device/create');
|
|
|
|
|
|
|
|
|
|
|
|
+*/
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|