#!/usr/bin/python # -*- coding=utf-8 -*- # @Create Time: 2024-01-24 14:35:32 # @Last Modified time: 2024-01-24 14:47:32 from locust import HttpUser, task, between class MyHttpUser(HttpUser): wait_time = between(1, 2) @task def index_page(self): data = { "record_Time": "2024-01-17T05:14:53.632Z", "current_Url": "http://10.10.21.28/gmp/static/gmpweb/workbench/menu/AppNavExpand.html?appCode=eqpitassets&tSession=1703234778559", "full_Url": "http://domain/path", "user_Id": "zhangchijun@mz.gd.csg.cn", "device_Id": "string", "request_Method": "GET", "event_Type": "click", "form_Data": "{}", "value_Data": "string", "status_Code": 200, "target_Url": "http://10.10.21.28/api/jadp/workbench/todos/todoCountByUserId?_=1703234767322", "button_Text": "申领管理" } self.client.post("http://localhost:7788/record", json=data)