Skip to content

Commit

Permalink
Add new test for load test
Browse files Browse the repository at this point in the history
  • Loading branch information
maingockien01 committed Apr 10, 2024
1 parent 2d7aa2e commit 3177f44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions apps/locust/loadTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ def create_personalRoadmap(self):
selected_courses_body = {"courses": [selected_course]}
# Send POST request to create personal data using the selected course as the body
personal_response = self.client.post("/rest-api/roadmap/personal", json=selected_courses_body, headers=headers)



@task
def fetch_activeRegistration(self):
headers = {"Authorization": f"Bearer {self.jwt_token}"}
self.client.get(url="/rest-api/user/searchActive?tid=12", headers=headers)


0 comments on commit 3177f44

Please sign in to comment.