blob: df462c8d9be473e0140bbf4038f0ab8a65f3313e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
<?php
class Ticket595TestCase extends SeleniumTestCase
{
function test()
{
$base="ctl0_Content_";
$this->open('tickets/index.php?page=Ticket595');
$this->assertTitle("Verifying Ticket 595");
$this->click($base.'ctl2');
$this->assertAttribute($base.'A@class','errorclassA');
$this->type($base.'A', 'Prado');
$this->click($base.'ctl2');
$this->assertAttribute($base.'A@class','errorclassA');
$this->type($base.'A', 'test@example.com');
$this->click($base.'ctl2');
$this->pause(800);
$this->assertAttribute($base.'A@class','');
$this->click($base.'ctl5');
$this->pause(800);
$this->assertAttribute($base.'B@class','errorclassB');
$this->type($base.'B', 'Prado');
$this->click($base.'ctl5');
$this->pause(800);
$this->assertAttribute($base.'B@class','errorclassB');
$this->type($base.'B', 'test@example.com');
$this->click($base.'ctl5');
$this->pause(800);
$this->assertAttribute($base.'B@class','');
}
}
?>
|