X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/34211d2356367e21aa8f624caa7b17ee4b8ec4ac..1d91e75c53e7da5bf2c1b334f5aeecf241dc5ec4:/t/old/selenium/testscripts/administration/begin/A001CreateTestDatabase.t diff --git a/t/old/selenium/testscripts/administration/begin/A001CreateTestDatabase.t b/t/old/selenium/testscripts/administration/begin/A001CreateTestDatabase.t new file mode 100644 index 000000000..7a568f0e8 --- /dev/null +++ b/t/old/selenium/testscripts/administration/begin/A001CreateTestDatabase.t @@ -0,0 +1,48 @@ +### Create Database +if(!defined $sel) { + require "t/selenium/AllTests.t"; + init_server("singlefileonly", $0); + exit(0); +} +$sel->open_ok($lxtest->{lxadmin}); + +if($sel->get_title() eq "") { + $sel->open_ok($lxtest->{lxadmin_url}); + $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Anmeldung\")]"); + $sel->wait_for_page_to_load_ok($lxtest->{timeout}); +} + +$sel->title_is("Lx-Office ERP Administration -"); + +diag('Lock the system'); +$sel->click_ok("document.forms[0].action[3]"); # Button für System sperren +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); + +$sel->title_is("Lx-Office ERP Administration -"); +diag("Create test database '$lxtest->{db}'"); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office ERP / Datenbankadministration -"); +$sel->type_ok("dbuser", $lxtest->{dbuser}); +$sel->type_ok("dbpasswd", $lxtest->{dbpasswd}); +$sel->type_ok("dbhost", $lxtest->{dbhost}); +$sel->type_ok("dbport", $lxtest->{dbport}); +$sel->type_ok("dbdefault", $lxtest->{dbdefault}); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank anlegen\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -"); +$sel->type_ok("db", $lxtest->{db}); +$sel->select_ok("encoding", "label=ISO 8859-1"); +$sel->select_ok("chart", "label=Germany-DATEV-SKR03EU"); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); +$sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank anlegen -"); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office ERP Administration -"); + +diag('Unlock the system'); +$sel->click_ok("document.forms[0].action[3]"); # BUtton für System entsperren +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office ERP Administration -"); +1; \ No newline at end of file