I am new to locust and trying to make my first test, upload simple file with headers and path, and cant seem to manage to make it work
will be glad for any help, thanks!
my current test is:
class UserBehavior(TaskSet):
@task
def post_img(self):
self.client.headers['1'] = "1"
self.client.headers['1'] = "1"
test_file = 'PATH/TO.FILE'
self.client.post("address", files={'file': open(test_file, 'rb')})
class WebsiteUser(HttpLocust):
host = 'IP'
task_set = UserBehavior
min_wait = 100
max_wait = 300