maximizeWindow(); $cliente = "fd3"; shell_exec('mkdir -p ./tests/_output/debug/02_Add_Cablemodem/'); #log in try{ $I->amOnPage('/'); try{ $I->acceptPopup(); }catch(\Exception $e){} $I->see('Nombre de usuario'); $I->fillField('_username', 'admin'); $I->fillField('_password', 'admin'); $I->click('_submit'); $I->wait('3'); }catch(\Exception $e){ $I->makeScreenshot('02_Add_Cablemodem/0_login'); } # Nodo try{ $I->amOnUrl('https://cablemodem.'.$cliente.'.flowdat.com/admin/cablemodem/node/create'); try{ $I->acceptPopup(); }catch(\Exception $e){ } $I->fillField('Nombre', 'TestFernando'); $I->click('Crear y regresar al listado'); $I->wait('5'); $I->see('ha sido creado con éxito.'); }catch(\Exception $e){ $I->makeScreenshot('02_Add_Cablemodem/1_Nodo'); } # Nodo Padre try{ $I->amOnUrl('https://cablemodem.'.$cliente.'.flowdat.com/admin/cablemodem/node/create'); try{ $I->acceptPopup(); }catch(\Exception $e){ } $I->fillField('Nombre', 'TestFernandoP'); $I->fillField('Padre','TestFernando'."\n"); $I->click('Crear y regresar al listado'); $I->wait('5'); $I->see('ha sido creado con éxito.'); }catch(\Exception $e){ $I->makeScreenshot('02_Add_Cablemodem/2_NodoP'); } # Perfil try{ $I->amOnUrl('https://cablemodem.'.$cliente.'.flowdat.com/admin/cablemodem/profile/create'); try{ $I->acceptPopup(); }catch(\Exception $e){ } $I->fillField('Nombre', 'TestFernando'); $I->fillField('Downstream','5000'); $I->fillField('Upstream','2000'); $I->fillField('Filtro upload','50'); $I->fillField('Filtro download','50'); $I->fillField('Max cpe','5'); $I->click('Crear y regresar al listado'); $I->wait('5'); $I->see('ha sido creado con éxito.'); }catch(\Exception $e){ $I->makeScreenshot('02_Add_Cablemodem/3_Perfil'); } # Modelo Cablemodem try{ $I->amOnUrl('https://cablemodem.'.$cliente.'.flowdat.com/admin/cablemodem/cablemodemmodel/create'); try{ $I->acceptPopup(); }catch(\Exception $e){ } $I->fillField('Nombre', 'TestFernando'); $I->click('Crear y regresar al listado'); $I->wait('5'); $I->see('ha sido creado con éxito.'); }catch(\Exception $e){ $I->makeScreenshot('02_Add_Cablemodem/4_ModCablemodem'); } # Modelo CMTS try{ $I->amOnUrl('https://cablemodem.'.$cliente.'.flowdat.com/admin/cablemodem/cmtsmodel/create'); try{ $I->acceptPopup(); }catch(\Exception $e){ } $I->fillField('Nombre', 'TestFernando'); $I->click('Crear y regresar al listado'); $I->wait('5'); $I->see('ha sido creado con éxito.'); }catch(\Exception $e){ $I->makeScreenshot('02_Add_Cablemodem/5_ModCMTS'); } # CMTS try{ $I->amOnUrl('https://cablemodem.'.$cliente.'.flowdat.com/admin/cablemodem/cmts/create'); try{ $I->acceptPopup(); }catch(\Exception $e){ } $I->fillField('Nombre', 'TestFernando'); $I->click('Configuración'); $I->wait('5'); $I->fillField('Host','cmts1.cabletv.com'); $I->fillField('SNMP Community','ferNando2'); $I->fillField('SNMP Version','2'."\n"); $I->click('Crear y regresar al listado'); $I->wait('5'); $I->see('ha sido creado con éxito.'); }catch(\Exception $e){ $I->makeScreenshot('02_Add_Cablemodem/6_CMTS'); } # Cablemodem try{ $I->amOnUrl('https://cablemodem.'.$cliente.'.flowdat.com/admin/cablemodem/cablemodem/create'); try{ $I->acceptPopup(); }catch(\Exception $e){ } $I->fillField('Mac','foe1d2c3b4a3'); # Mac $I->fillField('Código activación','ferNando2'); # Codigo $I->fillField('Nodo','TestFernando'."\n"); $I->fillField('Perfil','TestFernando'."\n"); $I->fillField('clientId_search', 'TestFernando'); # Cliente $I->pressKey("//*[@class='form-control ui-autocomplete-input']", WebDriverKeys::DOWN); $I->wait('3'); $I->click("//*[@class='ui-corner-all']"); $I->wait('3'); #$I->click('Mapa'); #$I->wait('3'); # $I->fillField("//*[@id='searchtext9']",'Mariano Moreno 535, Rosario'."\n"."\n"); #$I->click("//*[@id='searchtext9']"); # $I->pressKey("//*[@id='searchtext9']", WebDriverKeys::ENTER); #$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('02_Add_Cablemodem/7_Cablemodem'); } try{ $I->wait('5'); $I->acceptPopup(); }catch(\Exception $e){} } }