I am currently writing python script for load testing an API.I want to check how many requests can an API take at a time.The API is for registration so I have to send unique parameters everytime.
Is there anyway I could achieve it through locust or any other way?
Any help would be appreciated.
This is my code for registration of single user.
def registration:
URL = "ip"
PARAMS = {'name':'test','password':'test1','primary_email':'test667@gmail.com','primary_mobile_number':'9999999999','country_abbrev':'US'}
r = requests.post(url = URL,params = PARAMS,auth=HTTPDigestAuth('user', 'pass'))
response = r.text
print response