[英]Performance, load and stress testing in Django
I am studying the different types of testing for a Django application. 我正在研究Django应用程序的不同类型的测试。 I know how to do functional and unit testing in Django and how to apply different methodologies, but now I am facing a new challenge, I need to know how to do: 我知道如何在Django中进行功能和单元测试以及如何应用不同的方法,但现在我面临新的挑战,我需要知道如何做:
I know the difference between them but I dont know which is the best methodology to follow,which are the best packages for do it or simply where I can get some documentation about it. 我知道它们之间的区别,但我不知道哪种方法最好,哪种方法最好,或者只是我可以获得一些文档 。
So my question is, how can I start to do these types of tests in a Django app or where can I get some good documentation about it? 所以我的问题是,我如何开始在Django应用程序中进行这些类型的测试,或者我在哪里可以得到一些关于它的好文档?
Thanks 谢谢
Load Testing and Stress Testing are basically performance testing sub-types where: 负载测试和压力测试基本上是性能测试子类型,其中:
Also be aware of Soak Testing - when you put the system under a prolonged load to see if it is capable of handling sustained concurrent usage. 还要注意浸泡测试 - 当您将系统置于长时间负载下以查看它是否能够处理持续的并发使用时。 The majority of bottlenecks are being discovered during Soak Testing phase. 在浸泡测试阶段发现了大部分瓶颈 。
With regards to "how do I": 关于“我如何”:
python
and django
tags my expectation is that you find Locust tool interesting as you will be able to write your tests in some form of Python language. 鉴于python
和django
标签,我期望您发现Locust工具很有趣,因为您将能够以某种形式的Python语言编写测试。 You can also consider Grinder where you can write tests in Jython (Java bindings for Python) language so you won't have to learn the new tool from scratch. 您还可以考虑在Grinder中使用Jython (Java绑定Python)语言编写测试,这样您就不必从头学习新工具。 Other free and open source load testing tools are listed and compared in the Open Source Load Testing Tools: Which One Should You Use? 在开源负载测试工具中列出并比较了其他免费和开源负载测试工具:您应该使用哪一个? Next step will be creating a load test scenario. 下一步将创建负载测试场景。 You need to mimic real application usage as close as possible, to wit you need to properly simulate real user using real browser with all related stuff like: 您需要尽可能接近地模仿真实的应用程序使用情况,因此您需要使用真实浏览器正确模拟真实用户以及所有相关内容,例如:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.