Skip to content

Commit

Permalink
Create BatchUsersCreate.py
Browse files Browse the repository at this point in the history
script for creating Batch users in MongoDB
  • Loading branch information
sarora180673 authored Nov 15, 2024
1 parent 098558d commit 72ea808
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions rair-infra/assets/Performance-Testing/locust/BatchUsersCreate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from locust import HttpUser, task, between
import random

class BatchUsers(HttpUser):
wait_time = between(3, 8)
@task
def createUser(self):
random_number = hex(random.getrandbits(160))
request_body = {'publicAddress': random_number}
self.client.post('/api/users', json=request_body)

0 comments on commit 72ea808

Please sign in to comment.