2 require "t/selenium/AllTests.t";
3 init_server("singlefileonly",$0);
10 $sel->click_ok("link=Lieferant erfassen");
11 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
12 diag("Create first vendor");
13 $sel->select_frame_ok("main_window");
14 $sel->click_ok("vendornumber");
15 $sel->type_ok("vendornumber", "1");
16 $sel->click_ok("selected_company_greeting");
17 $sel->select_ok("selected_company_greeting", "label=Firma");
18 $sel->click_ok("//option[2]");
19 $sel->click_ok("name");
20 $sel->type_ok("name", "TestLieferant1");
21 $sel->type_ok("department_1", "GossAus");
22 $sel->type_ok("street", "Berger 1");
23 $sel->type_ok("zipcode", "11990");
24 $sel->type_ok("city", "Drehmel");
25 $sel->type_ok("country", "Germany");
26 $sel->type_ok("contact", "Herr Custom");
27 $sel->type_ok("phone", "01234 56787902");
28 $sel->type_ok("fax", "01234 567879023");
29 $sel->type_ok("email", "custom\@linet-services.de");
30 $sel->type_ok("account_number", "2");
31 $sel->click_ok("obsolete");
32 $sel->click_ok("obsolete");
33 $sel->type_ok("notes", "keine Bemerkungen");
34 $sel->click_ok("link=Lieferadresse");
35 $sel->click_ok("shipto_id");
36 $sel->select_ok("shipto_id", "label=Alle");
37 $sel->click_ok("//tr[1]/td/select/option[2]");
38 $sel->click_ok("link=Ansprechpartner");
39 $sel->click_ok("cp_id");
40 $sel->click_ok("cp_id");
41 $sel->click_ok("cp_greeting");
42 $sel->click_ok("selected_cp_greeting");
43 $sel->select_ok("selected_cp_greeting", "label=Frau");
44 $sel->click_ok("//tr[2]/td/select/option[2]");
45 $sel->click_ok("cp_title");
46 $sel->click_ok("selected_cp_title");
47 $sel->click_ok("cp_title");
48 $sel->type_ok("cp_title", "Diplom Meterologin");
49 $sel->click_ok("cp_abteilung");
50 $sel->type_ok("cp_title", "Dipl. Inf.");
51 $sel->click_ok("cp_title");
52 $sel->click_ok("cp_title");
53 $sel->type_ok("cp_title", "Dipl. Ing.");
54 $sel->click_ok("cp_abteilung");
55 $sel->type_ok("cp_abteilung", "Externes");
56 $sel->type_ok("cp_givenname", "Hildegunde");
57 $sel->type_ok("cp_name", "Riess");
58 $sel->type_ok("cp_phone1", "0111 222333444 5");
59 $sel->click_ok("cp_birthday");
60 $sel->type_ok("cp_birthday", "12.03.1964");
61 $sel->click_ok("link=Lieferungen");
62 $sel->click_ok("action");
63 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
64 $sel->click_ok("link=Rechnungsadresse");
65 $sel->click_ok("document.ct.action[1]");
66 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
67 diag("Create second vendor");
68 $sel->click_ok("vendornumber");
69 $sel->type_ok("vendornumber", "2");
70 $sel->click_ok("greeting");
71 $sel->click_ok("selected_company_greeting");
72 $sel->select_ok("selected_company_greeting", "label=Firma");
73 $sel->click_ok("//option[2]");
74 $sel->click_ok("name");
75 $sel->type_ok("name", "TestLieferant2");
76 $sel->type_ok("department_1", "Verkauf");
77 $sel->type_ok("department_2", "Orga");
78 $sel->type_ok("street", "Wlkenweg 3");
79 $sel->type_ok("zipcode", "09090");
80 $sel->type_ok("city", "Brummbach");
81 $sel->click_ok("city");
82 $sel->type_ok("city", "Markt Brummbach");
83 $sel->click_ok("country");
84 $sel->type_ok("country", "Germany");
85 $sel->click_ok("document.ct.action[1]");
86 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
87 diag("Create third vendor");
88 $sel->click_ok("link=Rechnungsadresse");
89 $sel->click_ok("vendornumber");
90 $sel->type_ok("vendornumber", "3");
91 $sel->click_ok("selected_company_greeting");
92 $sel->select_ok("selected_company_greeting", "label=Firma");
93 $sel->click_ok("//option[2]");
94 $sel->type_ok("name", "TestFirma3 GmbH");
95 $sel->type_ok("fax", "03232 7272727273");
96 $sel->type_ok("creditlimit", "50000");
97 $sel->type_ok("discount", "10");
98 $sel->click_ok("link=Lieferadresse");
99 $sel->click_ok("shiptoname");
100 $sel->type_ok("shiptoname", "TestFirma3 GmbH");
101 $sel->type_ok("shiptodepartment_1", "Vertrieb");
102 $sel->type_ok("shiptostreet", "Grummelsburger 1423");
103 $sel->type_ok("shiptozipcode", "40000");
104 $sel->type_ok("shiptocity", "Hansastadt");
105 $sel->type_ok("shiptocountry", "Germany");
106 $sel->type_ok("shiptocontact", "Herr Baumann von Clausen");
107 $sel->type_ok("shiptophone", "03232 7272727272");
108 $sel->type_ok("shiptofax", "03232 7272727273");
109 $sel->type_ok("shiptoemail", "baumann\@linet-services.de");
110 $sel->click_ok("link=Ansprechpartner");
111 $sel->click_ok("selected_cp_greeting");
112 $sel->click_ok("cp_greeting");
113 $sel->type_ok("cp_greeting", "Herr");
114 $sel->type_ok("cp_abteilung", "Vertrieb");
115 $sel->type_ok("cp_givenname", "Dietmar");
116 $sel->type_ok("cp_name", "Baumann von Clausen");
117 $sel->type_ok("cp_phone1", "03232 7272727272");
118 $sel->type_ok("cp_fax", "03232 7272727273");
119 $sel->type_ok("cp_birthday", "14.05.1971");
120 $sel->click_ok("link=Lieferungen");
121 $sel->click_ok("document.ct.action[1]");
122 $sel->wait_for_page_to_load_ok($lxtest->{timeout});