ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
loadtestdbgen.php
Go to the documentation of this file.
1 <?php
2 
3 
4 // This is an example file how a test db and csv files can be generated
5 // for a load test
6 
7 chdir("../../..");
8 include_once("./include/inc.header.php");
9 include_once("./Services/LoadTest/classes/class.ilDataLoader.php");
10 
12 $loader->setEnableLog(true);
13 //$loader->loadSqlTemplate("./Services/LoadTest/data/usr_1000/db.sql");
14 //$loader->generateUsers("learner", 1, 1000);
15 //$loader->generateCategories(1, 200, 5);
16 //$loader->generateCourses(1, 300, 5);
17 //$loader->generateFiles("/tmp/test.txt", 40);
18 //$loader->generateCalendarEntries(30);
19 //$loader->writeUserCsv("./Services/LoadTest/data/cat_200_crs_300_file_40_cal_30_news_1/user.csv");
20 //$loader->writeCourseCsv("./Services/LoadTest/data/cat_200_crs_300_file_40_cal_30_news_1/crs.csv");
21 //$loader->writeCategoryCsv("./Services/LoadTest/data/cat_200_crs_300_file_40_cal_30_news_1/cat.csv");
22 //$loader->assignUsersAsCourseMembers("learner", 1, 100);
23 //$loader->removeAllDesktopItems();
24 //$loader->deactivateCalendarsOnPersonalDesktop();
25 //$loader->createDump("./Services/LoadTest/data/cat_200_crs_300_file_40_cal_30_news_1/db.sql",
26 // "mysqldump");
27 
28 ?>