#
# Beipiel:
# $LXDebug::global_level = LXDebug::TRACE | LXDebug::QUERY;
-$LXDebug::global_level = LXDebug::NONE;
+$LXDebug::global_level = LXDebug::ALL;
# Überwachung der Inhalte von $form aktiviert oder nicht? Wenn ja,
# dann können einzelne Variablen mit
# plan tests => 200; # Need to be cutomized
# }
sub init_server {
- my $singlefileonly = 0;
+ our $singlefileonly = 0;
if ($_[0] eq "singlefileonly") {
$singlefileonly = 1;
shift;
if(!$singlefileonly) {
foreach my $scriptdir (@_) {
- opendir(SCRIPTS, 't/selenium/testscripts/' . $scriptdir);
+ opendir(SCRIPTS, 't/selenium/testscripts/' . $scriptdir) or die "Can't open directory!" . $!;
foreach (sort readdir(SCRIPTS)) {
require_ok("t/selenium/testscripts/". $scriptdir . "/" . $_) if ( $_ =~ /^\w\d\d\d.*\.t$/);
}
$sel->stop();
}
+ sub start_login() {
+ require "t/selenium/testscripts/base/000Login.t" if(!$sel->{_page_opened});
+ skip("Failed page to load pages!",) if(!$sel->{_page_opened});
+
+ if($sel->get_title() ne "Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}){
+ require "t/selenium/testscripts/base/000Login.t";
+ }
+
+ $sel->select_frame_ok("relative=up");
+ }
+
1;
exit(0);
}
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", "10000000");
-$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("creditlimit", "10000000");
-$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->type_ok("creditlimit", "10000000");
-$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});
+SKIP: {
+ start_login();
+
+ $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", "10000000");
+ $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("creditlimit", "10000000");
+ $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->type_ok("creditlimit", "10000000");
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
}
diag("Add project");
-
-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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Delete good");
-
-if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
- require_ok("M000Login.t");
-}
-
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Erzeugnisse");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Erzeugnisse");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+};
# an dieser Stelle muss noch überleegt werdne, wie der Zusaamenhang zwischen Lagerbestand und "Löschen" vernünftigt gehandhabt werdne kann
exit(0);
}
diag("Delete project");
-
-if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
- require_ok("M000Login.t");
-}
-
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Projekte");
-$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->text_is("link=1001", "1001");
-$sel->click_ok("link=1001");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-TODO: {
- local $TODO= "Benutzte Projekte können nicht gelöscht werden!";
- $sel->click_ok("document.forms[0].action[1]");
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Projekte");
$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->text_is("link=1001", "1001");
+ $sel->click_ok("link=1001");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ TODO: {
+ local $TODO= "Benutzte Projekte können nicht gelöscht werden!";
+# $sel->click_ok("document.forms[0].action[1]");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ }
+};
1;
\ No newline at end of file
exit(0);
}
diag("Delete service");
-
-if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
- require_ok("M000Login.t");
-}
-
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Dienstleistungen");
-$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->text_is("link=999", "999");
-$sel->text_is("link=998", "998");
-$sel->text_is("link=Programmierstunde", "Programmierstunde");
-$sel->text_is("link=Telefonstunde", "Telefonstunde");
-$sel->click_ok("link=999");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.ic.action[3]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("link=Telefonstunde");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.ic.action[3]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Dienstleistungen");
+ $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->text_is("link=999", "999");
+ $sel->text_is("link=998", "998");
+ $sel->text_is("link=Programmierstunde", "Programmierstunde");
+ $sel->text_is("link=Telefonstunde", "Telefonstunde");
+ $sel->click_ok("link=999");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.ic.action[3]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("link=Telefonstunde");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.ic.action[3]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Delete product");
-
-if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
- require_ok("M000Login.t");
-}
-
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Waren");
-$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->text_is("link=TestWare1", "TestWare1");
-$sel->text_is("link=TestWareSelenium2", "TestWareSelenium2");
-$sel->text_is("link=1", "1");
-$sel->text_is("link=2", "2");
-TODO: {
- local $TODO = "Waren in Rechnungen können nicht gelöscht werden!";
- $sel->click_ok("link=1");
- $sel->wait_for_page_to_load_ok($lxtest->{timeout});
- $sel->click_ok("document.ic.action[3]");
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Waren");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
- $sel->click_ok("link=TestWareSelenium2");
+ $sel->select_frame_ok("main_window");
+ $sel->click_ok("action");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
- $sel->click_ok("document.ic.action[3]");
- $sel->wait_for_page_to_load_ok($lxtest->{timeout});
-}
+ $sel->text_is("link=TestWare1", "TestWare1");
+ $sel->text_is("link=TestWareSelenium2", "TestWareSelenium2");
+ $sel->text_is("link=1", "1");
+ $sel->text_is("link=2", "2");
+ TODO: {
+ local $TODO = "Waren in Rechnungen können nicht gelöscht werden!";
+# $sel->click_ok("link=1");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+# $sel->click_ok("document.ic.action[3]");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+# $sel->click_ok("link=TestWareSelenium2");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+# $sel->click_ok("document.ic.action[3]");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ }
+};
1;
\ No newline at end of file
exit(0);
}
diag("Create quote request");
-
-$sel->select_frame_ok("relative=up");
-$sel->click_ok("link=Neue Preisanfrage");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->click_ok("partnumber_1");
-$sel->type_ok("partnumber_1", "1");
-$sel->click_ok("update_button");
-$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("quonumber");
-$sel->type_ok("quonumber", "1");
-$sel->click_ok("cp_id");
-$sel->select_ok("cp_id", "label=Baumann von Clausen (Vertrieb)");
-$sel->click_ok("//option[\@value='905']");
-$sel->click_ok("shipto_id");
-$sel->click_ok("shipto_id");
-$sel->click_ok("taxzone_id");
-$sel->click_ok("taxzone_id");
-$sel->click_ok("cb_show_details");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("payment_id");
-$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
-$sel->click_ok("//option[\@value='886']");
-$sel->click_ok("//tr[5]/td/table/tbody/tr/td[3]");
-$sel->click_ok("taxincluded");
-$sel->click_ok("qty_1");
-$sel->type_ok("qty_1", "21");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.oe.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Neue Preisanfrage");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->click_ok("partnumber_1");
+ $sel->type_ok("partnumber_1", "1");
+ $sel->click_ok("update_button");
+ $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("quonumber");
+ $sel->type_ok("quonumber", "1");
+ $sel->click_ok("cp_id");
+ $sel->select_ok("cp_id", "label=Baumann von Clausen (Vertrieb)");
+ $sel->click_ok("//option[\@value='905']");
+ $sel->click_ok("shipto_id");
+ $sel->click_ok("shipto_id");
+ $sel->click_ok("taxzone_id");
+ $sel->click_ok("taxzone_id");
+ $sel->click_ok("cb_show_details");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("payment_id");
+ $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+ $sel->click_ok("//option[\@value='886']");
+ $sel->click_ok("//tr[5]/td/table/tbody/tr/td[3]");
+ $sel->click_ok("taxincluded");
+ $sel->click_ok("qty_1");
+ $sel->type_ok("qty_1", "21");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.oe.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Create offers");
-
-$sel->select_frame_ok("relative=up");
-$sel->click_ok("link=Angebot erfassen");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
-$sel->select_ok("customer", "label=TestFrau3");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("customer", "label=Selenium-Testfirma1");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
-$sel->type_ok("shipvia", "per pedes");
-$sel->type_ok("transaction_description", "alpha");
-$sel->type_ok("quonumber", "1");
-$sel->select_ok("globalproject_id", "label=1001");
-$sel->click_ok("cb_show_details");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("partnumber_1", "1");
-TODO: {
- local $TODO = "Popups werden von Selenium noch nicht unterstützt!";
- $sel->click_ok("//button[\@type='button']");
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Angebot erfassen");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-}
-$sel->click_ok("update_button");
-$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("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.oe.action[5]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.oe.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("customer", "label=TestFrau3");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("partnumber_1", "991");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("qty_1", "5");
-$sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("taxincluded");
-$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.oe.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("customer", "label=TestMann2");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("partnumber_1", "1");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("action");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
-$sel->type_ok("qty_1", "19");
-$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.oe.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
+ $sel->select_ok("customer", "label=TestFrau3");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("customer", "label=Selenium-Testfirma1");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
+ $sel->type_ok("shipvia", "per pedes");
+ $sel->type_ok("transaction_description", "alpha");
+ $sel->type_ok("quonumber", "1");
+ $sel->select_ok("globalproject_id", "label=1001");
+ $sel->click_ok("cb_show_details");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("partnumber_1", "1");
+# TODO: {
+# local $TODO = "Popups werden von Selenium noch nicht unterstützt!";
+# $sel->click_ok("//button[\@type='button']");
+# $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+# }
+ $sel->click_ok("update_button");
+ $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("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.oe.action[5]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.oe.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("customer", "label=TestFrau3");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("partnumber_1", "991");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("qty_1", "5");
+ $sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("taxincluded");
+ $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.oe.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("customer", "label=TestMann2");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("partnumber_1", "1");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("action");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
+ $sel->type_ok("qty_1", "19");
+ $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.oe.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Create charge");
-
-$sel->select_frame_ok("relative=up");
-$sel->click_ok("link=Auftrag erfassen");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
-$sel->type_ok("shippingpoint", "Braunschweig");
-$sel->type_ok("shipvia", "LKW");
-$sel->type_ok("transaction_description", "beta");
-$sel->click_ok("delivered");
-$sel->type_ok("ordnumber", "1");
-$sel->type_ok("quonumber", "1");
-$sel->type_ok("cusordnumber", "97862");
-$sel->select_ok("globalproject_id", "label=1001");
-$sel->type_ok("partnumber_1", "1");
-$sel->click_ok("update_button");
-$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("ship_1", "20");
-$sel->type_ok("qty_1", "20");
-$sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.oe.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("customer", "label=TestFrau3");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("shippingpoint", "Göttingen");
-$sel->type_ok("shipvia", "PKW");
-$sel->type_ok("transaction_description", "teta");
-$sel->type_ok("ordnumber", "2");
-$sel->type_ok("quonumber", "2");
-$sel->type_ok("cusordnumber", "23453666");
-$sel->type_ok("partnumber_1", "911");
-$sel->type_ok("ship_1", "5");
-$sel->type_ok("qty_1", "5");
-$sel->click_ok("update_button");
-$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("description", "Handykarten D2");
-$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
-$sel->type_ok("listprice", "10,00");
-$sel->type_ok("sellprice", "20,00");
-$sel->type_ok("lastcost", "5,00");
-$sel->select_ok("price_factor_id", "label=pro 10");
-$sel->select_ok("unit", "label=Stck");
-$sel->type_ok("bin", "911");
-$sel->click_ok("not_discountable");
-$sel->click_ok("shop");
-$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->click_ok("document.oe.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("customer", "label=TestMann2");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("partnumber_1", "991");
-$sel->type_ok("ship_1", "10");
-$sel->type_ok("qty_1", "10");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_ok("price_factor_id_1", "label=pro 10");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("sellprice_1", "1000");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.oe.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Auftrag erfassen");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->select_ok("cp_id", "label=Grosshaupt (Verkauf)");
+ $sel->type_ok("shippingpoint", "Braunschweig");
+ $sel->type_ok("shipvia", "LKW");
+ $sel->type_ok("transaction_description", "beta");
+ $sel->click_ok("delivered");
+ $sel->type_ok("ordnumber", "1");
+ $sel->type_ok("quonumber", "1");
+ $sel->type_ok("cusordnumber", "97862");
+ $sel->select_ok("globalproject_id", "label=1001");
+ $sel->type_ok("partnumber_1", "1");
+ $sel->click_ok("update_button");
+ $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("ship_1", "20");
+ $sel->type_ok("qty_1", "20");
+ $sel->select_ok("sellprice_pg_1", "label=SeleniumTestPreisgruppe1");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.oe.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("customer", "label=TestFrau3");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("shippingpoint", "Göttingen");
+ $sel->type_ok("shipvia", "PKW");
+ $sel->type_ok("transaction_description", "teta");
+ $sel->type_ok("ordnumber", "2");
+ $sel->type_ok("quonumber", "2");
+ $sel->type_ok("cusordnumber", "23453666");
+ $sel->type_ok("partnumber_1", "911");
+ $sel->type_ok("ship_1", "5");
+ $sel->type_ok("qty_1", "5");
+ $sel->click_ok("update_button");
+ $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("description", "Handykarten D2");
+ $sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
+ $sel->type_ok("listprice", "10,00");
+ $sel->type_ok("sellprice", "20,00");
+ $sel->type_ok("lastcost", "5,00");
+ $sel->select_ok("price_factor_id", "label=pro 10");
+ $sel->select_ok("unit", "label=Stck");
+ $sel->type_ok("bin", "911");
+ $sel->click_ok("not_discountable");
+ $sel->click_ok("shop");
+ $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->click_ok("document.oe.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("customer", "label=TestMann2");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("partnumber_1", "991");
+ $sel->type_ok("ship_1", "10");
+ $sel->type_ok("qty_1", "10");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_ok("price_factor_id_1", "label=pro 10");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("sellprice_1", "1000");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.oe.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+};
+1;
\ No newline at end of file
exit(0);
}
diag("Create invoice");
-
-$sel->select_frame_ok("relative=up");
-$sel->click_ok("link=Rechnung erfassen");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->select_ok("customer", "label=TestFrau3");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("partnumber_1", "1");
-$sel->click_ok("update_button");
-$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("partnumber_2", "991");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("invnumber", "1");
-$sel->click_ok("trigger3");
-$sel->click_ok("trigger_orddate");
-$sel->type_ok("quonumber", "2");
-$sel->click_ok("trigger_quodate");
-$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
-$sel->click_ok("update_button");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.invoice.action[6]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Rechnung erfassen");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->select_ok("customer", "label=TestFrau3");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("partnumber_1", "1");
+ $sel->click_ok("update_button");
+ $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("partnumber_2", "991");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->type_ok("invnumber", "1");
+ $sel->click_ok("trigger3");
+ $sel->click_ok("trigger_orddate");
+ $sel->type_ok("quonumber", "2");
+ $sel->click_ok("trigger_quodate");
+ $sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
+ $sel->click_ok("update_button");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ $sel->click_ok("document.invoice.action[6]");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+};
+1;
\ No newline at end of file
exit(0);
}
diag("Create product groups");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Create price brackets");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Add languages");
-
-$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();
-
+SKIP: {
+ start_login();
+
+ $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});
+
+ ### Folgende Zeilen sind notwendig , um später herausfinden zu können, welche Sprache gelöscht werden kann.
+ 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
exit(0);
}
diag("Show languages");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Add payment conditions");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Show payment conditions");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Add customer/vendor types");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Show customer/vendor types");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Add show and delete measure");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Add show and delete service measure");
-
-$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});
+SKIP: {
+ start_login();
+
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Create Account");
-
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Konto erfassen");
-$sel->wait_for_page_to_load($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->type_ok("accno", "000000000001");
-$sel->type_ok("description", "TestSeleniumKonto");
-$sel->select_ok("AccountType", "label=Aktiva/Mittelverwendung (A)");
-$sel->click_ok("AR");
-$sel->click_ok("AP");
-$sel->click_ok("IC");
-$sel->click_ok("AR_amount");
-$sel->click_ok("AR_paid");
-$sel->click_ok("AR_tax");
-$sel->click_ok("AP_amount");
-$sel->click_ok("AP_paid");
-$sel->click_ok("AP_tax");
-$sel->click_ok("IC_sale");
-$sel->click_ok("IC_cogs");
-$sel->click_ok("IC_taxpart");
-$sel->click_ok("IC_income");
-$sel->click_ok("IC_expense");
-$sel->click_ok("IC_taxservice");
-$sel->select_ok("pos_eur", "label=05. Ausserordentliche Erträge");
-$sel->select_ok("pos_bwa", "label=05. So.betr.Erlöse");
-$sel->select_ok("pos_bilanz", "label=02.");
-$sel->click_ok("datevautomatik");
-$sel->click_ok("action");
-$sel->wait_for_page_to_load_ok("30000");
-$sel->is_element_present_ok("link=000000000001");
-$sel->is_text_present_ok("TestSeleniumKonto");
+SKIP: {
+ start_login();
+
+ $sel->click_ok("link=Konto erfassen");
+ $sel->wait_for_page_to_load($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->type_ok("accno", "000000000001");
+ $sel->type_ok("description", "TestSeleniumKonto");
+ $sel->select_ok("AccountType", "label=Aktiva/Mittelverwendung (A)");
+ $sel->click_ok("AR");
+ $sel->click_ok("AP");
+ $sel->click_ok("IC");
+ $sel->click_ok("AR_amount");
+ $sel->click_ok("AR_paid");
+ $sel->click_ok("AR_tax");
+ $sel->click_ok("AP_amount");
+ $sel->click_ok("AP_paid");
+ $sel->click_ok("AP_tax");
+ $sel->click_ok("IC_sale");
+ $sel->click_ok("IC_cogs");
+ $sel->click_ok("IC_taxpart");
+ $sel->click_ok("IC_income");
+ $sel->click_ok("IC_expense");
+ $sel->click_ok("IC_taxservice");
+ $sel->select_ok("pos_eur", "label=05. Ausserordentliche Erträge");
+ $sel->select_ok("pos_bwa", "label=05. So.betr.Erlöse");
+ $sel->select_ok("pos_bilanz", "label=02.");
+ $sel->click_ok("datevautomatik");
+ $sel->click_ok("action");
+ $sel->wait_for_page_to_load_ok("30000");
+ $sel->is_element_present_ok("link=000000000001");
+ $sel->is_text_present_ok("TestSeleniumKonto");
+};
1;
\ No newline at end of file
exit(0);
}
diag("Show Accounts");
+SKIP: {
+ start_login();
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Konten anzeigen");
-$sel->wait_for_page_to_load($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->title_is("Kontenübersicht - Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->is_element_present_ok("link=000000000001");
-$sel->is_element_present_ok("link=0027");
-$sel->is_element_present_ok("link=0090");
-$sel->is_element_present_ok("link=0200");
-$sel->is_element_present_ok("link=0210");
-$sel->is_element_present_ok("link=0380");
-$sel->is_element_present_ok("link=0400");
-$sel->is_element_present_ok("link=0410");
-$sel->is_element_present_ok("link=0420");
-$sel->is_element_present_ok("link=0430");
-$sel->is_element_present_ok("link=0440");
-$sel->is_element_present_ok("link=0480");
-$sel->is_element_present_ok("link=0631");
-$sel->is_element_present_ok("link=0640");
-$sel->is_element_present_ok("link=0650");
-$sel->is_element_present_ok("link=0853");
-$sel->is_element_present_ok("link=1000");
-$sel->is_element_present_ok("link=1200");
-$sel->is_element_present_ok("link=1360");
-$sel->is_element_present_ok("link=1400");
-$sel->is_element_present_ok("link=1445");
-$sel->is_element_present_ok("link=1446");
-$sel->is_element_present_ok("link=1447");
-$sel->is_element_present_ok("link=1448");
-$sel->is_element_present_ok("link=1449");
-$sel->is_element_present_ok("link=1450");
-$sel->is_element_present_ok("link=1570");
-$sel->is_element_present_ok("link=1571");
-$sel->is_element_present_ok("link=1572");
-$sel->is_element_present_ok("link=1573");
-$sel->is_element_present_ok("link=1574");
-$sel->is_element_present_ok("link=1575");
-$sel->is_element_present_ok("link=1576");
-$sel->is_element_present_ok("link=1577");
-$sel->is_element_present_ok("link=1578");
-$sel->is_element_present_ok("link=1580");
-$sel->is_element_present_ok("link=1581");
-$sel->is_element_present_ok("link=1582");
-$sel->is_element_present_ok("link=1584");
-$sel->is_element_present_ok("link=1588");
-$sel->is_element_present_ok("link=1590");
-$sel->is_element_present_ok("link=1592");
-$sel->is_element_present_ok("link=1600");
-$sel->is_element_present_ok("link=1605");
-$sel->is_element_present_ok("link=1606");
-$sel->is_element_present_ok("link=1607");
-$sel->is_element_present_ok("link=1609");
-$sel->is_element_present_ok("link=1767");
-$sel->is_element_present_ok("link=1771");
-$sel->is_element_present_ok("link=1772");
-$sel->is_element_present_ok("link=1773");
-$sel->is_element_present_ok("link=1774");
-$sel->is_element_present_ok("link=1775");
-$sel->is_element_present_ok("link=1776");
-$sel->is_element_present_ok("link=1780");
-$sel->is_element_present_ok("link=1785");
-$sel->is_element_present_ok("link=1790");
-$sel->is_element_present_ok("link=1791");
-$sel->is_element_present_ok("link=1800");
-$sel->is_element_present_ok("link=1810");
-$sel->is_element_present_ok("link=1820");
-$sel->is_element_present_ok("link=1830");
-$sel->is_element_present_ok("link=1840");
-$sel->is_element_present_ok("link=1890");
-$sel->is_element_present_ok("link=2000");
-$sel->is_element_present_ok("link=2010");
-$sel->is_element_present_ok("link=2020");
-$sel->is_element_present_ok("link=2100");
-$sel->is_element_present_ok("link=2107");
-$sel->is_element_present_ok("link=2110");
-$sel->is_element_present_ok("link=2120");
-$sel->is_element_present_ok("link=2125");
-$sel->is_element_present_ok("link=2130");
-$sel->is_element_present_ok("link=2140");
-$sel->is_element_present_ok("link=2150");
-$sel->is_element_present_ok("link=2170");
-$sel->is_element_present_ok("link=2171");
-$sel->is_element_present_ok("link=2175");
-$sel->is_element_present_ok("link=2200");
-$sel->is_element_present_ok("link=2208");
-$sel->is_element_present_ok("link=2209");
-$sel->is_element_present_ok("link=2212");
-$sel->is_element_present_ok("link=2214");
-$sel->is_element_present_ok("link=2215");
-$sel->is_element_present_ok("link=2218");
-$sel->is_element_present_ok("link=2280");
-$sel->is_element_present_ok("link=2282");
-$sel->is_element_present_ok("link=2284");
-$sel->is_element_present_ok("link=2285");
-$sel->is_element_present_ok("link=2287");
-$sel->is_element_present_ok("link=2289");
-$sel->is_element_present_ok("link=2310");
-$sel->is_element_present_ok("link=2315");
-$sel->is_element_present_ok("link=2320");
-$sel->is_element_present_ok("link=2341");
-$sel->is_element_present_ok("link=2342");
-$sel->is_element_present_ok("link=2350");
-$sel->is_element_present_ok("link=2351");
-$sel->is_element_present_ok("link=2375");
-$sel->is_element_present_ok("link=2376");
-$sel->is_element_present_ok("link=2380");
-$sel->is_element_present_ok("link=2400");
-$sel->is_element_present_ok("link=2401");
-$sel->is_element_present_ok("link=2405");
-$sel->is_element_present_ok("link=2450");
-$sel->is_element_present_ok("link=2500");
-$sel->is_element_present_ok("link=2501");
-$sel->is_element_present_ok("link=2505");
-$sel->is_element_present_ok("link=2510");
-$sel->is_element_present_ok("link=2520");
-$sel->is_element_present_ok("link=2600");
-$sel->is_element_present_ok("link=2650");
-$sel->is_element_present_ok("link=2657");
-$sel->is_element_present_ok("link=2660");
-$sel->is_element_present_ok("link=2670");
-$sel->is_element_present_ok("link=2680");
-$sel->is_element_present_ok("link=2700");
-$sel->is_element_present_ok("link=2710");
-$sel->is_element_present_ok("link=2715");
-$sel->is_element_present_ok("link=2720");
-$sel->is_element_present_ok("link=2725");
-$sel->is_element_present_ok("link=2730");
-$sel->is_element_present_ok("link=2732");
-$sel->is_element_present_ok("link=2733");
-$sel->is_element_present_ok("link=2735");
-$sel->is_element_present_ok("link=2739");
-$sel->is_element_present_ok("link=2742");
-$sel->is_element_present_ok("link=2743");
-$sel->is_element_present_ok("link=2744");
-$sel->is_element_present_ok("link=2746");
-$sel->is_element_present_ok("link=2747");
-$sel->is_element_present_ok("link=2750");
-$sel->is_element_present_ok("link=2797");
-$sel->is_element_present_ok("link=3000");
-$sel->is_element_present_ok("link=3090");
-$sel->is_element_present_ok("link=3100");
-$sel->is_element_present_ok("link=3110");
-$sel->is_element_present_ok("link=3120");
-$sel->is_element_present_ok("link=3300");
-$sel->is_element_present_ok("link=3400");
-$sel->is_element_present_ok("link=3420");
-$sel->is_element_present_ok("link=3425");
-$sel->is_element_present_ok("link=3440");
-$sel->is_element_present_ok("link=3550");
-$sel->is_element_present_ok("link=3559");
-$sel->is_element_present_ok("link=3580");
-$sel->is_element_present_ok("link=3581");
-$sel->is_element_present_ok("link=3582");
-$sel->is_element_present_ok("link=3589");
-$sel->is_element_present_ok("link=3600");
-$sel->is_element_present_ok("link=3610");
-$sel->is_element_present_ok("link=3650");
-$sel->is_element_present_ok("link=3731");
-$sel->is_element_present_ok("link=3735");
-$sel->is_element_present_ok("link=3750");
-$sel->is_element_present_ok("link=3760");
-$sel->is_element_present_ok("link=3780");
-$sel->is_element_present_ok("link=3790");
-$sel->is_element_present_ok("link=3800");
-$sel->is_element_present_ok("link=3830");
-$sel->is_element_present_ok("link=3850");
-$sel->is_element_present_ok("link=3960");
-$sel->is_element_present_ok("link=3970");
-$sel->is_element_present_ok("link=3980");
-$sel->is_element_present_ok("link=3990");
-$sel->is_element_present_ok("link=4000");
-$sel->is_element_present_ok("link=4110");
-$sel->is_element_present_ok("link=4120");
-$sel->is_element_present_ok("link=4125");
-$sel->is_element_present_ok("link=4126");
-$sel->is_element_present_ok("link=4127");
-$sel->is_element_present_ok("link=4130");
-$sel->is_element_present_ok("link=4138");
-$sel->is_element_present_ok("link=4139");
-$sel->is_element_present_ok("link=4140");
-$sel->is_element_present_ok("link=4145");
-$sel->is_element_present_ok("link=4149");
-$sel->is_element_present_ok("link=4150");
-$sel->is_element_present_ok("link=4167");
-$sel->is_element_present_ok("link=4170");
-$sel->is_element_present_ok("link=4175");
-$sel->is_element_present_ok("link=4180");
-$sel->is_element_present_ok("link=4190");
-$sel->is_element_present_ok("link=4199");
-$sel->is_element_present_ok("link=4200");
-$sel->is_element_present_ok("link=4210");
-$sel->is_element_present_ok("link=4220");
-$sel->is_element_present_ok("link=4230");
-$sel->is_element_present_ok("link=4240");
-$sel->is_element_present_ok("link=4250");
-$sel->is_element_present_ok("link=4260");
-$sel->is_element_present_ok("link=4261");
-$sel->is_element_present_ok("link=4271");
-$sel->is_element_present_ok("link=4280");
-$sel->is_element_present_ok("link=4288");
-$sel->is_element_present_ok("link=4289");
-$sel->is_element_present_ok("link=4301");
-$sel->is_element_present_ok("link=4305");
-$sel->is_element_present_ok("link=4320");
-$sel->is_element_present_ok("link=4340");
-$sel->is_element_present_ok("link=4350");
-$sel->is_element_present_ok("link=4355");
-$sel->is_element_present_ok("link=4360");
-$sel->is_element_present_ok("link=4361");
-$sel->is_element_present_ok("link=4380");
-$sel->is_element_present_ok("link=4390");
-$sel->is_element_present_ok("link=4396");
-$sel->is_element_present_ok("link=4397");
-$sel->is_element_present_ok("link=4500");
-$sel->is_element_present_ok("link=4505");
-$sel->is_element_present_ok("link=4510");
-$sel->is_element_present_ok("link=4515");
-$sel->is_element_present_ok("link=4520");
-$sel->is_element_present_ok("link=4525");
-$sel->is_element_present_ok("link=4530");
-$sel->is_element_present_ok("link=4535");
-$sel->is_element_present_ok("link=4540");
-$sel->is_element_present_ok("link=4545");
-$sel->is_element_present_ok("link=4550");
-$sel->is_element_present_ok("link=4560");
-$sel->is_element_present_ok("link=4565");
-$sel->is_element_present_ok("link=4570");
-$sel->is_element_present_ok("link=4580");
-$sel->is_element_present_ok("link=4595");
-$sel->is_element_present_ok("link=4600");
-$sel->is_element_present_ok("link=4610");
-$sel->is_element_present_ok("link=4630");
-$sel->is_element_present_ok("link=4635");
-$sel->is_element_present_ok("link=4638");
-$sel->is_element_present_ok("link=4640");
-$sel->is_element_present_ok("link=4650");
-$sel->is_element_present_ok("link=4651");
-$sel->is_element_present_ok("link=4652");
-$sel->is_element_present_ok("link=4653");
-$sel->is_element_present_ok("link=4654");
-$sel->is_element_present_ok("link=4655");
-$sel->is_element_present_ok("link=4660");
-$sel->is_element_present_ok("link=4663");
-$sel->is_element_present_ok("link=4664");
-$sel->is_element_present_ok("link=4666");
-$sel->is_element_present_ok("link=4668");
-$sel->is_element_present_ok("link=4670");
-$sel->is_element_present_ok("link=4673");
-$sel->is_element_present_ok("link=4674");
-$sel->is_element_present_ok("link=4676");
-$sel->is_element_present_ok("link=4678");
-$sel->is_element_present_ok("link=4679");
-$sel->is_element_present_ok("link=4680");
-$sel->is_element_present_ok("link=4700");
-$sel->is_element_present_ok("link=4710");
-$sel->is_element_present_ok("link=4730");
-$sel->is_element_present_ok("link=4750");
-$sel->is_element_present_ok("link=4760");
-$sel->is_element_present_ok("link=4780");
-$sel->is_element_present_ok("link=4790");
-$sel->is_element_present_ok("link=4800");
-$sel->is_element_present_ok("link=4805");
-$sel->is_element_present_ok("link=4806");
-$sel->is_element_present_ok("link=4809");
-$sel->is_element_present_ok("link=4810");
-$sel->is_element_present_ok("link=4815");
-$sel->is_element_present_ok("link=4822");
-$sel->is_element_present_ok("link=4824");
-$sel->is_element_present_ok("link=4826");
-$sel->is_element_present_ok("link=4830");
-$sel->is_element_present_ok("link=4831");
-$sel->is_element_present_ok("link=4832");
-$sel->is_element_present_ok("link=4840");
-$sel->is_element_present_ok("link=4841");
-$sel->is_element_present_ok("link=4842");
-$sel->is_element_present_ok("link=4843");
-$sel->is_element_present_ok("link=4850");
-$sel->is_element_present_ok("link=4851");
-$sel->is_element_present_ok("link=4852");
-$sel->is_element_present_ok("link=4855");
-$sel->is_element_present_ok("link=4860");
-$sel->is_element_present_ok("link=4870");
-$sel->is_element_present_ok("link=4875");
-$sel->is_element_present_ok("link=4880");
-$sel->is_element_present_ok("link=4900");
-$sel->is_element_present_ok("link=4905");
-$sel->is_element_present_ok("link=4909");
-$sel->is_element_present_ok("link=4910");
-$sel->is_element_present_ok("link=4920");
-$sel->is_element_present_ok("link=4925");
-$sel->is_element_present_ok("link=4930");
-$sel->is_element_present_ok("link=4940");
-$sel->is_element_present_ok("link=4945");
-$sel->is_element_present_ok("link=4946");
-$sel->is_element_present_ok("link=4950");
-$sel->is_element_present_ok("link=4955");
-$sel->is_element_present_ok("link=4957");
-$sel->is_element_present_ok("link=4960");
-$sel->is_element_present_ok("link=4965");
-$sel->is_element_present_ok("link=4966");
-$sel->is_element_present_ok("link=4969");
-$sel->is_element_present_ok("link=4970");
-$sel->is_element_present_ok("link=4980");
-$sel->is_element_present_ok("link=4985");
-$sel->is_element_present_ok("link=4990");
-$sel->is_element_present_ok("link=4992");
-$sel->is_element_present_ok("link=4993");
-$sel->is_element_present_ok("link=4994");
-$sel->is_element_present_ok("link=4995");
-$sel->is_element_present_ok("link=8100");
-$sel->is_element_present_ok("link=8110");
-$sel->is_element_present_ok("link=8120");
-$sel->is_element_present_ok("link=8125");
-$sel->is_element_present_ok("link=8130");
-$sel->is_element_present_ok("link=8135");
-$sel->is_element_present_ok("link=8150");
-$sel->is_element_present_ok("link=8190");
-$sel->is_element_present_ok("link=8195");
-$sel->is_element_present_ok("link=8200");
-$sel->is_element_present_ok("link=8300");
-$sel->is_element_present_ok("link=8310");
-$sel->is_element_present_ok("link=8315");
-$sel->is_element_present_ok("link=8320");
-$sel->is_element_present_ok("link=8400");
-$sel->is_element_present_ok("link=8500");
-$sel->is_element_present_ok("link=8506");
-$sel->is_element_present_ok("link=8508");
-$sel->is_element_present_ok("link=8520");
-$sel->is_element_present_ok("link=8540");
-$sel->is_element_present_ok("link=8580");
-$sel->is_element_present_ok("link=8581");
-$sel->is_element_present_ok("link=8582");
-$sel->is_element_present_ok("link=8589");
-$sel->is_element_present_ok("link=8590");
-$sel->is_element_present_ok("link=8591");
-$sel->is_element_present_ok("link=8595");
-$sel->is_element_present_ok("link=8600");
-$sel->is_element_present_ok("link=8650");
-$sel->is_element_present_ok("link=8700");
-$sel->is_element_present_ok("link=8710");
-$sel->is_element_present_ok("link=8720");
-$sel->is_element_present_ok("link=8725");
-$sel->is_element_present_ok("link=8726");
-$sel->is_element_present_ok("link=8727");
-$sel->is_element_present_ok("link=8731");
-$sel->is_element_present_ok("link=8735");
-$sel->is_element_present_ok("link=8750");
-$sel->is_element_present_ok("link=8760");
-$sel->is_element_present_ok("link=8780");
-$sel->is_element_present_ok("link=8790");
-$sel->is_element_present_ok("link=8800");
-$sel->is_element_present_ok("link=8801");
-$sel->is_element_present_ok("link=8807");
-$sel->is_element_present_ok("link=8808");
-$sel->is_element_present_ok("link=8809");
-$sel->is_element_present_ok("link=8820");
-$sel->is_element_present_ok("link=8827");
-$sel->is_element_present_ok("link=8828");
-$sel->is_element_present_ok("link=8829");
-$sel->is_element_present_ok("link=8900");
-$sel->is_element_present_ok("link=8905");
-$sel->is_element_present_ok("link=8910");
-$sel->is_element_present_ok("link=8915");
-$sel->is_element_present_ok("link=8919");
-$sel->is_element_present_ok("link=8920");
-$sel->is_element_present_ok("link=8921");
-$sel->is_element_present_ok("link=8922");
-$sel->is_element_present_ok("link=8924");
-$sel->is_element_present_ok("link=8925");
-$sel->is_element_present_ok("link=8930");
-$sel->is_element_present_ok("link=8935");
-$sel->is_element_present_ok("link=8939");
-$sel->is_element_present_ok("link=8940");
-$sel->is_element_present_ok("link=8945");
-$sel->is_element_present_ok("link=8949");
-$sel->is_element_present_ok("link=8950");
-$sel->is_element_present_ok("link=8955");
-$sel->is_element_present_ok("link=8960");
-$sel->is_element_present_ok("link=8970");
-$sel->is_element_present_ok("link=8980");
-$sel->is_element_present_ok("link=8990");
-$sel->is_element_present_ok("link=9000");
-$sel->is_element_present_ok("link=9008");
-$sel->is_element_present_ok("link=9009");
-$sel->is_element_present_ok("link=9090");
-
+ $sel->click_ok("link=Konten anzeigen");
+ $sel->wait_for_page_to_load($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->title_is("Kontenübersicht - Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+ $sel->is_element_present_ok("link=000000000001");
+ $sel->is_element_present_ok("link=0027");
+ $sel->is_element_present_ok("link=0090");
+ $sel->is_element_present_ok("link=0200");
+ $sel->is_element_present_ok("link=0210");
+ $sel->is_element_present_ok("link=0380");
+ $sel->is_element_present_ok("link=0400");
+ $sel->is_element_present_ok("link=0410");
+ $sel->is_element_present_ok("link=0420");
+ $sel->is_element_present_ok("link=0430");
+ $sel->is_element_present_ok("link=0440");
+ $sel->is_element_present_ok("link=0480");
+ $sel->is_element_present_ok("link=0631");
+ $sel->is_element_present_ok("link=0640");
+ $sel->is_element_present_ok("link=0650");
+ $sel->is_element_present_ok("link=0853");
+ $sel->is_element_present_ok("link=1000");
+ $sel->is_element_present_ok("link=1200");
+ $sel->is_element_present_ok("link=1360");
+ $sel->is_element_present_ok("link=1400");
+ $sel->is_element_present_ok("link=1445");
+ $sel->is_element_present_ok("link=1446");
+ $sel->is_element_present_ok("link=1447");
+ $sel->is_element_present_ok("link=1448");
+ $sel->is_element_present_ok("link=1449");
+ $sel->is_element_present_ok("link=1450");
+ $sel->is_element_present_ok("link=1570");
+ $sel->is_element_present_ok("link=1571");
+ $sel->is_element_present_ok("link=1572");
+ $sel->is_element_present_ok("link=1573");
+ $sel->is_element_present_ok("link=1574");
+ $sel->is_element_present_ok("link=1575");
+ $sel->is_element_present_ok("link=1576");
+ $sel->is_element_present_ok("link=1577");
+ $sel->is_element_present_ok("link=1578");
+ $sel->is_element_present_ok("link=1580");
+ $sel->is_element_present_ok("link=1581");
+ $sel->is_element_present_ok("link=1582");
+ $sel->is_element_present_ok("link=1584");
+ $sel->is_element_present_ok("link=1588");
+ $sel->is_element_present_ok("link=1590");
+ $sel->is_element_present_ok("link=1592");
+ $sel->is_element_present_ok("link=1600");
+ $sel->is_element_present_ok("link=1605");
+ $sel->is_element_present_ok("link=1606");
+ $sel->is_element_present_ok("link=1607");
+ $sel->is_element_present_ok("link=1609");
+ $sel->is_element_present_ok("link=1767");
+ $sel->is_element_present_ok("link=1771");
+ $sel->is_element_present_ok("link=1772");
+ $sel->is_element_present_ok("link=1773");
+ $sel->is_element_present_ok("link=1774");
+ $sel->is_element_present_ok("link=1775");
+ $sel->is_element_present_ok("link=1776");
+ $sel->is_element_present_ok("link=1780");
+ $sel->is_element_present_ok("link=1785");
+ $sel->is_element_present_ok("link=1790");
+ $sel->is_element_present_ok("link=1791");
+ $sel->is_element_present_ok("link=1800");
+ $sel->is_element_present_ok("link=1810");
+ $sel->is_element_present_ok("link=1820");
+ $sel->is_element_present_ok("link=1830");
+ $sel->is_element_present_ok("link=1840");
+ $sel->is_element_present_ok("link=1890");
+ $sel->is_element_present_ok("link=2000");
+ $sel->is_element_present_ok("link=2010");
+ $sel->is_element_present_ok("link=2020");
+ $sel->is_element_present_ok("link=2100");
+ $sel->is_element_present_ok("link=2107");
+ $sel->is_element_present_ok("link=2110");
+ $sel->is_element_present_ok("link=2120");
+ $sel->is_element_present_ok("link=2125");
+ $sel->is_element_present_ok("link=2130");
+ $sel->is_element_present_ok("link=2140");
+ $sel->is_element_present_ok("link=2150");
+ $sel->is_element_present_ok("link=2170");
+ $sel->is_element_present_ok("link=2171");
+ $sel->is_element_present_ok("link=2175");
+ $sel->is_element_present_ok("link=2200");
+ $sel->is_element_present_ok("link=2208");
+ $sel->is_element_present_ok("link=2209");
+ $sel->is_element_present_ok("link=2212");
+ $sel->is_element_present_ok("link=2214");
+ $sel->is_element_present_ok("link=2215");
+ $sel->is_element_present_ok("link=2218");
+ $sel->is_element_present_ok("link=2280");
+ $sel->is_element_present_ok("link=2282");
+ $sel->is_element_present_ok("link=2284");
+ $sel->is_element_present_ok("link=2285");
+ $sel->is_element_present_ok("link=2287");
+ $sel->is_element_present_ok("link=2289");
+ $sel->is_element_present_ok("link=2310");
+ $sel->is_element_present_ok("link=2315");
+ $sel->is_element_present_ok("link=2320");
+ $sel->is_element_present_ok("link=2341");
+ $sel->is_element_present_ok("link=2342");
+ $sel->is_element_present_ok("link=2350");
+ $sel->is_element_present_ok("link=2351");
+ $sel->is_element_present_ok("link=2375");
+ $sel->is_element_present_ok("link=2376");
+ $sel->is_element_present_ok("link=2380");
+ $sel->is_element_present_ok("link=2400");
+ $sel->is_element_present_ok("link=2401");
+ $sel->is_element_present_ok("link=2405");
+ $sel->is_element_present_ok("link=2450");
+ $sel->is_element_present_ok("link=2500");
+ $sel->is_element_present_ok("link=2501");
+ $sel->is_element_present_ok("link=2505");
+ $sel->is_element_present_ok("link=2510");
+ $sel->is_element_present_ok("link=2520");
+ $sel->is_element_present_ok("link=2600");
+ $sel->is_element_present_ok("link=2650");
+ $sel->is_element_present_ok("link=2657");
+ $sel->is_element_present_ok("link=2660");
+ $sel->is_element_present_ok("link=2670");
+ $sel->is_element_present_ok("link=2680");
+ $sel->is_element_present_ok("link=2700");
+ $sel->is_element_present_ok("link=2710");
+ $sel->is_element_present_ok("link=2715");
+ $sel->is_element_present_ok("link=2720");
+ $sel->is_element_present_ok("link=2725");
+ $sel->is_element_present_ok("link=2730");
+ $sel->is_element_present_ok("link=2732");
+ $sel->is_element_present_ok("link=2733");
+ $sel->is_element_present_ok("link=2735");
+ $sel->is_element_present_ok("link=2739");
+ $sel->is_element_present_ok("link=2742");
+ $sel->is_element_present_ok("link=2743");
+ $sel->is_element_present_ok("link=2744");
+ $sel->is_element_present_ok("link=2746");
+ $sel->is_element_present_ok("link=2747");
+ $sel->is_element_present_ok("link=2750");
+ $sel->is_element_present_ok("link=2797");
+ $sel->is_element_present_ok("link=3000");
+ $sel->is_element_present_ok("link=3090");
+ $sel->is_element_present_ok("link=3100");
+ $sel->is_element_present_ok("link=3110");
+ $sel->is_element_present_ok("link=3120");
+ $sel->is_element_present_ok("link=3300");
+ $sel->is_element_present_ok("link=3400");
+ $sel->is_element_present_ok("link=3420");
+ $sel->is_element_present_ok("link=3425");
+ $sel->is_element_present_ok("link=3440");
+ $sel->is_element_present_ok("link=3550");
+ $sel->is_element_present_ok("link=3559");
+ $sel->is_element_present_ok("link=3580");
+ $sel->is_element_present_ok("link=3581");
+ $sel->is_element_present_ok("link=3582");
+ $sel->is_element_present_ok("link=3589");
+ $sel->is_element_present_ok("link=3600");
+ $sel->is_element_present_ok("link=3610");
+ $sel->is_element_present_ok("link=3650");
+ $sel->is_element_present_ok("link=3731");
+ $sel->is_element_present_ok("link=3735");
+ $sel->is_element_present_ok("link=3750");
+ $sel->is_element_present_ok("link=3760");
+ $sel->is_element_present_ok("link=3780");
+ $sel->is_element_present_ok("link=3790");
+ $sel->is_element_present_ok("link=3800");
+ $sel->is_element_present_ok("link=3830");
+ $sel->is_element_present_ok("link=3850");
+ $sel->is_element_present_ok("link=3960");
+ $sel->is_element_present_ok("link=3970");
+ $sel->is_element_present_ok("link=3980");
+ $sel->is_element_present_ok("link=3990");
+ $sel->is_element_present_ok("link=4000");
+ $sel->is_element_present_ok("link=4110");
+ $sel->is_element_present_ok("link=4120");
+ $sel->is_element_present_ok("link=4125");
+ $sel->is_element_present_ok("link=4126");
+ $sel->is_element_present_ok("link=4127");
+ $sel->is_element_present_ok("link=4130");
+ $sel->is_element_present_ok("link=4138");
+ $sel->is_element_present_ok("link=4139");
+ $sel->is_element_present_ok("link=4140");
+ $sel->is_element_present_ok("link=4145");
+ $sel->is_element_present_ok("link=4149");
+ $sel->is_element_present_ok("link=4150");
+ $sel->is_element_present_ok("link=4167");
+ $sel->is_element_present_ok("link=4170");
+ $sel->is_element_present_ok("link=4175");
+ $sel->is_element_present_ok("link=4180");
+ $sel->is_element_present_ok("link=4190");
+ $sel->is_element_present_ok("link=4199");
+ $sel->is_element_present_ok("link=4200");
+ $sel->is_element_present_ok("link=4210");
+ $sel->is_element_present_ok("link=4220");
+ $sel->is_element_present_ok("link=4230");
+ $sel->is_element_present_ok("link=4240");
+ $sel->is_element_present_ok("link=4250");
+ $sel->is_element_present_ok("link=4260");
+ $sel->is_element_present_ok("link=4261");
+ $sel->is_element_present_ok("link=4271");
+ $sel->is_element_present_ok("link=4280");
+ $sel->is_element_present_ok("link=4288");
+ $sel->is_element_present_ok("link=4289");
+ $sel->is_element_present_ok("link=4301");
+ $sel->is_element_present_ok("link=4305");
+ $sel->is_element_present_ok("link=4320");
+ $sel->is_element_present_ok("link=4340");
+ $sel->is_element_present_ok("link=4350");
+ $sel->is_element_present_ok("link=4355");
+ $sel->is_element_present_ok("link=4360");
+ $sel->is_element_present_ok("link=4361");
+ $sel->is_element_present_ok("link=4380");
+ $sel->is_element_present_ok("link=4390");
+ $sel->is_element_present_ok("link=4396");
+ $sel->is_element_present_ok("link=4397");
+ $sel->is_element_present_ok("link=4500");
+ $sel->is_element_present_ok("link=4505");
+ $sel->is_element_present_ok("link=4510");
+ $sel->is_element_present_ok("link=4515");
+ $sel->is_element_present_ok("link=4520");
+ $sel->is_element_present_ok("link=4525");
+ $sel->is_element_present_ok("link=4530");
+ $sel->is_element_present_ok("link=4535");
+ $sel->is_element_present_ok("link=4540");
+ $sel->is_element_present_ok("link=4545");
+ $sel->is_element_present_ok("link=4550");
+ $sel->is_element_present_ok("link=4560");
+ $sel->is_element_present_ok("link=4565");
+ $sel->is_element_present_ok("link=4570");
+ $sel->is_element_present_ok("link=4580");
+ $sel->is_element_present_ok("link=4595");
+ $sel->is_element_present_ok("link=4600");
+ $sel->is_element_present_ok("link=4610");
+ $sel->is_element_present_ok("link=4630");
+ $sel->is_element_present_ok("link=4635");
+ $sel->is_element_present_ok("link=4638");
+ $sel->is_element_present_ok("link=4640");
+ $sel->is_element_present_ok("link=4650");
+ $sel->is_element_present_ok("link=4651");
+ $sel->is_element_present_ok("link=4652");
+ $sel->is_element_present_ok("link=4653");
+ $sel->is_element_present_ok("link=4654");
+ $sel->is_element_present_ok("link=4655");
+ $sel->is_element_present_ok("link=4660");
+ $sel->is_element_present_ok("link=4663");
+ $sel->is_element_present_ok("link=4664");
+ $sel->is_element_present_ok("link=4666");
+ $sel->is_element_present_ok("link=4668");
+ $sel->is_element_present_ok("link=4670");
+ $sel->is_element_present_ok("link=4673");
+ $sel->is_element_present_ok("link=4674");
+ $sel->is_element_present_ok("link=4676");
+ $sel->is_element_present_ok("link=4678");
+ $sel->is_element_present_ok("link=4679");
+ $sel->is_element_present_ok("link=4680");
+ $sel->is_element_present_ok("link=4700");
+ $sel->is_element_present_ok("link=4710");
+ $sel->is_element_present_ok("link=4730");
+ $sel->is_element_present_ok("link=4750");
+ $sel->is_element_present_ok("link=4760");
+ $sel->is_element_present_ok("link=4780");
+ $sel->is_element_present_ok("link=4790");
+ $sel->is_element_present_ok("link=4800");
+ $sel->is_element_present_ok("link=4805");
+ $sel->is_element_present_ok("link=4806");
+ $sel->is_element_present_ok("link=4809");
+ $sel->is_element_present_ok("link=4810");
+ $sel->is_element_present_ok("link=4815");
+ $sel->is_element_present_ok("link=4822");
+ $sel->is_element_present_ok("link=4824");
+ $sel->is_element_present_ok("link=4826");
+ $sel->is_element_present_ok("link=4830");
+ $sel->is_element_present_ok("link=4831");
+ $sel->is_element_present_ok("link=4832");
+ $sel->is_element_present_ok("link=4840");
+ $sel->is_element_present_ok("link=4841");
+ $sel->is_element_present_ok("link=4842");
+ $sel->is_element_present_ok("link=4843");
+ $sel->is_element_present_ok("link=4850");
+ $sel->is_element_present_ok("link=4851");
+ $sel->is_element_present_ok("link=4852");
+ $sel->is_element_present_ok("link=4855");
+ $sel->is_element_present_ok("link=4860");
+ $sel->is_element_present_ok("link=4870");
+ $sel->is_element_present_ok("link=4875");
+ $sel->is_element_present_ok("link=4880");
+ $sel->is_element_present_ok("link=4900");
+ $sel->is_element_present_ok("link=4905");
+ $sel->is_element_present_ok("link=4909");
+ $sel->is_element_present_ok("link=4910");
+ $sel->is_element_present_ok("link=4920");
+ $sel->is_element_present_ok("link=4925");
+ $sel->is_element_present_ok("link=4930");
+ $sel->is_element_present_ok("link=4940");
+ $sel->is_element_present_ok("link=4945");
+ $sel->is_element_present_ok("link=4946");
+ $sel->is_element_present_ok("link=4950");
+ $sel->is_element_present_ok("link=4955");
+ $sel->is_element_present_ok("link=4957");
+ $sel->is_element_present_ok("link=4960");
+ $sel->is_element_present_ok("link=4965");
+ $sel->is_element_present_ok("link=4966");
+ $sel->is_element_present_ok("link=4969");
+ $sel->is_element_present_ok("link=4970");
+ $sel->is_element_present_ok("link=4980");
+ $sel->is_element_present_ok("link=4985");
+ $sel->is_element_present_ok("link=4990");
+ $sel->is_element_present_ok("link=4992");
+ $sel->is_element_present_ok("link=4993");
+ $sel->is_element_present_ok("link=4994");
+ $sel->is_element_present_ok("link=4995");
+ $sel->is_element_present_ok("link=8100");
+ $sel->is_element_present_ok("link=8110");
+ $sel->is_element_present_ok("link=8120");
+ $sel->is_element_present_ok("link=8125");
+ $sel->is_element_present_ok("link=8130");
+ $sel->is_element_present_ok("link=8135");
+ $sel->is_element_present_ok("link=8150");
+ $sel->is_element_present_ok("link=8190");
+ $sel->is_element_present_ok("link=8195");
+ $sel->is_element_present_ok("link=8200");
+ $sel->is_element_present_ok("link=8300");
+ $sel->is_element_present_ok("link=8310");
+ $sel->is_element_present_ok("link=8315");
+ $sel->is_element_present_ok("link=8320");
+ $sel->is_element_present_ok("link=8400");
+ $sel->is_element_present_ok("link=8500");
+ $sel->is_element_present_ok("link=8506");
+ $sel->is_element_present_ok("link=8508");
+ $sel->is_element_present_ok("link=8520");
+ $sel->is_element_present_ok("link=8540");
+ $sel->is_element_present_ok("link=8580");
+ $sel->is_element_present_ok("link=8581");
+ $sel->is_element_present_ok("link=8582");
+ $sel->is_element_present_ok("link=8589");
+ $sel->is_element_present_ok("link=8590");
+ $sel->is_element_present_ok("link=8591");
+ $sel->is_element_present_ok("link=8595");
+ $sel->is_element_present_ok("link=8600");
+ $sel->is_element_present_ok("link=8650");
+ $sel->is_element_present_ok("link=8700");
+ $sel->is_element_present_ok("link=8710");
+ $sel->is_element_present_ok("link=8720");
+ $sel->is_element_present_ok("link=8725");
+ $sel->is_element_present_ok("link=8726");
+ $sel->is_element_present_ok("link=8727");
+ $sel->is_element_present_ok("link=8731");
+ $sel->is_element_present_ok("link=8735");
+ $sel->is_element_present_ok("link=8750");
+ $sel->is_element_present_ok("link=8760");
+ $sel->is_element_present_ok("link=8780");
+ $sel->is_element_present_ok("link=8790");
+ $sel->is_element_present_ok("link=8800");
+ $sel->is_element_present_ok("link=8801");
+ $sel->is_element_present_ok("link=8807");
+ $sel->is_element_present_ok("link=8808");
+ $sel->is_element_present_ok("link=8809");
+ $sel->is_element_present_ok("link=8820");
+ $sel->is_element_present_ok("link=8827");
+ $sel->is_element_present_ok("link=8828");
+ $sel->is_element_present_ok("link=8829");
+ $sel->is_element_present_ok("link=8900");
+ $sel->is_element_present_ok("link=8905");
+ $sel->is_element_present_ok("link=8910");
+ $sel->is_element_present_ok("link=8915");
+ $sel->is_element_present_ok("link=8919");
+ $sel->is_element_present_ok("link=8920");
+ $sel->is_element_present_ok("link=8921");
+ $sel->is_element_present_ok("link=8922");
+ $sel->is_element_present_ok("link=8924");
+ $sel->is_element_present_ok("link=8925");
+ $sel->is_element_present_ok("link=8930");
+ $sel->is_element_present_ok("link=8935");
+ $sel->is_element_present_ok("link=8939");
+ $sel->is_element_present_ok("link=8940");
+ $sel->is_element_present_ok("link=8945");
+ $sel->is_element_present_ok("link=8949");
+ $sel->is_element_present_ok("link=8950");
+ $sel->is_element_present_ok("link=8955");
+ $sel->is_element_present_ok("link=8960");
+ $sel->is_element_present_ok("link=8970");
+ $sel->is_element_present_ok("link=8980");
+ $sel->is_element_present_ok("link=8990");
+ $sel->is_element_present_ok("link=9000");
+ $sel->is_element_present_ok("link=9008");
+ $sel->is_element_present_ok("link=9009");
+ $sel->is_element_present_ok("link=9090");
+};
1;
\ No newline at end of file
exit(0);
}
diag("Test Account");
+SKIP: {
+ start_login();
-$sel->select_frame_ok("relative=up") if (!($sel->get_title() eq "Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db}));
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Konten anzeigen");
-$sel->wait_for_page_to_load($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->click_ok("link=000000000001");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-# Die folegenden Zeilen testen die Checkboxen im Formular, welche nach bestimmten Regeln gelöscht werden.
-# Hiefür muß erst ein Konzept erstellt werden, wann eine Checkbox aktiviert ist und wann nicht.
+ $sel->click_ok("link=Konten anzeigen");
+ $sel->wait_for_page_to_load($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->click_ok("link=000000000001");
+ $sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ # Die folegenden Zeilen testen die Checkboxen im Formular, welche nach bestimmten Regeln gelöscht werden.
+ # Hiefür muß erst ein Konzept erstellt werden, wann eine Checkbox aktiviert ist und wann nicht.
-# Test für das erste Konto, bei dem alle Felder deaktiviert werden müssen
-isnt($sel->is_checked("//input[(\@name=\"AR_amount\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"AR_paid\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"AR_tax\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"AP_amount\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"AP_paid\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"AP_tax\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"IC_sale\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"IC_cogs\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"IC_taxpart\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"IC_income\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"IC_expense\")]"), 1, "Checkboxcheck");
-isnt($sel->is_checked("//input[(\@name=\"IC_taxservice\")]"), 1, "Checkboxcheck");
+ # Test für das erste Konto, bei dem alle Felder deaktiviert werden müssen
+ isnt($sel->is_checked("//input[(\@name=\"AR_amount\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"AR_paid\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"AR_tax\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"AP_amount\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"AP_paid\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"AP_tax\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"IC_sale\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"IC_cogs\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"IC_taxpart\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"IC_income\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"IC_expense\")]"), 1, "Checkboxcheck");
+ isnt($sel->is_checked("//input[(\@name=\"IC_taxservice\")]"), 1, "Checkboxcheck");
+};
1;
\ No newline at end of file
if(!defined $sel) {
require "t/selenium/AllTests.t";
init_server("singlefileonly",$0);
- exit(0);
+ exit(0);
}
-diag("Delete product groups");
-TODO: {
- local $TODO = "Benutzte Preisgruppen können nicht gelöscht werden!";
- if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
- require_ok("../../begin/B004Login.t");
- }
+diag("Delete product groups");
- $sel->select_frame_ok("relative=up");
+SKIP: {
+ start_login();
$sel->click_ok("link=Warengruppen anzeigen");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
$sel->select_frame_ok("main_window");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
$sel->click_ok("link=TestSeleniumWarengruppe1");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+
+ skip("Produktgruppen, die noch benutzt werden, können nicht gelöscht werden!", 10) if(!$sel->is_element_present("document.forms[0].action[1]","Löschen"));
$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});
+
+ skip("Produktgruppen, die noch benutzt werden, können nicht gelöscht werden!", 6) if($sel->get_value("document.forms[0].action[1]") ne "Löschen");
$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});
+
+ skip("Produktgruppen, die noch benutzt werden, können nicht gelöscht werden!", 2) if($sel->get_value("document.forms[0].action[1]") ne "Löschen");
$sel->click_ok("document.forms[0].action[1]");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-}
+};
1;
\ No newline at end of file
exit(0);
}
diag("Delete Account");
+SKIP: {
+ start_login();
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Konten anzeigen");
-$sel->wait_for_page_to_load($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->click_ok("link=000000000001");
-$sel->wait_for_page_to_load_ok("30000");
-$sel->click_ok("document.EditAccount.action[1]");
-$sel->wait_for_page_to_load_ok("30000");
-isnt($sel->is_element_present("link=000000000001"),1,"Tests whether link for created acc is present");
-isnt($sel->is_text_present("TestSeleniumKonto"),1,"Tests wheter text of created acc is present");
+ $sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
+ $sel->click_ok("link=Konten anzeigen");
+ $sel->wait_for_page_to_load($lxtest->{timeout});
+ $sel->select_frame_ok("main_window");
+ $sel->click_ok("link=000000000001");
+ $sel->wait_for_page_to_load_ok("30000");
+ $sel->click_ok("document.EditAccount.action[1]");
+ $sel->wait_for_page_to_load_ok("30000");
+ isnt($sel->is_element_present("link=000000000001"),1,"Tests whether link for created acc is present");
+ isnt($sel->is_text_present("TestSeleniumKonto"),1,"Tests wheter text of created acc is present");
+};
1;
\ No newline at end of file
exit(0);
}
diag("Delete customer/vendor types");
+SKIP: {
+ start_login();
-$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});
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Delete payment conditions");
+SKIP: {
+ start_login();
-$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});
+ $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});
+}
1;
\ No newline at end of file
exit(0);
}
diag("Delete languages");
+SKIP: {
+ start_login();
-$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});
+ $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});
+};
1;
\ No newline at end of file
exit(0);
}
diag("Delete price brackets");
-TODO: {
- local $TODO = "Benutzte Preisgruppen können nicht gelöscht werden!";
+SKIP: {
+ start_login();
- 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->wait_for_page_to_load_ok($lxtest->{timeout});
$sel->click_ok("link=SeleniumTestPreisgruppe1");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
+ skip("Preisgruppen, die noch benutzt werden, können nicht gelöscht werden!", 6) if(!$sel->is_element_present("document.forms[0].action[1]","Löschen"));
$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});
+ skip("Preisgruppen, die noch benutzt werden, können nicht gelöscht werden!", 2) if(!$sel->is_element_present("document.forms[0].action[1]","Löschen"));
$sel->click_ok("document.forms[0].action[1]");
$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-}
+};
1;
\ No newline at end of file