0
我是新来的蝗虫,并试图让我的第一次测试,上传页眉和路径简单的文件,并不能似乎设法使其工作蝗虫,上传测试
会很高兴的任何帮助,谢谢!
我目前的测试是:
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