/[openfoncier]/trunk/tests/base.php
ViewVC logotype

Annotation of /trunk/tests/base.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1649 - (hide annotations)
Thu Apr 11 16:16:19 2013 UTC (11 years, 9 months ago) by fmichon
File size: 762 byte(s)
Ajout d'un dossier tests pour la gestion des tests fonctionnels

1 fmichon 1649 <?php
2     /**
3     *
4     *
5     * @package openfoncier
6     * @version SVN : $Id$
7     */
8    
9     class FIBaseTestCase extends PHPUnit_Extensions_SeleniumTestCase {
10    
11     protected function setUp() {
12     $this->setBrowser("firefox");
13     $this->setBrowserUrl("http://localhost/openfoncier");
14     // $this->setSleep(1);
15     }
16    
17     protected function tearDown() {
18    
19     }
20    
21     protected function connect($login, $password) {
22     $this->open("/");
23     $this->type("id=login", $login);
24     $this->type("id=password", $password);
25     $this->click("name=login.action.connect");
26     $this->waitForPageToLoad("30000");
27     }
28    
29     protected function deconnect() {
30     $this->click("link=Déconnexion");
31     $this->waitForPageToLoad("30000");
32     }
33    
34     }
35    
36     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26