mirror of https://github.com/locustio/locust.git
21 lines
490 B
Python
21 lines
490 B
Python
from locust import HttpUser, between, task
|
|
|
|
|
|
class Quickstart(HttpUser):
|
|
wait_time = between(1, 5)
|
|
|
|
@task
|
|
def google(self):
|
|
self.client.request_name = "google"
|
|
self.client.get("https://google.com/")
|
|
|
|
@task
|
|
def microsoft(self):
|
|
self.client.request_name = "microsoft"
|
|
self.client.get("https://microsoft.com/")
|
|
|
|
@task
|
|
def facebook(self):
|
|
self.client.request_name = "facebook"
|
|
self.client.get("https://facebook.com/")
|