ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
x
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
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
11
$loader
=
new
ilDataLoader
();
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
?>
$loader
$loader
Definition:
loadtestdbgen.php:11
ilDataLoader
Data loader for load tests.
Definition:
class.ilDataLoader.php:12
Services
LoadTest
scripts
loadtestdbgen.php
Generated on Mon Mar 31 2025 19:00:47 for ILIAS by
1.8.13 (using
Doxyfile
)