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 |
|
|
?> |