from locust import HttpUser, between, task


class WebsiteUser(HttpUser):
    wait_time = between(5, 15)

    @task
    def ELK112801(self):
        body= {
            "commonHeader" : {
                "firstReqSystemCode" : "ORG",
                "firstReqSystemIp" : "127.0.0.1",
                "msgCreationTime" : "20221124165050",
                "globalId" : "FE2022112416505066666",
                "traceSeqNo" : "1",
                "serviceCode" : "ELK112401",
                "personalInfoYn" : "N",
                "receivingSystemCode" : "CBS",
                "reqResTypeCode" : "S",
                "msgList" : [],
                "msgStackTrace" : "message stack trace"
            },
            "payload" : {
                "aaa" : "a01",
                "bbb" : "나01",
                "ccc" : 123
            }
        }
        self.client.post("/api/standard-api.svc", headers={'Content-Type': 'application/json;'}, json=body)
