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
40
41
42
43
44
45
46
47
48
|
<?php
//New Test
class ValidationSummaryTestCase extends PradoGenericSeleniumTest
{
function test()
{
$base = "ctl0_Content_";
$this->open("validators/index.php?page=ValidationSummary", "");
$this->verifyTextPresent("Validation Summary Test", "");
//$this->verifyText("{$base}summary1", "");
//$this->verifyText("{$base}summary2", "");
$this->click("//input[@type='submit' and @value='Create New Account']", "");
$this->assertVisible("{$base}summary1");
$this->assertNotVisible("{$base}summary2");
$this->click("//input[@type='submit' and @value='Sign In']", "");
$this->assertNotVisible("{$base}summary1");
$this->assertVisible("{$base}summary2");
$this->type("{$base}Username", "qwe");
$this->type("{$base}Password", "ewwq");
$this->click("//input[@type='submit' and @value='Sign In']", "");
$this->assertNotVisible("{$base}summary1");
$this->assertVisible("{$base}summary2");
/*$this->clickAndWait("//input[@type='submit' and @value='Create New Account']", "");
$this->type("{$base}UserID", "123");
$this->type("{$base}Pass", "123");
$this->clickAndWait("//input[@type='submit' and @value='Sign In']", "");
//$this->verifyText("{$base}summary1", "");
//$this->verifyText("{$base}summary2", "");
$this->clickAndWait("//input[@type='submit' and @value='Create New Account']", "");
//$this->verifyText("{$base}summary1", "");
//$this->verifyText("{$base}summary2", "");
$this->type("{$base}Password", "");
$this->click("//input[@type='submit' and @value='Create New Account']", "");
$this->assertVisible("{$base}summary1");
$this->assertNotVisible("{$base}summary2");
$this->type("{$base}Password", "12312");
$this->assertVisible("{$base}summary1");
*/
}
}
|