Revision 0205f9f4
Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt
t/selenium/AllTests.t | ||
---|---|---|
77 | 77 |
ok(defined $lxtest->{dbuser}, "found dbuser in config"); |
78 | 78 |
ok(defined $lxtest->{dbpasswd}, "found dbpasswd in config"); |
79 | 79 |
|
80 |
$lxtest->{lxadmin} = $lxtest->{lxbaseurl} . "admin.pl?rpw=$lxtest->{rpw}&nextsub=list_users&action=Weiter"; |
|
81 |
|
|
80 |
$lxtest->{lxadmin_url} = $lxtest->{lxbaseurl} . "admin.pl"; |
|
81 |
$lxtest->{lxadmin_with_get} = $lxtest->{lxadmin_url} . "?rpw=$lxtest->{rpw}&nextsub=list_users&action=Weiter"; |
|
82 |
$lxtest->{lxadmin} = $lxtest->{lxadmin_url} . "?rpw=$lxtest->{rpw}&nextsub=list_users&action=Weiter"; |
|
82 | 83 |
|
83 | 84 |
|
84 | 85 |
|
t/selenium/testscripts/001CreateTestDatabase.t | ||
---|---|---|
1 | 1 |
### Create Database |
2 | 2 |
|
3 | 3 |
$sel->open_ok($lxtest->{lxadmin}); |
4 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
4 |
#$sel->title_is("Lx-Office ERP Administration -"); |
|
5 |
# |
|
6 |
if($sel->get_title() eq "") { |
|
7 |
$sel->open_ok($lxtest->{lxadmin_url}); |
|
8 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]"); |
|
9 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
10 |
} |
|
11 |
|
|
12 |
$sel->title_is("Lx-Office ERP ".$lxtest->{version}." Administration -"); |
|
5 | 13 |
|
6 | 14 |
diag('Lock the system'); |
7 | 15 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); |
... | ... | |
14 | 22 |
$sel->title_is("Lx-Office ERP / Datenbankadministration -"); |
15 | 23 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
16 | 24 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
17 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
18 | 25 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
19 | 26 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
20 | 27 |
$sel->type_ok("dbdefault", $lxtest->{dbdefault}); |
t/selenium/testscripts/002CreateTestUser.t | ||
---|---|---|
16 | 16 |
$sel->type_ok("company", "Sel-enium"); |
17 | 17 |
$sel->type_ok("signature", "Selenium Testuser\nTestfirma"); |
18 | 18 |
$sel->type_ok("address", "Testfirma"); |
19 |
$sel->type_ok("steuernummer", "111-222-333-444");
|
|
19 |
$sel->type_ok("taxnumber", "111-222-333-444");
|
|
20 | 20 |
$sel->type_ok("co_ustid", "1234567"); |
21 | 21 |
$sel->type_ok("duns", "0987654321"); |
22 |
$sel->click_ok("dbdriver"); |
|
22 |
#$sel->click_ok("dbdriver");
|
|
23 | 23 |
$sel->type_ok("newtemplates", "seleniumtestuser"); |
24 | 24 |
$sel->click_ok("menustyle"); |
25 |
$sel->type_ok("Pg_dbhost", $lxtest->{dbhost});
|
|
26 |
$sel->type_ok("Pg_dbname", $lxtest->{db});
|
|
27 |
$sel->type_ok("Pg_dbport", $lxtest->{dbport});
|
|
28 |
$sel->type_ok("Pg_dbuser", $lxtest->{dbuser});
|
|
29 |
$sel->type_ok("Pg_dbpasswd", $lxtest->{dbpasswd});
|
|
25 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
26 |
$sel->type_ok("dbname", $lxtest->{db}); |
|
27 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
28 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
29 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
30 | 30 |
$sel->click_ok("action"); |
31 | 31 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
32 | 32 |
$sel->title_is("Lx-Office ERP Administration -"); |
t/selenium/testscripts/005UpdateDatabase.t | ||
---|---|---|
51 | 51 |
} |
52 | 52 |
|
53 | 53 |
#$sel->click_ok("//input[\@value=\"$lxtest->{db}\"]"); |
54 |
$sel->check_ok("//input[\@name=\"db$lxtest->{db}\"]"); |
|
54 |
#$sel->check_ok("//input[\@name=\"db$lxtest->{db}\"]");
|
|
55 | 55 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
56 | 56 |
$sel->title_like( qr/Lx-Office ERP Datenbankadministration/ ); |
57 | 57 |
|
Auch abrufbar als: Unified diff
An v2.4.3 angepasst