自动化测试的基础知识?

发布于 2024-08-30 21:40:59 字数 190 浏览 7 评论 0原文

到目前为止,我一直在手动测试我的网络(通常用 PHP 编写)以及桌面应用程序(通常是 Java 或 C#)。现在我在网上读到有关自动化测试的内容。我尝试搜索以详细了解它,但几乎所有搜索都以 PHPUnit 之类的内容结束。有人可以解释一下自动化测试背后的理论吗?如何对软件进行自动测试?有什么限制等吗?或者您可以告诉我一个可以阅读此内容的地方。

问候

Till now I've been testing my web (usually written in PHP) as well as desktop applications (normally Java or C#) manually. Now I read somewhere on the net about automated tests. I tried searching to know about it in details but almost all searches end up at things like PHPUnit. Could someone please put some light on the theory behind automated tests? How a software can be tested automatically? Any limitations etc? Or may be you can tell me a place where I can read about this.

Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

稳稳的幸福 2024-09-06 21:40:59

为了测试代码的正确性,您可以使用单元测试。这是首先从 深入 Python:单元测试 向我解释的,并且会更公正地解释那么我可以在这里主题。既然您了解了单元测试这个术语,那么您应该不会远离其他对您有意义的现有解释,即使没有。

您可能也会对测试驱动开发感兴趣。

您的代码并没有像您可能想象的那样神奇地为您进行测试。测试您的应用程序的代码将由您编写。 PHPUnit 等软件包为您提供了一个可以在其中实现测试的框架。这些包将为定义测试、将它们作为一个套件一起运行以及生成报告提供许多便利。这些是唯一的自动化方面。

For testing the correctness of code you can use unit testing. This was first explained to me from Dive Into Python: Unit Testing and will do much more justice to the topic then I could here. Now that you know about the term unit testing, you shouldn't be far from other existing explanations that will make sense to you, be it that one doesn't.

You may find test-driven development of interest too.

Your code is not magically tested for you, as you may had the idea of. The code to test your application will be written by you. What packages like PHPUnit offer you is a framework in which you can implement your tests. These packages will provide many conveniences for defining your tests, running them together as a suite, and generating a report. These are the only automated aspects.

偏爱你一生 2024-09-06 21:40:59

这些测试工具的使用方式如下,如果假设我们必须测试一个网络表单,我们将把输入数据传递到他们为我们提供的工具字段中,以及需要填写表单的用户数量(他们的用户-名称),以这种方式,当执行此操作时,表单将填充具有单独用户名的提供数据,此执行可能会提供 u 测试数据,如性能、执行时间和负载等...

WebLoad 测试教程

请参阅上面的负载测试链接...

也请参阅这些链接
功能测试

安全测试

链接和 HTML 工具测试

性能测试

These Test Tools are used in the following manner as, If suppose we have to test a webform we will pas the input data into the fields they have provided us with the tool, and the number of users needs to filling the form (their user-name), In this way when this is executed then the form gets filled with provided data with individual usernames, This execution may provide u test data as performance, time of execution and load etc...

WebLoad Testing Tutorial

see the above link for load testing...

See these links as well
Functional testing

Security Testing

Link and HTML tool Testing

Performance Testing

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文