]> wagnertech.de Git - kivitendo-erp.git/blobdiff - t/selenium/testscripts/masterdata/begin/M004AddService.t
Bei verschachtelten Schleifen in der inneren Schleife eine andere Schleifenvariable...
[kivitendo-erp.git] / t / selenium / testscripts / masterdata / begin / M004AddService.t
index f94e4eb951199a69839906c18f0c0aa351b5a5c9..5a0dd19fcf3b305380f11238c3bbe6aa554d8ead 100644 (file)
@@ -1,41 +1,44 @@
-diag("Add service");
-
-if(!$sel->get_title("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db})){
-  require_ok("../../begin/B004Login.t");
+if(!defined $sel) {
+  require "t/selenium/AllTests.t";
+  init_server("singlefileonly",$0);
+  exit(0);
 }
-
-$sel->select_frame_ok("relative=up");
-$sel->title_is("Lx-Office Version 2.4.3 - Selenium - " . $lxtest->{db});
-$sel->click_ok("link=Dienstleistung erfassen");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->select_frame_ok("main_window");
-$sel->type_ok("partnumber", "999");
-$sel->type_ok("description", "Programmierstunde");
-$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
-$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
-$sel->type_ok("notes", "Eine Programmierstunde wird immer besser bezahlt");
-$sel->type_ok("listprice", "50,00");
-$sel->type_ok("sellprice", "100");
-$sel->type_ok("lastcost", "45");
-$sel->select_ok("unit", "label=Std");
-$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
-$sel->type_ok("price_1", "100");
-$sel->click_ok("action");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->click_ok("document.ic.action[1]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
-$sel->type_ok("partnumber", "998");
-$sel->type_ok("description", "Telefonstunde");
-$sel->select_ok("partsgroup", "label=TestSeleniumWarengruppe3");
-$sel->select_ok("buchungsgruppen_id", "label=Standard 16%/19%");
-$sel->type_ok("notes", "gibt's beim Telekomunikator");
-$sel->type_ok("listprice", "0,05");
-$sel->type_ok("sellprice", "0,10");
-$sel->type_ok("lastcost", "0,02");
-$sel->select_ok("unit", "label=psch");
-$sel->select_ok("payment_id", "label=Schnellzahler/Skonto");
-$sel->type_ok("price_1", "0,02");
-$sel->type_ok("price_2", "0,1");
-$sel->type_ok("price_1", "0,1");
-$sel->click_ok("document.ic.action[1]");
-$sel->wait_for_page_to_load_ok($lxtest->{timeout});
\ No newline at end of file
+diag("Add service");
+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