blob: 8116e75317d8f155384e4f424abe77a3e05d9283 (
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
|
<?php
/**
*
*/
class Ticket290TestCase extends PradoGenericSelenium2Test
{
function test()
{
$base = 'ctl0_Content_';
$this->url('tickets/index.php?page=Ticket290');
$this->assertEquals($this->title(), "Verifying Ticket 290");
$this->assertText("{$base}label1", "Label 1");
$this->assertText("{$base}label2", "Label 2");
$this->type("{$base}textbox1", "test");
$this->byId("{$base}textbox1")->click();
$this->keys(PHPUnit_Extensions_Selenium2TestCase_Keys::ENTER);
$this->pause(800);
$this->assertText("{$base}label1", "Doing Validation");
$this->assertText("{$base}label2", "Button 2 (default) Clicked!");
}
}
|