getName())."\r\n"; } public function onNotSuccessfulTest(Exception $e){ echo 'Line '.$e->getLine().' : '.$e->getMessage()."\r\n"; parent::onNotSuccessfulTest($e); } /** * Permet de tester l'export Sitadel */ public function test_01_export_sitadel() { // $this->login("suivi", "suivi"); // Ouverture de la page $this->clickAndWait("link=export sitadel"); $this->verifyNoErrors(); $this->verifyTextPresent("export SITADEL"); // Verification des champs obligatoires $this->clickAndWait("//input[@value='export SITADEL']"); $this->verifyNoErrors(); $this->verifyTextPresent("Les champs dates sont obligatoires"); // Verification des champs obligatoires $this->type("id=datedebut", "15/12/2012"); $this->type("id=datefin", ""); $this->clickAndWait("//input[@value='export SITADEL']"); $this->verifyNoErrors(); $this->verifyTextPresent("Les champs dates sont obligatoires"); // Verification des champs obligatoires $this->type("id=datedebut", ""); $this->type("id=datefin", "18/12/2012"); $this->clickAndWait("//input[@value='export SITADEL']"); $this->verifyNoErrors(); $this->verifyTextPresent("Les champs dates sont obligatoires"); // Ajout de dates valides $this->type("id=datedebut", "15/12/2012"); $this->type("id=datefin", "18/12/2012"); // Validation du formulaire $this->clickAndWait("//input[@value='export SITADEL']"); $this->verifyNoErrors(); // Verification du message $this->verifyTextPresent("Fichier SITADEL"); $this->verifyTextPresent("sauvegarde"); // // Click sur le lien du fichier // $this->click("css=img[alt=\"Telecharger le fichier CNEN\"]"); // $this->waitForPopUp("", "30000"); // $this->selectPopUp(); // sleep(5); // $this->verifyNoErrors(); // // Vérification du contenu du fichier // $this->verifyTextPresent("SITADEL|0013|055|93|1305150013055|1|258|130515|17|openFoncier"); // $this->verifyTextPresent("DEPOT|PC|Vm|0013|055|12|00001|0|1|vm|JACQUES|DUPONT|Vm|Vm|Vm|Vm|Vm|Vm|Vm|12|vm|RUE DE LA LOI|vm|MARSEILLE|13155|vm|vm|FRA|vm|vm|vm|vm|vm|vm|vm|vm|vm|vm|vm|vm|vm|vm|vm|vm|0|vm|vm|vm|vm|vm|vm|vm|vm|Vm|Vm|Vm|Vm|Vm|Vm|0|0|0\nDECISION|PC|Vm|0013|055|12|00001|0|1|vm|vm|vm0|0|1|1|vm|Vm|Vm|0000|00000|10|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|000000|0|0|0|0|0000000|vm|00000|0|0|0|0|0|0|0|0|0|0|0|0"); // $this->logout(); } } ?>