Automatisierte Syntaxtests, Framework für spätere Modultests.
[kivitendo-erp.git] / t / old / selenium / testscripts / administration / begin / A002CreateTestUser.t
1 ### Create new user
2
3 if(!defined $sel) {
4   require "t/selenium/AllTests.t";
5   init_server("singlefileonly", $0);
6   exit(0);
7 }
8
9 diag("Create test user '$lxtest->{testuserlogin}'");
10 $sel->open_ok($lxtest->{lxadmin});
11
12 $sel->title_is("Lx-Office ERP Administration -");
13 $sel->click_ok("action");
14 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
15 $sel->title_is("Lx-Office ERP Administration / Benutzer erfassen -");
16 $sel->type_ok("login", $lxtest->{testuserlogin});
17 $sel->type_ok("password", $lxtest->{testuserpasswd});
18 $sel->type_ok("name", "Selenium");
19 $sel->type_ok("email", "selenium\@lx-office.org");
20 $sel->type_ok("signature", "Selenium Testuser");
21 $sel->type_ok("tel", "0000");
22 $sel->type_ok("fax", "1111");
23 $sel->type_ok("company", "Sel-enium");
24 $sel->type_ok("signature", "Selenium Testuser\nTestfirma");
25 $sel->type_ok("address", "Testfirma");
26 $sel->type_ok("taxnumber", "111-222-333-444");
27 $sel->type_ok("co_ustid", "1234567");
28 $sel->type_ok("duns", "0987654321");
29 #$sel->click_ok("dbdriver");
30 $sel->type_ok("newtemplates", "seleniumtestuser");
31 $sel->click_ok("menustyle");
32 $sel->type_ok("dbhost", $lxtest->{dbhost});
33 $sel->type_ok("dbname", $lxtest->{db});
34 $sel->type_ok("dbport", $lxtest->{dbport});
35 $sel->type_ok("dbuser", $lxtest->{dbuser});
36 $sel->type_ok("dbpasswd", $lxtest->{dbpasswd});
37 $sel->click_ok("action");
38 $sel->wait_for_page_to_load_ok($lxtest->{timeout});
39 $sel->title_is("Lx-Office ERP Administration -");
40 1;