123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <?php
- use Codeception\Util\Locator;
- class ScreenFTTHCest
- {
- public function frontpageWorks(AcceptanceTester $I)
- {
- $head = shell_exec('git rev-parse HEAD');
- $head = substr($head,0,-1);
- $directorio = '03_ftth/';
- shell_exec('mkdir -p ./tests/_output/debug/' . $head . "/" . $directorio);
- #log in
- try{
- $I->amOnPage('/');
- $I->see('Nombre de usuario');
- $I->fillField('_username', 'admin');
- $I->fillField('_password', 'admin');
- $I->click('_submit');
- $I->wait('3');
- }
- catch(\Exception $e){
- }
- #Screen lista Dash FTTH
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/dashboard');
- $I->makeScreenshot($head."/".$directorio.'15dashftth');
- $I->scrollTo(['css' => 'h3.box-title'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'15dashftth1');
- }
- catch(\Exception $e){
- }
- #Screen lista ONU
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onu/list');
- $I->makeScreenshot($head."/".$directorio.'16ONU');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'16ONU1');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 600);
- $I->makeScreenshot($head."/".$directorio.'16ONU2');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 1200);
- $I->makeScreenshot($head."/".$directorio.'16ONU3');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 1800);
- $I->makeScreenshot($head."/".$directorio.'16ONU4');
- }
- catch(\Exception $e){
- }
- #Screen lista OLT
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/olt/list');
- $I->makeScreenshot($head."/".$directorio.'17OLT');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'17OLT1');
- }
- catch(\Exception $e){
- }
- #Screen lista Modelo OLT
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/oltmodel/list');
- $I->makeScreenshot($head."/".$directorio.'18mOLT');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'18mOLT1');
- }
- catch(\Exception $e){
- }
- #Screen lista Modelo ONU
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/onumodel/list');
- $I->makeScreenshot($head."/".$directorio.'19mONU');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'19mONU1');
- }
- catch(\Exception $e){
- }
- #Screen lista Perfiles
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/profile/list');
- $I->makeScreenshot($head."/".$directorio.'20perfiles');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'20perfiles1');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 600);
- $I->makeScreenshot($head."/".$directorio.'20perfiles2');
- }
- catch(\Exception $e){
- }
- #Screen lista NAP
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/ftth/nap/list');
- $I->makeScreenshot($head."/".$directorio.'21NAP');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'21NAP1');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 600);
- $I->makeScreenshot($head."/".$directorio.'21NAP2');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 1200);
- $I->makeScreenshot($head."/".$directorio.'21NAP3');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 1800);
- $I->makeScreenshot($head."/".$directorio.'21NAP4');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 2400);
- $I->makeScreenshot($head."/".$directorio.'21NAP5');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 3000);
- $I->makeScreenshot($head."/".$directorio.'21NAP5');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 3600);
- $I->makeScreenshot($head."/".$directorio.'21NAP6');
- }
- catch(\Exception $e){
- }
- #Screen lista Workflow FTTH
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/workflow/list');
- $I->makeScreenshot($head."/".$directorio.'22workflowftth');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'22workflowftth1');
- }
- catch(\Exception $e){
- }
- #Screen lista Acciones FTTH
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/workflow/action/list');
- $I->makeScreenshot($head."/".$directorio.'23accionftth');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'23accionftth1');
- }
- catch(\Exception $e){
- }
- #Screen lista Template FTTH
- try{
- $I->amOnUrl('http://ftth.fd3.flowdat.com/admin/template/template/list');
- $I->makeScreenshot($head."/".$directorio.'24templateftth');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 0);
- $I->makeScreenshot($head."/".$directorio.'24templateftth1');
- $I->scrollTo(['id' => 'list_batch_checkbox'], 0, 600);
- $I->makeScreenshot($head."/".$directorio.'24templateftth2');
- }
- catch(\Exception $e){
- }
- }
- }
|