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
|
<?php
class Ticket656TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base = 'ctl0_Content_';
$this->url('tickets/index.php?page=Ticket656');
$this->assertEquals($this->title(), "Verifying Ticket 656");
// First test, current date
$this->byId($base."btnUpdate")->click();
$this->pause(800);
$this->assertText($base."lblStatus",date("d-m-Y"));
// Then, set another date
$year=date('Y')-2;
$this->select($base."datePicker_day",20);
$this->select($base."datePicker_month", 10);
$this->select($base."datePicker_year", $year);
$this->byId($base."btnUpdate")->click();
$this->pause(800);
$this->assertText($base."lblStatus",date("d-m-Y", mktime(0,0,0,10,20,$year)));
}
}
|