blob: 7e3b43fa9dddf57909366d526959148ead99d421 (
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
40
41
42
43
44
45
46
47
48
|
<?php
/**
* This part is read by the test suite builder (TestSuite.php)
* to print the title of each test group
**/
$test_title = 'Test group title';
/**
* When GET'ed by the test suite builder, it pass two parameters:
* * run: to dynamically create the test group according to the backend PostgreSQL version
* * server: the server id to connect to
**/
if (isset($_GET['run'])) {
/* load the english $lang array */
global $lang;
/* this file contains logins/passwords and parameters for tests users and database */
require('../config.test.php');
/* the test builder class */
require('../testBuilder.class.php');
$t = new TestBuilder($test_title,
'Title for the test group page.'
);
/* tests here...
$t->addComment('this is a comment');
// login
$t->login($super_user[$t->server['desc']], $super_pass[$t->server['desc']]);
// Testing backend capability
if ($t->data->hasXXXXX()) {
...
}
// Filling a field
$t->type('formFieldName', "a value");
// etc...
*/
/**
* When finished, destry the class instance.
**/
unset($t);
}
?>
|