https://medium.com/@jspark141515/locust로-서버-성능-테스트하기-7490d882015
from locust import HttpLocust, TaskSet, task, between
class UserBehaviour(TaskSet):
@task
def testCode(self):
h = """{
"x-kas-project-id": "6f9db89b212fb4da651ccbf034621eab77ff6655",
"x-kas-project-token":"e41f9c301c6b4057ed0691f0d59ff9aad638f64d",
"x-kas-network-id":"1001",
}
"""
self.client.get("/v1/klay/transfer?eoaAddress=0xaf521d543019aa7954a7a639c37be038a89614ba",
headers = {'x-kas-project-id':'6f9db89b212fb4da651ccbf034621eab77ff6655', 'x-kas-project-token':'e41f9c301c6b4057ed0691f0d59ff9aad638f64d', 'x-kas-network-id':'1001'})
class WebsiteUser(HttpLocust):
task_set = UserBehaviour
wait_time = between(5, 9)