Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sprachschulsystem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Pokorný
Sprachschulsystem
Commits
b37b2b94
There was an error fetching the commit references. Please try again later.
Commit
b37b2b94
authored
1 year ago
by
Jan Pokorný
Browse files
Options
Downloads
Patches
Plain Diff
Locust fixes
parent
936a604f
No related branches found
No related tags found
1 merge request
!50
Locust fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/locustfile.py
+13
-2
13 additions, 2 deletions
application/locustfile.py
with
13 additions
and
2 deletions
application/locustfile.py
+
13
−
2
View file @
b37b2b94
...
...
@@ -55,11 +55,11 @@ class StudentActor(HttpUser):
self
.
course_id
=
json
[
0
][
"
id
"
]
@task
def
enrol
(
self
):
def
enrol
_course
(
self
):
if
self
.
course_id
is
None
or
self
.
id
is
None
:
return
self
.
client
.
patch
(
url
=
f
'
/courses/enrol/
{
self
.
course_id
}
?studentId=
{
self
.
id
}
'
,
url
=
f
'
/courses/enrol
Student
/
{
self
.
course_id
}
?studentId=
{
self
.
id
}
'
,
auth
=
None
,
headers
=
self
.
header
,
name
=
"
Enrol Courses
"
...
...
@@ -80,6 +80,17 @@ class StudentActor(HttpUser):
if
len
(
json
)
>
0
:
self
.
lecture_id
=
json
[
0
][
"
id
"
]
@task
def
enrol_lecture
(
self
):
if
self
.
lecture_id
is
None
or
self
.
id
is
None
:
return
self
.
client
.
patch
(
url
=
f
'
/lectures/enrolStudent/
{
self
.
lecture_id
}
?studentId=
{
self
.
id
}
'
,
auth
=
None
,
headers
=
self
.
header
,
name
=
"
Enrol Lectures
"
)
class
LecturerActor
(
HttpUser
):
weight
=
0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment