From 9b057fb953934c00c255acc2aaf2f1254beb6860 Mon Sep 17 00:00:00 2001 From: Thomas Kasulke Date: Thu, 9 Aug 2007 13:17:22 +0000 Subject: [PATCH] =?utf8?q?Aufbau=20der=20"neuen"=20Testumgebung=20und=20Ne?= =?utf8?q?ustrukturierung=20der=20TestUnterverzeichnisse,=20sowie=20=C3=9C?= =?utf8?q?bermittlung=20fertiger=20Testskripte?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../begin/B001CreateTestDatabase.t} | 4 +- .../begin/B002CreateTestUser.t} | 0 .../begin/B003UpdateDatabase.t} | 0 .../begin/B004Login.t} | 5 +- .../administration/end/E997Logout.t | 8 ++ .../end/E998DeleteTestUser.t} | 0 .../end/E999DeleteTestDatabase.t} | 8 +- .../masterdata/begin/M001CreateCustomer.t | 106 +++++++++++++++ .../masterdata/begin/M002CreateVendor.t | 121 ++++++++++++++++++ .../masterdata/begin/M003CreateGoods.t | 64 +++++++++ .../masterdata/begin/M004AddService.t | 41 ++++++ .../masterdata/begin/M005AddProduct.t | 32 +++++ .../masterdata/begin/M006AddProject.t | 15 +++ .../system/begin/S001CreateProductGroups.t | 37 ++++++ .../system/begin/S002CreatePriceBrackets.t | 18 +++ .../system/begin/S003AddLanguage.t | 28 ++++ .../system/begin/S004ShowLanguages.t | 14 ++ .../system/begin/S005AddPaymentConditions.t | 18 +++ .../system/begin/S006ShowPaymentConditions.t | 14 ++ .../system/begin/S007AddCustomerVendorTypes.t | 20 +++ .../begin/S008ShowCustomerVendorTypes.t | 19 +++ .../system/begin/S009AddShowDeleteMeasure.t | 47 +++++++ .../begin/S010AddShowDeleteServiceMeasure.t | 25 ++++ .../end/S995DeleteCustomerVendorTypes.t | 19 +++ .../system/end/S996DeletePaymentConditions.t | 14 ++ .../system/end/S997DeleteLanguages.t | 14 ++ .../system/end/S998DeletePriceBrackets.t | 21 +++ .../system/end/S999DeleteProductGroups.t | 24 ++++ 28 files changed, 726 insertions(+), 10 deletions(-) rename t/selenium/testscripts/{001CreateTestDatabase.t => administration/begin/B001CreateTestDatabase.t} (92%) rename t/selenium/testscripts/{002CreateTestUser.t => administration/begin/B002CreateTestUser.t} (100%) rename t/selenium/testscripts/{005UpdateDatabase.t => administration/begin/B003UpdateDatabase.t} (100%) rename t/selenium/testscripts/{010Login.t => administration/begin/B004Login.t} (89%) create mode 100644 t/selenium/testscripts/administration/end/E997Logout.t rename t/selenium/testscripts/{K998DeleteTestUser.t => administration/end/E998DeleteTestUser.t} (100%) rename t/selenium/testscripts/{K999DeleteTestDatabase.t => administration/end/E999DeleteTestDatabase.t} (88%) create mode 100644 t/selenium/testscripts/masterdata/begin/M001CreateCustomer.t create mode 100644 t/selenium/testscripts/masterdata/begin/M002CreateVendor.t create mode 100644 t/selenium/testscripts/masterdata/begin/M003CreateGoods.t create mode 100644 t/selenium/testscripts/masterdata/begin/M004AddService.t create mode 100644 t/selenium/testscripts/masterdata/begin/M005AddProduct.t create mode 100644 t/selenium/testscripts/masterdata/begin/M006AddProject.t create mode 100644 t/selenium/testscripts/system/begin/S001CreateProductGroups.t create mode 100644 t/selenium/testscripts/system/begin/S002CreatePriceBrackets.t create mode 100644 t/selenium/testscripts/system/begin/S003AddLanguage.t create mode 100644 t/selenium/testscripts/system/begin/S004ShowLanguages.t create mode 100644 t/selenium/testscripts/system/begin/S005AddPaymentConditions.t create mode 100644 t/selenium/testscripts/system/begin/S006ShowPaymentConditions.t create mode 100644 t/selenium/testscripts/system/begin/S007AddCustomerVendorTypes.t create mode 100644 t/selenium/testscripts/system/begin/S008ShowCustomerVendorTypes.t create mode 100644 t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t create mode 100644 t/selenium/testscripts/system/begin/S010AddShowDeleteServiceMeasure.t create mode 100644 t/selenium/testscripts/system/end/S995DeleteCustomerVendorTypes.t create mode 100644 t/selenium/testscripts/system/end/S996DeletePaymentConditions.t create mode 100644 t/selenium/testscripts/system/end/S997DeleteLanguages.t create mode 100644 t/selenium/testscripts/system/end/S998DeletePriceBrackets.t create mode 100644 t/selenium/testscripts/system/end/S999DeleteProductGroups.t diff --git a/t/selenium/testscripts/001CreateTestDatabase.t b/t/selenium/testscripts/administration/begin/B001CreateTestDatabase.t similarity index 92% rename from t/selenium/testscripts/001CreateTestDatabase.t rename to t/selenium/testscripts/administration/begin/B001CreateTestDatabase.t index 4e9decba4..50ac47609 100644 --- a/t/selenium/testscripts/001CreateTestDatabase.t +++ b/t/selenium/testscripts/administration/begin/B001CreateTestDatabase.t @@ -9,7 +9,7 @@ if($sel->get_title() eq "") { $sel->wait_for_page_to_load_ok($lxtest->{timeout}); } -$sel->title_is("Lx-Office ERP ".$lxtest->{version}." Administration -"); +$sel->title_is("Lx-Office ERP Administration -"); diag('Lock the system'); $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); @@ -30,7 +30,7 @@ $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->click_ok("//input[(\@name=\"chart\") and (\@value=\"Germany-DATEV-SKR03EU\")]"); +$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 -"); diff --git a/t/selenium/testscripts/002CreateTestUser.t b/t/selenium/testscripts/administration/begin/B002CreateTestUser.t similarity index 100% rename from t/selenium/testscripts/002CreateTestUser.t rename to t/selenium/testscripts/administration/begin/B002CreateTestUser.t diff --git a/t/selenium/testscripts/005UpdateDatabase.t b/t/selenium/testscripts/administration/begin/B003UpdateDatabase.t similarity index 100% rename from t/selenium/testscripts/005UpdateDatabase.t rename to t/selenium/testscripts/administration/begin/B003UpdateDatabase.t diff --git a/t/selenium/testscripts/010Login.t b/t/selenium/testscripts/administration/begin/B004Login.t similarity index 89% rename from t/selenium/testscripts/010Login.t rename to t/selenium/testscripts/administration/begin/B004Login.t index 6ad9c65ee..3125c77c8 100644 --- a/t/selenium/testscripts/010Login.t +++ b/t/selenium/testscripts/administration/begin/B004Login.t @@ -1,6 +1,6 @@ ### Login -diag("TestLogin"); +diag("Login"); $sel->open_ok($lxtest->{lxbaseurl}."/login.pl"); @@ -18,5 +18,4 @@ if($sel->title_is("Datenbankaktualisierung - Lx-Office Version 2.4.3 - -")) { $sel->wait_for_page_to_load_ok($lxtest->{timeout}); } -$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " $lxtest->{db}); -1; \ No newline at end of file +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); diff --git a/t/selenium/testscripts/administration/end/E997Logout.t b/t/selenium/testscripts/administration/end/E997Logout.t new file mode 100644 index 000000000..3dd9c6350 --- /dev/null +++ b/t/selenium/testscripts/administration/end/E997Logout.t @@ -0,0 +1,8 @@ +### Login + +diag("Logout"); + +$sel->select_frame_ok("relative=up") if(!$sel->is_element_present_ok("//img")); +$sel->click_ok("link=abmelden"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office Version ".$lxtest->{version}); \ No newline at end of file diff --git a/t/selenium/testscripts/K998DeleteTestUser.t b/t/selenium/testscripts/administration/end/E998DeleteTestUser.t similarity index 100% rename from t/selenium/testscripts/K998DeleteTestUser.t rename to t/selenium/testscripts/administration/end/E998DeleteTestUser.t diff --git a/t/selenium/testscripts/K999DeleteTestDatabase.t b/t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t similarity index 88% rename from t/selenium/testscripts/K999DeleteTestDatabase.t rename to t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t index 511fbd291..53ee427e9 100644 --- a/t/selenium/testscripts/K999DeleteTestDatabase.t +++ b/t/selenium/testscripts/administration/end/E999DeleteTestDatabase.t @@ -1,5 +1,3 @@ -#### Delete database - $sel->open_ok($lxtest->{lxadmin}); $sel->title_is("Lx-Office ERP Administration -"); @@ -8,8 +6,8 @@ diag('Lock the system'); $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"System sperren\")]"); $sel->wait_for_page_to_load_ok($lxtest->{timeout}); -diag("Delete test database '$lxtest->{db}'"); $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbankadministration\")]"); +diag("Delete test database '$lxtest->{db}'"); $sel->wait_for_page_to_load_ok($lxtest->{timeout}); $sel->title_is("Lx-Office ERP / Datenbankadministration -"); $sel->type_ok("dbhost", $lxtest->{dbhost}); @@ -20,11 +18,11 @@ $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Datenbank l $sel->wait_for_page_to_load_ok($lxtest->{timeoutlong}); $sel->title_is("Lx-Office ERP Datenbankadministration / Datenbank löschen -"); -$sel->click_ok("//input[\@value=\"$lxtest->{db}\"]"); +$sel->select_ok("db", "label=" . $lxtest->{db}); $sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); $sel->wait_for_page_to_load_ok($lxtest->{timeout}); -$sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank löschen $lxtest->{db} wurde erfolgreich gelöscht"); +$sel->body_text_is("Lx-Office ERP Datenbankadministration / Datenbank löschen Die Datenbank $lxtest->{db} wurde erfolgreich gelöscht."); $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 -"); diff --git a/t/selenium/testscripts/masterdata/begin/M001CreateCustomer.t b/t/selenium/testscripts/masterdata/begin/M001CreateCustomer.t new file mode 100644 index 000000000..8809c6d3c --- /dev/null +++ b/t/selenium/testscripts/masterdata/begin/M001CreateCustomer.t @@ -0,0 +1,106 @@ +diag("Create first Customer"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Kunde erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("customernumber"); +$sel->type_ok("customernumber", "001"); +$sel->type_ok("greeting", "Firma"); +$sel->type_ok("name", "Selenium-Testfirma1"); +$sel->type_ok("department_1", "Einkauf"); +$sel->type_ok("department_2", "extern"); +$sel->type_ok("street", "Grummelburger 111"); +$sel->type_ok("zipcode", "37115"); +$sel->type_ok("city", "Musterstadt"); +$sel->type_ok("country", "Germany"); +$sel->type_ok("creditlimit", "100"); +$sel->type_ok("discount", "5"); +$sel->type_ok("account_number", "1"); +$sel->select_ok("salesman_id", "label=Selenium"); +$sel->type_ok("notes", "keine Bemerkungen"); +$sel->click_ok("link=Lieferadresse"); +$sel->click_ok("shipto_id"); +$sel->select_ok("shipto_id", "label=Alle"); +$sel->click_ok("//tr[1]/td/select/option[2]"); +$sel->click_ok("shiptoname"); +$sel->click_ok("shiptodepartment_1"); +$sel->type_ok("shiptodepartment_1", "Einkauf"); +$sel->type_ok("shiptostreet", "Donnerburger 12"); +$sel->type_ok("shiptozipcode", "37115"); +$sel->type_ok("shiptocity", "Musterstadt"); +$sel->type_ok("shiptocountry", "Germany"); +$sel->type_ok("shiptocontact", "Herr Mustermann"); +$sel->type_ok("shiptophone", "0"); +$sel->type_ok("shiptofax", "1"); +$sel->type_ok("shiptoemail", "mustermann\@linet-services.de"); +$sel->click_ok("link=Ansprechpartner"); +$sel->click_ok("cp_greeting"); +$sel->type_ok("cp_greeting", "Frau"); +$sel->type_ok("cp_title", "Dr."); +$sel->type_ok("cp_abteilung", "Verkauf"); +$sel->type_ok("cp_givenname", "Mechtilde"); +$sel->type_ok("cp_name", "Grosshaupt"); +$sel->type_ok("cp_phone1", "05528 111111111"); +$sel->type_ok("cp_phone2", "05528 222222222"); +$sel->type_ok("cp_fax", "05528 222222223"); +$sel->type_ok("cp_mobile1", "05528 2222222224"); +$sel->type_ok("cp_mobile2", "05528 2222222225"); +$sel->type_ok("cp_satphone", "05528 2222222226"); +$sel->type_ok("cp_satfax", "05528 2222222227"); +$sel->type_ok("cp_project", "1"); +$sel->type_ok("cp_email", "mustergrosshaupt\@linet-services.de"); +$sel->type_ok("cp_privatphone", "05528 2222222220"); +$sel->type_ok("cp_privatemail", "keine\@linet-services.de"); +$sel->type_ok("cp_birthday", "05.09.1982"); +$sel->click_ok("link=Lieferungen"); +$sel->click_ok("delivery_id"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); + +diag("Create second Customer"); +$sel->title_is("Kunde erfassen - Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Kunde erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("link=Rechnungsadresse"); +$sel->click_ok("customernumber"); +$sel->type_ok("customernumber", "2"); +$sel->click_ok("greeting"); +$sel->type_ok("greeting", "Herr"); +$sel->type_ok("name", "TestMann2"); +$sel->type_ok("street", "Goettingweg 3"); +$sel->type_ok("zipcode", "38100"); +$sel->type_ok("city", "Braunschweig"); +$sel->type_ok("country", "Germany"); +$sel->type_ok("phone", "0531 010101010101"); +$sel->type_ok("email", "testmann\@linet-services.de"); +$sel->click_ok("document.ct.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); + +diag("Create third Customer"); +$sel->title_is("Kunde erfassen - Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Kunde erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("customernumber"); +$sel->type_ok("customernumber", "3"); +$sel->click_ok("greeting"); +$sel->type_ok("greeting", "Frau"); +$sel->type_ok("name", "TestFrau3"); +$sel->type_ok("department_1", "Outsourced"); +$sel->type_ok("street", "Billighäuser 3444"); +$sel->click_ok("street"); +$sel->click_ok("zipcode"); +$sel->type_ok("zipcode", "67899"); +$sel->type_ok("city", "Brunnenberge"); +$sel->type_ok("country", "Austria"); +$sel->click_ok("document.ct.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); diff --git a/t/selenium/testscripts/masterdata/begin/M002CreateVendor.t b/t/selenium/testscripts/masterdata/begin/M002CreateVendor.t new file mode 100644 index 000000000..9cf41e167 --- /dev/null +++ b/t/selenium/testscripts/masterdata/begin/M002CreateVendor.t @@ -0,0 +1,121 @@ +diag("Create vendor"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Lieferant erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +diag("Create first vendor"); +$sel->select_frame_ok("main_window"); +$sel->click_ok("vendornumber"); +$sel->type_ok("vendornumber", "1"); +$sel->click_ok("selected_company_greeting"); +$sel->select_ok("selected_company_greeting", "label=Firma"); +$sel->click_ok("//option[2]"); +$sel->click_ok("name"); +$sel->type_ok("name", "TestLieferant1"); +$sel->type_ok("department_1", "GossAus"); +$sel->type_ok("street", "Berger 1"); +$sel->type_ok("zipcode", "11990"); +$sel->type_ok("city", "Drehmel"); +$sel->type_ok("country", "Germany"); +$sel->type_ok("contact", "Herr Custom"); +$sel->type_ok("phone", "01234 56787902"); +$sel->type_ok("fax", "01234 567879023"); +$sel->type_ok("email", "custom\@linet-services.de"); +$sel->type_ok("account_number", "2"); +$sel->click_ok("obsolete"); +$sel->click_ok("obsolete"); +$sel->type_ok("notes", "keine Bemerkungen"); +$sel->click_ok("link=Lieferadresse"); +$sel->click_ok("shipto_id"); +$sel->select_ok("shipto_id", "label=Alle"); +$sel->click_ok("//tr[1]/td/select/option[2]"); +$sel->click_ok("link=Ansprechpartner"); +$sel->click_ok("cp_id"); +$sel->click_ok("cp_id"); +$sel->click_ok("cp_greeting"); +$sel->click_ok("selected_cp_greeting"); +$sel->select_ok("selected_cp_greeting", "label=Frau"); +$sel->click_ok("//tr[2]/td/select/option[2]"); +$sel->click_ok("cp_title"); +$sel->click_ok("selected_cp_title"); +$sel->click_ok("cp_title"); +$sel->type_ok("cp_title", "Diplom Meterologin"); +$sel->click_ok("cp_abteilung"); +$sel->type_ok("cp_title", "Dipl. Inf."); +$sel->click_ok("cp_title"); +$sel->click_ok("cp_title"); +$sel->type_ok("cp_title", "Dipl. Ing."); +$sel->click_ok("cp_abteilung"); +$sel->type_ok("cp_abteilung", "Externes"); +$sel->type_ok("cp_givenname", "Hildegunde"); +$sel->type_ok("cp_name", "Riess"); +$sel->type_ok("cp_phone1", "0111 222333444 5"); +$sel->click_ok("cp_birthday"); +$sel->type_ok("cp_birthday", "12.03.1964"); +$sel->click_ok("link=Lieferungen"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=Rechnungsadresse"); +$sel->click_ok("document.ct.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +diag("Create second vendor"); +$sel->click_ok("vendornumber"); +$sel->type_ok("vendornumber", "2"); +$sel->click_ok("greeting"); +$sel->click_ok("selected_company_greeting"); +$sel->select_ok("selected_company_greeting", "label=Firma"); +$sel->click_ok("//option[2]"); +$sel->click_ok("name"); +$sel->type_ok("name", "TestLieferant2"); +$sel->type_ok("department_1", "Verkauf"); +$sel->type_ok("department_2", "Orga"); +$sel->type_ok("street", "Wlkenweg 3"); +$sel->type_ok("zipcode", "09090"); +$sel->type_ok("city", "Brummbach"); +$sel->click_ok("city"); +$sel->type_ok("city", "Markt Brummbach"); +$sel->click_ok("country"); +$sel->type_ok("country", "Germany"); +$sel->click_ok("document.ct.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +diag("Create third vendor"); +$sel->click_ok("link=Rechnungsadresse"); +$sel->click_ok("vendornumber"); +$sel->type_ok("vendornumber", "3"); +$sel->click_ok("selected_company_greeting"); +$sel->select_ok("selected_company_greeting", "label=Firma"); +$sel->click_ok("//option[2]"); +$sel->type_ok("name", "TestFirma3 GmbH"); +$sel->type_ok("fax", "03232 7272727273"); +$sel->type_ok("creditlimit", "50000"); +$sel->type_ok("discount", "10"); +$sel->click_ok("link=Lieferadresse"); +$sel->click_ok("shiptoname"); +$sel->type_ok("shiptoname", "TestFirma3 GmbH"); +$sel->type_ok("shiptodepartment_1", "Vertrieb"); +$sel->type_ok("shiptostreet", "Grummelsburger 1423"); +$sel->type_ok("shiptozipcode", "40000"); +$sel->type_ok("shiptocity", "Hansastadt"); +$sel->type_ok("shiptocountry", "Germany"); +$sel->type_ok("shiptocontact", "Herr Baumann von Clausen"); +$sel->type_ok("shiptophone", "03232 7272727272"); +$sel->type_ok("shiptofax", "03232 7272727273"); +$sel->type_ok("shiptoemail", "baumann\@linet-services.de"); +$sel->click_ok("link=Ansprechpartner"); +$sel->click_ok("selected_cp_greeting"); +$sel->click_ok("cp_greeting"); +$sel->type_ok("cp_greeting", "Herr"); +$sel->type_ok("cp_abteilung", "Vertrieb"); +$sel->type_ok("cp_givenname", "Dietmar"); +$sel->type_ok("cp_name", "Baumann von Clausen"); +$sel->type_ok("cp_phone1", "03232 7272727272"); +$sel->type_ok("cp_fax", "03232 7272727273"); +$sel->type_ok("cp_birthday", "14.05.1971"); +$sel->click_ok("link=Lieferungen"); +$sel->click_ok("document.ct.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); + diff --git a/t/selenium/testscripts/masterdata/begin/M003CreateGoods.t b/t/selenium/testscripts/masterdata/begin/M003CreateGoods.t new file mode 100644 index 000000000..29ac98103 --- /dev/null +++ b/t/selenium/testscripts/masterdata/begin/M003CreateGoods.t @@ -0,0 +1,64 @@ +diag("Create goods"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Ware erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("partnumber", "1"); +$sel->type_ok("description", "TestWare1"); +$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe1"); +$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); +$sel->click_ok("trigger1"); +$sel->type_ok("listprice", "100,00"); +$sel->type_ok("sellprice", "150,00"); +$sel->type_ok("lastcost", "50,00"); +$sel->select_ok("price_factor_id", "label=pro 10"); +$sel->type_ok("notes", "Zu dieser Testware existiert keine Bemerkung"); +$sel->select_ok("unit", "label=kg"); +$sel->type_ok("weight", "10"); +$sel->type_ok("rop", "10"); +$sel->type_ok("bin", "1"); +$sel->type_ok("ve", "10"); +$sel->click_ok("shop"); +$sel->type_ok("microfiche", "27 drei 4tel"); +$sel->select_ok("payment_id", "label=Schnellzahler/Skonto"); +# Spracheinstellungen müssen überarbeitet werden, bevor der Test laufen kann! +# $sel->click_ok("//button[\@type='button']"); +# $sel->wait_for_pop_up_ok("_new_generic", $lxtest->{timeout}); +# $sel->click_ok("//button[\@type='button']"); +# $sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->type_ok("price_1", "115,00"); +$sel->type_ok("price_2", "150,00"); +$sel->type_ok("make_1", "TestFabrikant1"); +$sel->type_ok("model_1", "TestWare1"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.ic.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->type_ok("partnumber", "2"); +$sel->type_ok("description", "TestWareSelenium2"); +$sel->type_ok("listprice", "0,50"); +$sel->type_ok("sellprice", "1,00"); +$sel->type_ok("lastcost", ",25"); +$sel->select_ok("unit", "label=kg"); +$sel->type_ok("weight", "0,5"); +$sel->type_ok("rop", "2"); +$sel->type_ok("bin", "2"); +$sel->click_ok("not_discountable"); +$sel->type_ok("ve", "1"); +$sel->type_ok("notes", "Die ist Brot"); +# Spracheinstellungen müssen überarbeitet werden, bevor der Test laufen kann! +# $sel->click_ok("//button[\@type='button']"); +# $sel->wait_for_pop_up_ok("_new_generic", $lxtest->{timeout}); +# $sel->click_ok("//button[\@type='button']"); +# $sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_ok("payment_id", "label=Schnellzahler/Skonto"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.ic.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); diff --git a/t/selenium/testscripts/masterdata/begin/M004AddService.t b/t/selenium/testscripts/masterdata/begin/M004AddService.t new file mode 100644 index 000000000..f94e4eb95 --- /dev/null +++ b/t/selenium/testscripts/masterdata/begin/M004AddService.t @@ -0,0 +1,41 @@ +diag("Add service"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Dienstleistung erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("partnumber", "999"); +$sel->type_ok("description", "Programmierstunde"); +$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3"); +$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); +$sel->type_ok("notes", "Eine Programmierstunde wird immer besser bezahlt"); +$sel->type_ok("listprice", "50,00"); +$sel->type_ok("sellprice", "100"); +$sel->type_ok("lastcost", "45"); +$sel->select_ok("unit", "label=Std"); +$sel->select_ok("payment_id", "label=Schnellzahler/Skonto"); +$sel->type_ok("price_1", "100"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.ic.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->type_ok("partnumber", "998"); +$sel->type_ok("description", "Telefonstunde"); +$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3"); +$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); +$sel->type_ok("notes", "gibt's beim Telekomunikator"); +$sel->type_ok("listprice", "0,05"); +$sel->type_ok("sellprice", "0,10"); +$sel->type_ok("lastcost", "0,02"); +$sel->select_ok("unit", "label=psch"); +$sel->select_ok("payment_id", "label=Schnellzahler/Skonto"); +$sel->type_ok("price_1", "0,02"); +$sel->type_ok("price_2", "0,1"); +$sel->type_ok("price_1", "0,1"); +$sel->click_ok("document.ic.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); \ No newline at end of file diff --git a/t/selenium/testscripts/masterdata/begin/M005AddProduct.t b/t/selenium/testscripts/masterdata/begin/M005AddProduct.t new file mode 100644 index 000000000..837965db6 --- /dev/null +++ b/t/selenium/testscripts/masterdata/begin/M005AddProduct.t @@ -0,0 +1,32 @@ +diag("Add product"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Erzeugnis erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("partnumber", "991"); +$sel->type_ok("description", "Handykarten"); +$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe2"); +$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%"); +$sel->click_ok("trigger1"); +$sel->type_ok("listprice", "3,00"); +$sel->type_ok("sellprice", "30,00"); +$sel->select_ok("unit", "label=Stck"); +$sel->type_ok("stock", "100"); +$sel->type_ok("rop", "10"); +$sel->type_ok("bin", "991"); +$sel->click_ok("not_discountable"); +$sel->click_ok("shop"); +$sel->type_ok("price_1", "30,00"); +$sel->type_ok("price_2", "30,00"); +$sel->type_ok("make_1", "TCom"); +$sel->type_ok("model_1", "standard"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.ic.action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); \ No newline at end of file diff --git a/t/selenium/testscripts/masterdata/begin/M006AddProject.t b/t/selenium/testscripts/masterdata/begin/M006AddProject.t new file mode 100644 index 000000000..08af6bc10 --- /dev/null +++ b/t/selenium/testscripts/masterdata/begin/M006AddProject.t @@ -0,0 +1,15 @@ +diag("Add product"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Projekt erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("projectnumber", "1001"); +$sel->type_ok("description", "tausend und eine Nacht"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); \ No newline at end of file diff --git a/t/selenium/testscripts/system/begin/S001CreateProductGroups.t b/t/selenium/testscripts/system/begin/S001CreateProductGroups.t new file mode 100644 index 000000000..9f1627cef --- /dev/null +++ b/t/selenium/testscripts/system/begin/S001CreateProductGroups.t @@ -0,0 +1,37 @@ +diag("CreateProductGroups"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Warengruppe erfassen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("partsgroup", "TestSeleniumWarengruppe1"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->type_ok("partsgroup", "TestSeleniumWarengruppe2"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Warengruppen anzeigen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=TestSeleniumWarengruppe1"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=TestSeleniumWarengruppe2"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->type_ok("partsgroup", "TestSeleniumWarengruppe3"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=TestSeleniumWarengruppe3"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); \ No newline at end of file diff --git a/t/selenium/testscripts/system/begin/S002CreatePriceBrackets.t b/t/selenium/testscripts/system/begin/S002CreatePriceBrackets.t new file mode 100644 index 000000000..42ee1330f --- /dev/null +++ b/t/selenium/testscripts/system/begin/S002CreatePriceBrackets.t @@ -0,0 +1,18 @@ +diag("Create price brackets"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Preisgruppe erfassen"); +$sel->wait_for_page_to_load($lxtest->{timeout}); + +$sel->select_frame_ok("main_window"); +$sel->type_ok("pricegroup", "SeleniumTestPreisgruppe1"); +$sel->click_ok("action","value=Speichern"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->type_ok("pricegroup", "SeleniumTestPreisgruppe2"); +$sel->click_ok("action","value=Speichern"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); + diff --git a/t/selenium/testscripts/system/begin/S003AddLanguage.t b/t/selenium/testscripts/system/begin/S003AddLanguage.t new file mode 100644 index 000000000..376b429c4 --- /dev/null +++ b/t/selenium/testscripts/system/begin/S003AddLanguage.t @@ -0,0 +1,28 @@ +diag("Add languages"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Sprache hinzufügen"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("description", "elbisch"); +$sel->type_ok("template_code", "elb"); +$sel->type_ok("article_code", "elb"); +$sel->select_ok("output_numberformat", "label=1.000,00"); +$sel->select_ok("output_dateformat", "label=yyyy-mm-dd"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); + +use DBI; +$lxtest->{dsn} = 'dbi:Pg:dbname=' . $lxtest->{db} . ';host=' . $lxtest->{dbhost} . ';port=' . $lxtest->{dbport}; +my $dbh = DBI->connect( $lxtest->{dsn}, $lxtest->{dbuser}, $lxtest->{dbpasswd} ) or die "Cannot connect to database!\n $DBI::errstr"; +my $sth = $dbh->prepare("SELECT id FROM language WHERE description ILIKE 'elbisch'") or die "Error while preparing sql statement!\n $DBI::errstr\n"; +$sth->execute() or die "Error while excecuting sql statement!\n $DBI::errstr"; +$lxtest->{lang_id} = $sth->fetchrow_array() or die "Nothing to fetch!\n$DBI::errstr"; +$sth->finish(); +$dbh->disconnect(); + +1; \ No newline at end of file diff --git a/t/selenium/testscripts/system/begin/S004ShowLanguages.t b/t/selenium/testscripts/system/begin/S004ShowLanguages.t new file mode 100644 index 000000000..2fb0ce6fb --- /dev/null +++ b/t/selenium/testscripts/system/begin/S004ShowLanguages.t @@ -0,0 +1,14 @@ +diag("Show languages"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Sprachen anzeigen"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("link=elbisch"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/begin/S005AddPaymentConditions.t b/t/selenium/testscripts/system/begin/S005AddPaymentConditions.t new file mode 100644 index 000000000..7bf3506f0 --- /dev/null +++ b/t/selenium/testscripts/system/begin/S005AddPaymentConditions.t @@ -0,0 +1,18 @@ +diag("Add payment conditions"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Zahlungskonditionen hinzufügen"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("description", "Schnellzahler/Skonto"); +$sel->type_ok("description_long", "Schnellzahler bekommen sofort ein Skonto von 3% gewährleistet"); +$sel->type_ok("description_long_" . $lxtest->{lang_id}, "This is a test in elbisch"); +$sel->type_ok("terms_netto", "100"); +$sel->type_ok("percent_skonto", "3"); +$sel->type_ok("terms_skonto", "97"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/begin/S006ShowPaymentConditions.t b/t/selenium/testscripts/system/begin/S006ShowPaymentConditions.t new file mode 100644 index 000000000..e0b391f60 --- /dev/null +++ b/t/selenium/testscripts/system/begin/S006ShowPaymentConditions.t @@ -0,0 +1,14 @@ +diag("Show payment conditions"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Zahlungskonditionen anzeigen"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("link=Schnellzahler/Skonto"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); \ No newline at end of file diff --git a/t/selenium/testscripts/system/begin/S007AddCustomerVendorTypes.t b/t/selenium/testscripts/system/begin/S007AddCustomerVendorTypes.t new file mode 100644 index 000000000..b70a6922c --- /dev/null +++ b/t/selenium/testscripts/system/begin/S007AddCustomerVendorTypes.t @@ -0,0 +1,20 @@ +diag("Add customer/vendor types"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Kunden-/Lieferantentyp erfassen"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("description", "Großabnehmer"); +$sel->type_ok("discount", "3"); +$sel->type_ok("customernumberinit", "100"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->type_ok("description", "Kleinkäufer"); +$sel->type_ok("customernumberinit", "200"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/begin/S008ShowCustomerVendorTypes.t b/t/selenium/testscripts/system/begin/S008ShowCustomerVendorTypes.t new file mode 100644 index 000000000..20b9f9b75 --- /dev/null +++ b/t/selenium/testscripts/system/begin/S008ShowCustomerVendorTypes.t @@ -0,0 +1,19 @@ +diag("Show customer/vendor types"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Kunden\-\/Lieferantentypen\ anzeigen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("link=Großabnehmer"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=Kleinkäufer"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t b/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t new file mode 100644 index 000000000..301b74977 --- /dev/null +++ b/t/selenium/testscripts/system/begin/S009AddShowDeleteMeasure.t @@ -0,0 +1,47 @@ +diag("Add show and delete measure"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Maßeinheiten"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("new_name", "ogge"); +$sel->select_ok("new_base_unit", "label=Stck"); +$sel->type_ok("new_factor", "3,5"); +$sel->type_ok("new_localized_" . $lxtest->{lang_id}, "kogge"); +$sel->type_ok("new_localized_plural_" . $lxtest->{lang_id}, "kogges"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->type_ok("localized_1_" . $lxtest->{lang_id}, "gm"); +$sel->type_ok("localized_plural_1_" . $lxtest->{lang_id}, "gms"); +$sel->type_ok("localized_2_" . $lxtest->{lang_id}, "gg"); +$sel->type_ok("localized_plural_2_" . $lxtest->{lang_id}, "ggs"); +$sel->type_ok("localized_3_" . $lxtest->{lang_id}, "gk"); +$sel->type_ok("localized_plural_3_" . $lxtest->{lang_id}, "gks"); +$sel->type_ok("localized_4_" . $lxtest->{lang_id}, "tt"); +$sel->type_ok("localized_plural_4_" . $lxtest->{lang_id}, "tts"); +$sel->type_ok("localized_5_" . $lxtest->{lang_id}, "lm"); +$sel->type_ok("localized_plural_5_" . $lxtest->{lang_id}, "lms"); +$sel->type_ok("localized_6_" . $lxtest->{lang_id}, "LL"); +$sel->type_ok("localized_plural_6_" . $lxtest->{lang_id}, "LLs"); +$sel->type_ok("localized_7_" . $lxtest->{lang_id}, "kctS"); +$sel->type_ok("localized_plural_7_" . $lxtest->{lang_id}, "kctSs"); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("delete_8"); +$sel->click_ok("//tr[9]/td[1]/a/img"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("//tr[8]/td[1]/a[1]/img"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("//tr[7]/td[1]/a[2]/img"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("//tr[8]/td[1]/a[2]/img"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("delete_8"); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load($lxtest->{timeout}); + diff --git a/t/selenium/testscripts/system/begin/S010AddShowDeleteServiceMeasure.t b/t/selenium/testscripts/system/begin/S010AddShowDeleteServiceMeasure.t new file mode 100644 index 000000000..c11a1ef13 --- /dev/null +++ b/t/selenium/testscripts/system/begin/S010AddShowDeleteServiceMeasure.t @@ -0,0 +1,25 @@ +diag("Add show and delete service measure"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Dienstleistungseinheiten"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->type_ok("new_name", "ProggerStunde"); +$sel->select_ok("new_base_unit", "label=Std"); +$sel->type_ok("new_factor", "2,0"); +$sel->type_ok("new_localized_" . $lxtest->{lang_id}, "Dinges"); +$sel->type_ok("new_localized_plural_" . $lxtest->{lang_id}, "Dingeses"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("//tr[6]/td[1]/a/img"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("//tr[5]/td[1]/a[2]/img"); +$sel->wait_for_page_to_load($lxtest->{timeout}); +$sel->click_ok("delete_5"); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/end/S995DeleteCustomerVendorTypes.t b/t/selenium/testscripts/system/end/S995DeleteCustomerVendorTypes.t new file mode 100644 index 000000000..8726c8980 --- /dev/null +++ b/t/selenium/testscripts/system/end/S995DeleteCustomerVendorTypes.t @@ -0,0 +1,19 @@ +diag("Delete customer/vendor types"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Kunden-/Lieferantentypen anzeigen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("link=Großabnehmer"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=Kleinkäufer"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/end/S996DeletePaymentConditions.t b/t/selenium/testscripts/system/end/S996DeletePaymentConditions.t new file mode 100644 index 000000000..4caa7920e --- /dev/null +++ b/t/selenium/testscripts/system/end/S996DeletePaymentConditions.t @@ -0,0 +1,14 @@ +diag("Delete payment conditions"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Zahlungskonditionen anzeigen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("link=Schnellzahler/Skonto"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/end/S997DeleteLanguages.t b/t/selenium/testscripts/system/end/S997DeleteLanguages.t new file mode 100644 index 000000000..576562fd0 --- /dev/null +++ b/t/selenium/testscripts/system/end/S997DeleteLanguages.t @@ -0,0 +1,14 @@ +diag("Delete languages"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Sprachen anzeigen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("link=elbisch"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); diff --git a/t/selenium/testscripts/system/end/S998DeletePriceBrackets.t b/t/selenium/testscripts/system/end/S998DeletePriceBrackets.t new file mode 100644 index 000000000..99f531a08 --- /dev/null +++ b/t/selenium/testscripts/system/end/S998DeletePriceBrackets.t @@ -0,0 +1,21 @@ +diag("Delete price brackets"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}); +$sel->click_ok("link=Preisgruppen anzeigen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("action"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=SeleniumTestPreisgruppe1"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=SeleniumTestPreisgruppe2"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); \ No newline at end of file diff --git a/t/selenium/testscripts/system/end/S999DeleteProductGroups.t b/t/selenium/testscripts/system/end/S999DeleteProductGroups.t new file mode 100644 index 000000000..bacf536c3 --- /dev/null +++ b/t/selenium/testscripts/system/end/S999DeleteProductGroups.t @@ -0,0 +1,24 @@ +diag("Delete product groups"); + +if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){ + require_ok("../../begin/B004Login.t"); +} + +$sel->select_frame_ok("relative=up"); +$sel->click_ok("link=Warengruppen anzeigen"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->select_frame_ok("main_window"); +$sel->click_ok("//input[(\@name=\"action\") and (\@value=\"Weiter\")]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=TestSeleniumWarengruppe1"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=TestSeleniumWarengruppe2"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("link=TestSeleniumWarengruppe3"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); +$sel->click_ok("document.forms[0].action[1]"); +$sel->wait_for_page_to_load_ok($lxtest->{timeout}); \ No newline at end of file -- 2.20.1