Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update writing-a-locustfile.rst #337

Merged
merged 1 commit into from
Feb 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/testing-other-systems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Testing other systems using custom clients
===========================================

Locust was built with HTTP as it's main target. However, it can easily be extended to load test
Locust was built with HTTP as its main target. However, it can easily be extended to load test
any request/response based system, by writing a custom client that triggers
:py:attr:`request_success <locust.events.request_success>` and
:py:attr:`request_failure <locust.events.request_failure>` events.
Expand All @@ -16,7 +16,7 @@ Here is an example of a Locust class, **XmlRpcLocust**, which provides an XML-RP
.. literalinclude:: ../examples/custom_xmlrpc_client/xmlrpc_locustfile.py

If you've written Locust tests before, you'll recognize the class called *ApiUser* which is a normal
Locust class that has a *TaskSet* class with *tasks* in it's *task_set* attribute. However, the *ApiUser*
Locust class that has a *TaskSet* class with *tasks* in its *task_set* attribute. However, the *ApiUser*
inherits from *XmlRpcLocust* that you can see right above ApiUser. The *XmlRpcLocust* class provides an
instance of XmlRpcClient under the *client* attribute. The *XmlRpcClient* is a wrapper around the standard
library's :py:class:`xmlrpclib.ServerProxy`. It basically just proxies the function calls, but with the
Expand Down
4 changes: 2 additions & 2 deletions docs/writing-a-locustfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ instead of referring to a python function, you point it to another TaskSet::
pass

So in above example, if the ForumPage would get selected for execution when the UserBehaviour
TaskSet is executing, is. that the ForumPage TaskSet would start executing. The ForumPage TaskSet
TaskSet is executing, then the ForumPage TaskSet would start executing. The ForumPage TaskSet
would then pick one of its own tasks, execute it, then wait, and so on.

There is one important thing to note about the above example, and that is the call to
Expand Down Expand Up @@ -357,7 +357,7 @@ Grouping requests to URLs with dynamic parameters
It's very common for websites to have pages whose URLs contain some kind of dynamic parameter(s).
Often it makes sense to group these URL's together in Locust's statistics. This can be done
by passing a *name* argument to the :py:class:`HttpSession's <locust.clients.HttpSession>`
different reqeust methods.
different request methods.

Example::

Expand Down