1 |
fmichon |
1649 |
<?php |
2 |
|
|
/** |
3 |
|
|
* |
4 |
|
|
* |
5 |
|
|
* @package openfoncier |
6 |
|
|
* @version SVN : $Id$ |
7 |
|
|
*/ |
8 |
|
|
|
9 |
fmichon |
1654 |
class BaseTestCase extends PHPUnit_Extensions_SeleniumTestCase { |
10 |
fmichon |
1649 |
|
11 |
|
|
protected function setUp() { |
12 |
|
|
$this->setBrowser("firefox"); |
13 |
fmichon |
1654 |
$this->setBrowserUrl("http://localhost/"); |
14 |
fmichon |
1649 |
// $this->setSleep(1); |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
protected function tearDown() { |
18 |
|
|
|
19 |
|
|
} |
20 |
|
|
|
21 |
|
|
protected function connect($login, $password) { |
22 |
fmichon |
1654 |
$this->open("openfoncier/"); |
23 |
fmichon |
1649 |
$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 |
|
|
?> |