-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocustfile.py
13 lines (9 loc) · 1.39 KB
/
locustfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
from locust import HttpUser, task, between
class ApiGatewayDemo(HttpUser):
wait_time = between(2,4)
@task
def community_page(self):
headers = {
"Authorization": "Bearer eyJraWQiOiJjOGQ4YTg0My00OWExLTRjMDMtYjEwOC1kMThlMGJhMGZjYTQiLCJ0eXAiOiJqd3QiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiJjNTJiZjdkYi1kYjU1LTRmODktYWM1My04MmI0MGU4YzU3YzIiLCJ3ZWJzaXRlIjoiaHR0cHM6Ly9leGFtcGxlLmNvbSIsInpvbmVpbmZvIjoiRXVyb3BlL0JlcmxpbiIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJwcm9maWxlIjoiaHR0cHM6Ly9leGFtcGxlLmNvbS9id2F5bmUiLCJyb2xlcyI6WyJVU0VSIl0sImlzcyI6Imh0dHA6Ly9sb2NhbGhvc3Q6OTAwMCIsInByZWZlcnJlZF91c2VybmFtZSI6ImJ3YXluZSIsImdpdmVuX25hbWUiOiJCcnVjZSIsImxvY2FsZSI6ImRlLURFIiwiYXVkIjoiZGVtby1jbGllbnQtcGtjZSIsIm5iZiI6MTY5ODA4NzExMSwidXBkYXRlZF9hdCI6IjE5NzAtMDEtMDFUMDA6MDA6MDBaIiwic2NvcGUiOlsib3BlbmlkIiwicHJvZmlsZSIsImVtYWlsIl0sIm5hbWUiOiJCcnVjZSBXYXluZSIsIm5pY2tuYW1lIjoiYndheW5lIiwiZXhwIjoxNjk4MDg4MDExLCJpYXQiOjE2OTgwODcxMTEsImZhbWlseV9uYW1lIjoiV2F5bmUiLCJlbWFpbCI6ImJydWNlLndheW5lQGV4YW1wbGUuY29tIn0.HH0sxNZhEoX1Mpl7-SQ23x355Pa-JmSS2tThPxOvVd_yhqd8Gemm4ZVNepMb3Y2W_SKeSVjhp24UlhRJPQGyqVgjghr3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