Skip to content

Commit

Permalink
Merge pull request #337 from reduxionist/patch-1
Browse files Browse the repository at this point in the history
Update writing-a-locustfile.rst
  • Loading branch information
Markus Thurlin committed Feb 15, 2016
2 parents c38a030 + 574a32c commit a423e33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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
2 changes: 1 addition & 1 deletion 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

0 comments on commit a423e33

Please sign in to comment.