From ae72f8b812e19b71ac8eb0bd5e5d20c97174c4c7 Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Thu, 17 Nov 2022 12:23:04 +0100 Subject: [PATCH] auto generated locustfiles from browser recordings using har2locust (documentation) --- docs/writing-a-locustfile.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/writing-a-locustfile.rst b/docs/writing-a-locustfile.rst index 706bd7fad9..5275c3dd7d 100644 --- a/docs/writing-a-locustfile.rst +++ b/docs/writing-a-locustfile.rst @@ -119,6 +119,17 @@ the :ref:`name parameter ` to group all those requests under an Additionally we've declared an `on_start` method. A method with this name will be called for each simulated user when they start. For more info see :ref:`on-start-on-stop`. +Auto-generating a locustfile +============================ + +You can use `har2locust `_ to generate locustfiles based on a browser recording (HAR-file). + +It is particularly useful for beginners that are not used to writing their own locustfile, but also highly customizable for more advanced use cases. + +.. note:: + + har2locust is still in beta. It may not always generate correct locustfiles, and its interface may change between versions. + User class ==========