/[openfoncier]/branches/3.14.x/tests/testStatistiques.php
ViewVC logotype

Contents of /branches/3.14.x/tests/testStatistiques.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3343 - (show annotations)
Thu Mar 19 17:34:18 2015 UTC (9 years, 10 months ago) by vpihour
File size: 2761 byte(s)
Ajout de la branche

1 <?php
2 /**
3 * Script permettant de tester la génération de fichiers de statistiques
4 *
5 * @package openfoncier
6 * @version SVN : $Id$
7 */
8
9 //
10 require_once "base.php";
11
12 /**
13 *
14 */
15 class Statistiques extends BaseTestCase {
16
17 /**
18 * Permet de tester l'export Sitadel
19 */
20 public function test_01_export_sitadel() {
21 //
22 $this->login("admin", "admin");
23 // Ouverture de la page
24 $this->clickAndWait("link=export sitadel");
25 $this->verifyNoErrors();
26 $this->verifyTextPresent("export SITADEL");
27 // Verification des champs obligatoires
28 $this->clickAndWait("//input[@value='export SITADEL']");
29 $this->verifyNoErrors();
30 $this->verifyTextPresent("Les champs dates sont obligatoires");
31 // Verification des champs obligatoires
32 $this->type("id=datedebut", "15/12/2012");
33 $this->type("id=datefin", "");
34 $this->clickAndWait("//input[@value='export SITADEL']");
35 $this->verifyNoErrors();
36 $this->verifyTextPresent("Les champs dates sont obligatoires");
37 // Verification des champs obligatoires
38 $this->type("id=datedebut", "");
39 $this->type("id=datefin", "18/12/2012");
40 $this->clickAndWait("//input[@value='export SITADEL']");
41 $this->verifyNoErrors();
42 $this->verifyTextPresent("Les champs dates sont obligatoires");
43 // Ajout de dates valides
44 $this->type("id=datedebut", "15/12/2012");
45 $this->type("id=datefin", "18/12/2012");
46 // Validation du formulaire
47 $this->clickAndWait("//input[@value='export SITADEL']");
48 $this->verifyNoErrors();
49 // Verification du message
50 $this->verifyTextPresent("Fichier ../tmp/SITADEL");
51 $this->verifyTextPresent("sauvegarde");
52 // // Click sur le lien du fichier
53 // $this->click("css=img[alt=\"Telecharger le fichier CNEN\"]");
54 // $this->waitForPopUp("", "30000");
55 // $this->selectPopUp();
56 // sleep(5);
57 // $this->verifyNoErrors();
58 // // Vérification du contenu du fichier
59 // $this->verifyTextPresent("SITADEL|0013|055|93|1305150013055|1|258|130515|17|openFoncier");
60 // $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");
61 //
62 $this->logout();
63 }
64 }
65
66 ?>

Properties

Name Value
svn:keywords Id

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26