Revision 6c8a96c2
Von Thomas Kasulke vor mehr als 17 Jahren hinzugefügt
t/lx-office.t | ||
---|---|---|
162 | 162 |
} |
163 | 163 |
printf "\n\t\%s\n\t%s\n","Be ensure, that usage is promitted by login and db status!","\xAF" x 58; |
164 | 164 |
} |
165 |
|
|
165 |
unlink("/tmp/lxtest-temp.conf"); |
|
166 | 166 |
exit 1; |
t/selenium/AllTests.t | ||
---|---|---|
39 | 39 |
use Test::More qw(no_plan); |
40 | 40 |
use IO::Socket; |
41 | 41 |
|
42 |
|
|
43 | 42 |
if(-f "/tmp/lxtest-temp.conf") { |
44 | 43 |
eval { require('/tmp/lxtest-temp.conf'); }; |
45 | 44 |
} |
... | ... | |
74 | 73 |
|
75 | 74 |
|
76 | 75 |
$lxtest->{test_id} = time; # create individual ids by unixtime |
77 |
$lxtest->{testuserlogin} = $lxtest->{testlogin} . $lxtest->{test_id}; |
|
78 |
$lxtest->{testuserpasswd} = $lxtest->{test_id}; |
|
79 |
$lxtest->{db} = $lxtest->{db} . $lxtest->{test_id}; |
|
76 |
$lxtest->{testuserlogin} = $lxtest->{testlogin} . $lxtest->{test_id} if(!$lxtest->{testuserlogin});
|
|
77 |
$lxtest->{testuserpasswd} = $lxtest->{test_id} if(!$lxtest->{testuserpasswd});
|
|
78 |
$lxtest->{db} = $lxtest->{db} . $lxtest->{test_id} if(!($lxtest->{db} =~ /^seleniumtestdatabase[0-9]{10}$/));
|
|
80 | 79 |
|
81 | 80 |
ok(defined $lxtest->{rpw}, "Get root password"); |
82 | 81 |
|
... | ... | |
116 | 115 |
} |
117 | 116 |
closedir(SCRIPTS); |
118 | 117 |
} |
118 |
if($!) { |
|
119 |
@! = ("Test fehlgeschlagen!"); |
|
120 |
} |
|
119 | 121 |
$sel->stop(); |
120 | 122 |
} |
121 | 123 |
|
t/selenium/testscripts/accounting/begin/A000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/accounting/begin/A999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/accounting/end/A000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/accounting/end/A999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/administration/begin/A001CreateTestDatabase.t | ||
---|---|---|
1 |
### Create Database |
|
2 |
|
|
3 |
$sel->open_ok($lxtest->{lxadmin}); |
|
4 |
|
|
5 |
if($sel->get_title() eq "") { |
|
6 |
$sel->open_ok($lxtest->{lxadmin_url}); |
|
7 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]"); |
|
8 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
9 |
} |
|
10 |
|
|
11 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
12 |
|
|
13 |
diag('Lock the system'); |
|
14 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); |
|
15 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
16 |
|
|
17 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
18 |
diag("Create test database '$lxtest->{db}'"); |
|
19 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
20 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
21 |
$sel->title_is("Lx-Office ERP / Datenbankadministration -"); |
|
22 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
23 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
24 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
25 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
26 |
$sel->type_ok("dbdefault", $lxtest->{dbdefault}); |
|
27 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank anlegen\")]"); |
|
28 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
29 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -"); |
|
30 |
$sel->type_ok("db", $lxtest->{db}); |
|
31 |
$sel->select_ok("encoding", "label=ISO 8859-1"); |
|
32 |
$sel->select_ok("chart", "label=Germany-DATEV-SKR03EU"); |
|
33 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
34 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
35 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -"); |
|
36 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
37 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
38 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
39 |
|
|
40 |
diag('Unlock the system'); |
|
41 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]"); |
|
42 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
43 |
$sel->title_is("Lx-Office ERP Administration -"); |
t/selenium/testscripts/administration/begin/A002CreateTestUser.t | ||
---|---|---|
1 |
|
|
2 |
### Create new user |
|
3 |
diag("Create test user '$lxtest->{testuserlogin}'"); |
|
4 |
$sel->open_ok($lxtest->{lxadmin}); |
|
5 |
|
|
6 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
7 |
$sel->click_ok("action"); |
|
8 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
9 |
$sel->title_is("Lx-Office ERP Administration / Benutzer erfassen -"); |
|
10 |
$sel->type_ok("login", $lxtest->{testuserlogin}); |
|
11 |
$sel->type_ok("password", $lxtest->{testuserpasswd}); |
|
12 |
$sel->type_ok("name", "Selenium"); |
|
13 |
$sel->type_ok("email", "selenium\@lx-office.org"); |
|
14 |
$sel->type_ok("signature", "Selenium Testuser"); |
|
15 |
$sel->type_ok("tel", "0000"); |
|
16 |
$sel->type_ok("fax", "1111"); |
|
17 |
$sel->type_ok("company", "Sel-enium"); |
|
18 |
$sel->type_ok("signature", "Selenium Testuser\nTestfirma"); |
|
19 |
$sel->type_ok("address", "Testfirma"); |
|
20 |
$sel->type_ok("taxnumber", "111-222-333-444"); |
|
21 |
$sel->type_ok("co_ustid", "1234567"); |
|
22 |
$sel->type_ok("duns", "0987654321"); |
|
23 |
#$sel->click_ok("dbdriver"); |
|
24 |
$sel->type_ok("newtemplates", "seleniumtestuser"); |
|
25 |
$sel->click_ok("menustyle"); |
|
26 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
27 |
$sel->type_ok("dbname", $lxtest->{db}); |
|
28 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
29 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
30 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
31 |
$sel->click_ok("action"); |
|
32 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
33 |
$sel->title_is("Lx-Office ERP Administration -"); |
t/selenium/testscripts/administration/begin/A003UpdateDatabase.t | ||
---|---|---|
1 |
### Update Database |
|
2 |
|
|
3 |
# NOTEST: some preruns for initializing missing parameters |
|
4 |
$sel->open($lxtest->{lxadmin}); |
|
5 |
|
|
6 |
$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
7 |
$sel->wait_for_page_to_load($lxtest->{timeout}); |
|
8 |
$sel->type("dbuser", $lxtest->{dbuser}); |
|
9 |
$sel->type("dbpasswd", $lxtest->{dbpasswd}); |
|
10 |
$sel->type("dbuser", $lxtest->{dbuser}); |
|
11 |
$sel->type("dbhost", $lxtest->{dbhost}); |
|
12 |
$sel->type("dbport", $lxtest->{dbport}); |
|
13 |
$sel->type("dbdefault", $lxtest->{dbdefault}); |
|
14 |
$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]"); |
|
15 |
$sel->wait_for_page_to_load($lxtest->{timeoutlong}); |
|
16 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -"); |
|
17 |
|
|
18 |
my $count =0; |
|
19 |
|
|
20 |
while (){ # count the number of radiobuttons |
|
21 |
eval { $sel->is_checked("//input[(\@id=\"$count\")]"); }; |
|
22 |
if ( $@ ) { $count--; last; }; |
|
23 |
$count++; |
|
24 |
} |
|
25 |
|
|
26 |
#TEST: Now run the Tests |
|
27 |
|
|
28 |
$sel->open_ok($lxtest->{lxadmin}); |
|
29 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
30 |
|
|
31 |
#diag('Lock the system'); |
|
32 |
#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); |
|
33 |
#$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
34 |
|
|
35 |
diag('Update the database'); |
|
36 |
|
|
37 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
38 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
39 |
$sel->title_is("Lx-Office ERP / Datenbankadministration -"); |
|
40 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
41 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
42 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
43 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
44 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
45 |
$sel->type_ok("dbdefault", $lxtest->{dbdefault}); |
|
46 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]"); |
|
47 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
48 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -"); |
|
49 |
|
|
50 |
for (my $i=0; $i <= $count; $i++){ |
|
51 |
$sel->uncheck_ok("//input[(\@id=\"$i\")]"); |
|
52 |
} |
|
53 |
|
|
54 |
#$sel->click_ok("//input[\@value=\"$lxtest->{db}\"]"); |
|
55 |
#$sel->check_ok("//input[\@name=\"db$lxtest->{db}\"]"); |
|
56 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
57 |
$sel->title_like( qr/Lx-Office ERP Datenbankadministration/ ); |
|
58 |
|
|
59 |
#diag('Unlock the system'); |
|
60 |
#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]"); |
|
61 |
#$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
62 |
#$sel->title_is("Lx-Office ERP Administration -"); |
|
63 |
1; |
t/selenium/testscripts/administration/begin/B001CreateTestDatabase.t | ||
---|---|---|
1 |
### Create Database |
|
2 |
|
|
3 |
$sel->open_ok($lxtest->{lxadmin}); |
|
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 Administration -"); |
|
13 |
|
|
14 |
diag('Lock the system'); |
|
15 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); |
|
16 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
17 |
|
|
18 |
diag("Create test database '$lxtest->{db}'"); |
|
19 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
20 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
21 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
22 |
$sel->title_is("Lx-Office ERP / Datenbankadministration -"); |
|
23 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
24 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
25 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
26 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
27 |
$sel->type_ok("dbdefault", $lxtest->{dbdefault}); |
|
28 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank anlegen\")]"); |
|
29 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
30 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -"); |
|
31 |
$sel->type_ok("db", $lxtest->{db}); |
|
32 |
$sel->select_ok("encoding", "label=ISO 8859-1"); |
|
33 |
$sel->select_ok("chart", "label=Germany-DATEV-SKR03EU"); |
|
34 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
35 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
36 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -"); |
|
37 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
38 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
39 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
40 |
|
|
41 |
diag('Unlock the system'); |
|
42 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]"); |
|
43 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
44 |
$sel->title_is("Lx-Office ERP Administration -"); |
t/selenium/testscripts/administration/begin/B002CreateTestUser.t | ||
---|---|---|
1 |
|
|
2 |
### Create new user |
|
3 |
diag("Create test user '$lxtest->{testuserlogin}'"); |
|
4 |
$sel->open_ok($lxtest->{lxadmin}); |
|
5 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
6 |
$sel->click_ok("action"); |
|
7 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
8 |
$sel->title_is("Lx-Office ERP Administration / Benutzer erfassen -"); |
|
9 |
$sel->type_ok("login", $lxtest->{testuserlogin}); |
|
10 |
$sel->type_ok("password", $lxtest->{testuserpasswd}); |
|
11 |
$sel->type_ok("name", "Selenium"); |
|
12 |
$sel->type_ok("email", "selenium\@lx-office.org"); |
|
13 |
$sel->type_ok("signature", "Selenium Testuser"); |
|
14 |
$sel->type_ok("tel", "0000"); |
|
15 |
$sel->type_ok("fax", "1111"); |
|
16 |
$sel->type_ok("company", "Sel-enium"); |
|
17 |
$sel->type_ok("signature", "Selenium Testuser\nTestfirma"); |
|
18 |
$sel->type_ok("address", "Testfirma"); |
|
19 |
$sel->type_ok("taxnumber", "111-222-333-444"); |
|
20 |
$sel->type_ok("co_ustid", "1234567"); |
|
21 |
$sel->type_ok("duns", "0987654321"); |
|
22 |
#$sel->click_ok("dbdriver"); |
|
23 |
$sel->type_ok("newtemplates", "seleniumtestuser"); |
|
24 |
$sel->click_ok("menustyle"); |
|
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 |
$sel->click_ok("action"); |
|
31 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
32 |
$sel->title_is("Lx-Office ERP Administration -"); |
t/selenium/testscripts/administration/begin/B003UpdateDatabase.t | ||
---|---|---|
1 |
### Update Database |
|
2 |
|
|
3 |
# NOTEST: some preruns for initializing missing parameters |
|
4 |
$sel->open($lxtest->{lxadmin}); |
|
5 |
$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
6 |
$sel->wait_for_page_to_load($lxtest->{timeout}); |
|
7 |
$sel->type("dbuser", $lxtest->{dbuser}); |
|
8 |
$sel->type("dbpasswd", $lxtest->{dbpasswd}); |
|
9 |
$sel->type("dbuser", $lxtest->{dbuser}); |
|
10 |
$sel->type("dbhost", $lxtest->{dbhost}); |
|
11 |
$sel->type("dbport", $lxtest->{dbport}); |
|
12 |
$sel->type("dbdefault", $lxtest->{dbdefault}); |
|
13 |
$sel->click("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]"); |
|
14 |
$sel->wait_for_page_to_load($lxtest->{timeoutlong}); |
|
15 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -"); |
|
16 |
|
|
17 |
my $count =0; |
|
18 |
|
|
19 |
while (){ # count the number of radiobuttons |
|
20 |
eval { $sel->is_checked("//input[(\@id=\"$count\")]"); }; |
|
21 |
if ( $@ ) { $count--; last; }; |
|
22 |
$count++; |
|
23 |
} |
|
24 |
|
|
25 |
#TEST: Now run the Tests |
|
26 |
|
|
27 |
$sel->open_ok($lxtest->{lxadmin}); |
|
28 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
29 |
|
|
30 |
#diag('Lock the system'); |
|
31 |
#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); |
|
32 |
#$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
33 |
|
|
34 |
diag('Update the database'); |
|
35 |
|
|
36 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
37 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
38 |
$sel->title_is("Lx-Office ERP / Datenbankadministration -"); |
|
39 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
40 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
41 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
42 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
43 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
44 |
$sel->type_ok("dbdefault", $lxtest->{dbdefault}); |
|
45 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank aktualisieren\")]"); |
|
46 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
47 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank aktualisieren -"); |
|
48 |
|
|
49 |
for (my $i=0; $i <= $count; $i++){ |
|
50 |
$sel->uncheck_ok("//input[(\@id=\"$i\")]"); |
|
51 |
} |
|
52 |
|
|
53 |
#$sel->click_ok("//input[\@value=\"$lxtest->{db}\"]"); |
|
54 |
#$sel->check_ok("//input[\@name=\"db$lxtest->{db}\"]"); |
|
55 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
56 |
$sel->title_like( qr/Lx-Office ERP Datenbankadministration/ ); |
|
57 |
|
|
58 |
#diag('Unlock the system'); |
|
59 |
#$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]"); |
|
60 |
#$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
61 |
#$sel->title_is("Lx-Office ERP Administration -"); |
|
62 |
|
t/selenium/testscripts/administration/begin/B004Login.t | ||
---|---|---|
1 |
### Login |
|
2 |
|
|
3 |
diag("Login"); |
|
4 |
|
|
5 |
$sel->open_ok($lxtest->{lxbaseurl}."/login.pl"); |
|
6 |
|
|
7 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
8 |
$sel->title_is("Lx-Office Version ".$lxtest->{version}); |
|
9 |
$sel->type_ok("login", $lxtest->{testuserlogin}); |
|
10 |
$sel->type_ok("password", $lxtest->{testuserpasswd}); |
|
11 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]"); |
|
12 |
|
|
13 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
14 |
if($sel->title_is("Datenbankaktualisierung - Lx-Office Version 2.4.3 - -")) { |
|
15 |
$sel->click_ok("//input[(\@name=\"dummy\") and (\@value=\"Weiter\")]"); |
|
16 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
17 |
$sel->click_ok("//input[(\@type=\"submit\") and (\@value=\"Weiter\")]"); |
|
18 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
19 |
} |
|
20 |
|
|
21 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
t/selenium/testscripts/administration/end/A998DeleteTestUser.t | ||
---|---|---|
1 |
### Delete user |
|
2 |
diag("Delete test user '$lxtest->{testuserlogin}'"); |
|
3 |
$sel->open_ok($lxtest->{lxadmin}); |
|
4 |
|
|
5 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
6 |
$sel->click_ok("link=$lxtest->{testuserlogin}"); |
|
7 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
8 |
$sel->title_is("Lx-Office ERP Administration / Benutzerdaten bearbeiten -"); |
|
9 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"L?schen\")]"); |
|
10 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
t/selenium/testscripts/administration/end/A999DeleteTestDatabase.t | ||
---|---|---|
1 |
|
|
2 |
$sel->open_ok($lxtest->{lxadmin}); |
|
3 |
|
|
4 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
5 |
|
|
6 |
diag('Lock the system'); |
|
7 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); |
|
8 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
9 |
|
|
10 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
11 |
diag("Delete test database '$lxtest->{db}'"); |
|
12 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
13 |
$sel->title_is("Lx-Office ERP / Datenbankadministration -"); |
|
14 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
15 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
16 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
17 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
18 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank l?schen\")]"); |
|
19 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
20 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank l?schen -"); |
|
21 |
|
|
22 |
$sel->select_ok("db", "label=" . $lxtest->{db}); |
|
23 |
|
|
24 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
25 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
26 |
$sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank l?schen Die Datenbank $lxtest->{db} wurde erfolgreich gel?scht."); |
|
27 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
28 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
29 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
30 |
|
|
31 |
diag('Unlock the system'); |
|
32 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]"); |
|
33 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
34 |
$sel->title_is("Lx-Office ERP Administration -"); |
t/selenium/testscripts/administration/end/E997Logout.t | ||
---|---|---|
1 |
### Login |
|
2 |
|
|
3 |
diag("Logout"); |
|
4 |
|
|
5 |
$sel->select_frame_ok("relative=up") if(!$sel->is_element_present_ok("//img")); |
|
6 |
$sel->click_ok("link=abmelden"); |
|
7 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
8 |
$sel->title_is("Lx-Office Version ".$lxtest->{version}); |
t/selenium/testscripts/administration/end/E998DeleteTestUser.t | ||
---|---|---|
1 |
### Delete user |
|
2 |
diag("Delete test user '$lxtest->{testuserlogin}'"); |
|
3 |
$sel->open_ok($lxtest->{lxadmin}); |
|
4 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
5 |
$sel->click_ok("link=$lxtest->{testuserlogin}"); |
|
6 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
7 |
$sel->title_is("Lx-Office ERP Administration / Benutzerdaten bearbeiten -"); |
|
8 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"L?schen\")]"); |
|
9 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t | ||
---|---|---|
1 |
|
|
2 |
$sel->open_ok($lxtest->{lxadmin}); |
|
3 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
4 |
|
|
5 |
diag('Lock the system'); |
|
6 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); |
|
7 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
8 |
|
|
9 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); |
|
10 |
diag("Delete test database '$lxtest->{db}'"); |
|
11 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
12 |
$sel->title_is("Lx-Office ERP / Datenbankadministration -"); |
|
13 |
$sel->type_ok("dbhost", $lxtest->{dbhost}); |
|
14 |
$sel->type_ok("dbport", $lxtest->{dbport}); |
|
15 |
$sel->type_ok("dbuser", $lxtest->{dbuser}); |
|
16 |
$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); |
|
17 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank l?schen\")]"); |
|
18 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
19 |
$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank l?schen -"); |
|
20 |
|
|
21 |
$sel->select_ok("db", "label=" . $lxtest->{db}); |
|
22 |
|
|
23 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
24 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
25 |
$sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank l?schen Die Datenbank $lxtest->{db} wurde erfolgreich gel?scht."); |
|
26 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
27 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
28 |
$sel->title_is("Lx-Office ERP Administration -"); |
|
29 |
|
|
30 |
diag('Unlock the system'); |
|
31 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System entsperren\")]"); |
|
32 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
33 |
$sel->title_is("Lx-Office ERP Administration -"); |
t/selenium/testscripts/base/000Login.t | ||
---|---|---|
1 |
### Login |
|
2 |
|
|
3 |
diag("Login"); |
|
4 |
|
|
5 |
$sel->open_ok($lxtest->{lxbaseurl}."/login.pl"); |
|
6 |
|
|
7 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
8 |
$sel->title_is("Lx-Office Version ".$lxtest->{version}); |
|
9 |
$sel->type_ok("login", $lxtest->{testuserlogin}); |
|
10 |
$sel->type_ok("password", $lxtest->{testuserpasswd}); |
|
11 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]"); |
|
12 |
|
|
13 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
14 |
|
|
15 |
if($sel->get_text("//td") eq "Ung?ltiger Benutzername oder falsches Passwort!") { |
|
16 |
diag("\n\n\n\nWrong username or password!\n\n\n\n"); |
|
17 |
$sel->stop; |
|
18 |
exit(-1); |
|
19 |
} |
|
20 |
|
|
21 |
if($sel->get_title() eq "Datenbankaktualisierung - Lx-Office Version 2.4.3 - -") { |
|
22 |
$sel->click_ok("//input[(\@name=\"dummy\") and (\@value=\"Weiter\")]"); |
|
23 |
$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); |
|
24 |
$sel->click_ok("//input[(\@type=\"submit\") and (\@value=\"Weiter\")]"); |
|
25 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
26 |
} |
|
27 |
|
|
28 |
|
|
29 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
t/selenium/testscripts/base/999Logout.t | ||
---|---|---|
1 |
### Logout |
|
2 |
|
|
3 |
diag("Logout"); |
|
4 |
|
|
5 |
$sel->select_frame_ok("relative=top"); |
|
6 |
$sel->click_ok("link=abmelden"); |
|
7 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
8 |
$sel->title_is("Lx-Office Version ".$lxtest->{version}); |
t/selenium/testscripts/masterdata/begin/M000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/masterdata/begin/M999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/masterdata/end/M000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/masterdata/end/M999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/payments/begin/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/payments/begin/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/payments/end/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/payments/end/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/printing/begin/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/printing/begin/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/printing/end/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/printing/end/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/programm/begin/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/programm/begin/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/programm/end/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/programm/end/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/purchase/begin/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/purchase/begin/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/purchase/end/P000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/purchase/end/P999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/reports/begin/R000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/reports/begin/R999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/reports/end/R000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/reports/end/R999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/selling/begin/S000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/selling/begin/S999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/selling/end/S000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/selling/end/S999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/system/begin/S000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/system/begin/S001CreateProductGroups.t | ||
---|---|---|
1 |
diag("CreateProductGroups"); |
|
2 |
|
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
1 |
diag("Create product groups"); |
|
6 | 2 |
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Warengruppe erfassen"); |
t/selenium/testscripts/system/begin/S002CreatePriceBrackets.t | ||
---|---|---|
1 | 1 |
diag("Create price brackets"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Preisgruppe erfassen"); |
9 | 5 |
$sel->wait_for_page_to_load($lxtest->{timeout}); |
t/selenium/testscripts/system/begin/S003AddLanguage.t | ||
---|---|---|
1 | 1 |
diag("Add languages"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Sprache hinzuf?gen"); |
9 | 5 |
$sel->wait_for_page_to_load($lxtest->{timeout}); |
t/selenium/testscripts/system/begin/S004ShowLanguages.t | ||
---|---|---|
1 | 1 |
diag("Show languages"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Sprachen anzeigen"); |
9 | 5 |
$sel->wait_for_page_to_load($lxtest->{timeout}); |
t/selenium/testscripts/system/begin/S005AddPaymentConditions.t | ||
---|---|---|
1 | 1 |
diag("Add payment conditions"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Zahlungskonditionen hinzuf?gen"); |
9 | 5 |
$sel->wait_for_page_to_load($lxtest->{timeout}); |
t/selenium/testscripts/system/begin/S006ShowPaymentConditions.t | ||
---|---|---|
1 | 1 |
diag("Show payment conditions"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Zahlungskonditionen anzeigen"); |
9 | 5 |
$sel->wait_for_page_to_load($lxtest->{timeout}); |
t/selenium/testscripts/system/begin/S007AddCustomerVendorTypes.t | ||
---|---|---|
1 | 1 |
diag("Add customer/vendor types"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
9 | 5 |
$sel->click_ok("link=Kunden-/Lieferantentyp erfassen"); |
t/selenium/testscripts/system/begin/S008ShowCustomerVendorTypes.t | ||
---|---|---|
1 | 1 |
diag("Show customer/vendor types"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
9 | 5 |
$sel->click_ok("link=Kunden\-\/Lieferantentypen\ anzeigen"); |
t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t | ||
---|---|---|
1 | 1 |
diag("Add show and delete measure"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
9 | 5 |
$sel->click_ok("link=Ma?einheiten"); |
t/selenium/testscripts/system/begin/S010AddShowDeleteServiceMeasure.t | ||
---|---|---|
1 | 1 |
diag("Add show and delete service measure"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
9 | 5 |
$sel->click_ok("link=Dienstleistungseinheiten"); |
t/selenium/testscripts/system/begin/S999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
t/selenium/testscripts/system/end/S000Login.t | ||
---|---|---|
1 |
../../base/000Login.t |
t/selenium/testscripts/system/end/S992DeleteProductGroups.t | ||
---|---|---|
1 |
diag("Delete product groups"); |
|
2 |
|
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 |
$sel->select_frame_ok("relative=up"); |
|
8 |
$sel->click_ok("link=Warengruppen anzeigen"); |
|
9 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
10 |
$sel->select_frame_ok("main_window"); |
|
11 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
12 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
13 |
$sel->click_ok("link=TestSeleniumWarengruppe1"); |
|
14 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
15 |
$sel->click_ok("document.forms[0].action[1]"); |
|
16 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
17 |
$sel->click_ok("link=TestSeleniumWarengruppe2"); |
|
18 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
19 |
$sel->click_ok("document.forms[0].action[1]"); |
|
20 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
21 |
$sel->click_ok("link=TestSeleniumWarengruppe3"); |
|
22 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
23 |
$sel->click_ok("document.forms[0].action[1]"); |
|
24 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
t/selenium/testscripts/system/end/S995DeleteCustomerVendorTypes.t | ||
---|---|---|
1 | 1 |
diag("Delete customer/vendor types"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
9 | 5 |
$sel->click_ok("link=Kunden-/Lieferantentypen anzeigen"); |
t/selenium/testscripts/system/end/S996DeletePaymentConditions.t | ||
---|---|---|
1 | 1 |
diag("Delete payment conditions"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Zahlungskonditionen anzeigen"); |
9 | 5 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
t/selenium/testscripts/system/end/S997DeleteLanguages.t | ||
---|---|---|
1 | 1 |
diag("Delete languages"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->click_ok("link=Sprachen anzeigen"); |
9 | 5 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
t/selenium/testscripts/system/end/S998DeletePriceBrackets.t | ||
---|---|---|
1 | 1 |
diag("Delete price brackets"); |
2 | 2 |
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 | 3 |
$sel->select_frame_ok("relative=up"); |
8 | 4 |
$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); |
9 | 5 |
$sel->click_ok("link=Preisgruppen anzeigen"); |
t/selenium/testscripts/system/end/S999DeleteProductGroups.t | ||
---|---|---|
1 |
diag("Delete product groups"); |
|
2 |
|
|
3 |
if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ |
|
4 |
require_ok("../../begin/B004Login.t"); |
|
5 |
} |
|
6 |
|
|
7 |
$sel->select_frame_ok("relative=up"); |
|
8 |
$sel->click_ok("link=Warengruppen anzeigen"); |
|
9 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
10 |
$sel->select_frame_ok("main_window"); |
|
11 |
$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); |
|
12 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
13 |
$sel->click_ok("link=TestSeleniumWarengruppe1"); |
|
14 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
15 |
$sel->click_ok("document.forms[0].action[1]"); |
|
16 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
17 |
$sel->click_ok("link=TestSeleniumWarengruppe2"); |
|
18 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
19 |
$sel->click_ok("document.forms[0].action[1]"); |
|
20 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
21 |
$sel->click_ok("link=TestSeleniumWarengruppe3"); |
|
22 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
|
23 |
$sel->click_ok("document.forms[0].action[1]"); |
|
24 |
$sel->wait_for_page_to_load_ok($lxtest->{timeout}); |
t/selenium/testscripts/system/end/S999Logout.t | ||
---|---|---|
1 |
../../base/999Logout.t |
Auch abrufbar als: Unified diff
Fortführung der Struturierung und hinzufügen von Systemtests, sowie globaler Login und Logout Tests