|
@@ -0,0 +1,70 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+class OnuCest
|
|
|
+{
|
|
|
+ public function frontpageWorks(AcceptanceTester $I)
|
|
|
+ {
|
|
|
+ $I->amOnPage('/');
|
|
|
+ $I->see('Nombre de usuario');
|
|
|
+ $I->fillField('_username', 'admin');
|
|
|
+ $I->fillField('_password', 'adminpass');
|
|
|
+ $I->click('_submit');
|
|
|
+ $I->see('Administrador Panel principal');
|
|
|
+ $I->amOnPage('/admin/client/client/create');
|
|
|
+#crea el Cliente
|
|
|
+ $I->see('External Id');
|
|
|
+ $I->fillField('External Id', 'extid_001338');
|
|
|
+ $I->fillField('Nombre', 'TestFer');
|
|
|
+ $I->fillField('Companía', 'Interlink');
|
|
|
+ $I->fillField('Comentario', 'Test');
|
|
|
+ $I->fillField('Email', 'fernandoik@interlink.com');
|
|
|
+ $I->fillField('Teléfono', '03407138383');
|
|
|
+ $I->click('btn_create_and_list');
|
|
|
+# $I->see('El elemento "TestFer" ha sido creado con éxito');
|
|
|
+
|
|
|
+ $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onu/create');
|
|
|
+
|
|
|
+$uri = $I->grabFromCurrentUrl();
|
|
|
+echo $uri . "\n";
|
|
|
+
|
|
|
+$I->see('Administrador Crear');
|
|
|
+
|
|
|
+ $I->sendAjaxGetRequest('http://ftth.fd3.flowdat.com/ajax_client_list?q=TestFer'."\n", array('notifications' => true));
|
|
|
+
|
|
|
+# $I->selectOption('Cliente', array('value' => '1476'));
|
|
|
+#$I->see('TestFer');
|
|
|
+
|
|
|
+ $I->fillField('Número Serie Pon', '0002');
|
|
|
+ $I->selectOption('Perfil',array('value' => '3'));
|
|
|
+ $I->selectOption('NAP',array('value' => '1'));
|
|
|
+ $I->selectOption('Modelo',array('value' => '1'));
|
|
|
+ $I->fillField('Número Serie','12345');
|
|
|
+ $I->fillField('Mac','01');
|
|
|
+ $I->selectOption('OLT',array('value' => '4'));
|
|
|
+
|
|
|
+ $I->click('Crear y regresar al listado');
|
|
|
+
|
|
|
+$uri = $I->grabFromCurrentUrl();
|
|
|
+echo $uri . "\n";
|
|
|
+
|
|
|
+$I->see('Máxima cantidad de ONU por NAP.');
|
|
|
+
|
|
|
+#$I->selectOption('Cliente', array('text' => 'TestFer'));
|
|
|
+
|
|
|
+# $I->fillField('Nombre', 'TestFer');
|
|
|
+# $I->fillField('Companía', 'Interlink');
|
|
|
+# $I->fillField('Comentario', 'Test');
|
|
|
+# $I->fillField('Email', 'fernandoik@interlink.com');
|
|
|
+# $I->fillField('Teléfono', '03407138383');
|
|
|
+# $I->click('btn_create_and_create');
|
|
|
+# $I->see('El elemento "TestFer" ha sido creado con éxito');
|
|
|
+# $I->amOnPage('/admin/client/client/list');
|
|
|
+# $I->see('Administrador - Listado Clientes');
|
|
|
+# $I->fillField(array('id' => 'filter_externalId_value'),'extid_001338');
|
|
|
+# $I->click('Filtrar');
|
|
|
+# $I->see('TestFer');
|
|
|
+# $I->click('Borrar');
|
|
|
+# $I->click('Sí, borrar');
|
|
|
+ }
|
|
|
+
|
|
|
+}
|