19 |
} |
} |
20 |
|
|
21 |
protected function connect($login, $password) { |
protected function connect($login, $password) { |
22 |
$this->open("openads/"); |
$this->open(BASE_PATH_URL); |
23 |
$this->type("id=login", $login); |
$this->type("id=login", $login); |
24 |
$this->type("id=password", $password); |
$this->type("id=password", $password); |
25 |
$this->click("name=login.action.connect"); |
$this->click("name=login.action.connect"); |
92 |
* Url de base |
* Url de base |
93 |
* @var string |
* @var string |
94 |
*/ |
*/ |
95 |
var $url = "openads/"; |
var $url = BASE_PATH_URL; |
96 |
|
|
97 |
/** |
/** |
98 |
* Chemin dossier des screenshots |
* Chemin dossier des screenshots |
99 |
* @var string |
* @var string |
100 |
*/ |
*/ |
101 |
var $screenshotPath = '/var/www/openads/tests/results/'; |
var $screenshotPath = ''; |
102 |
|
|
103 |
/** |
/** |
104 |
* Option capture d'écran |
* Option capture d'écran |
111 |
* (fonctionnalité). |
* (fonctionnalité). |
112 |
*/ |
*/ |
113 |
protected function setUp() { |
protected function setUp() { |
114 |
|
$this->screenshotPath = '/var/www/'.BASE_PATH_URL.'tests/results/'; |
115 |
// On positionne le navigateur |
// On positionne le navigateur |
116 |
$this->setBrowser("firefox"); |
$this->setBrowser("firefox"); |
117 |
//$this->setBrowser("chrome"); |
//$this->setBrowser("chrome"); |