测试框架选择

发布于 2024-08-20 11:32:19 字数 560 浏览 7 评论 0 原文

您好,

我正在寻找一个测试框架。

目前,我们有一个自制的 Perl 脚本,它循环输入文件,调用 AWK 脚本,该脚本又连接到服务器,然后收集输出并将其与保存的输出文件进行比较。这是在 Linux 上完成的。目前只有 100 多个测试。我们正在计划一次重大重构,我想首先改进测试系统和测试。

在考虑框架需求时,我想要一个可以逻辑地将测试收集到测试套件中、自动检测测试文件并可以创建测试先决条件/依赖项的系统。我一直在研究 QMTest 和 Google 的 Robot Framework。我宁愿扩展现有系统,也不愿对现在运行测试的非常小的 Perl 脚本进行繁重的工作。 Perl 不是必需的。事实上我更愿意使用Python,而不是Perl,但这只是个人意见。

我一直在寻找 http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks 了解可能使用的框架。

谢谢

Greetings,

I am looking for a testing framework.

Currently we have a home grown Perl script that loops through the input files, calling an AWK script which in turn connects to a server, then collects the output and compares it to a saved output file. This is done on Linux. Currently there are just over 100 tests. We are planning a major refactoring and I want to revamp the test system and tests first.

In thinking about the framework requirements, I want a system that can logically collect tests into test suites, automatically detect test files, and can create test prerequisites / dependencies. I have been looking at QMTest and Google's Robot Framework. I would rather extend an existing system than do heavy lifting of the very small Perl script that now runs the tests. Perl is not a requirement. In fact I would rather use Python, not Perl, but that is a personal opinion.

I have been looking through
http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks for possible frameworks to use.

Thanks

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

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

发布评论

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

评论(3

荒芜了季节 2024-08-27 11:32:19

您说您看过“Google 的机器人框架”,所以我不确定您是否在谈论同一件事,但有一个名为 机器人框架,不属于 Google。它允许您使用关键字编写脚本,并且可以使用 Python 和 Java 以及任何 .NET 语言来实现自定义关键字。注意:您不能直接混合 .NET 和 java 关键字,因为 .NET 关键字需要与 IronPython 一起运行,而 java 关键字需要 Jython。然而,有一种方法可以用任何语言编写关键字并通过远程 API 访问它们。

它具有一些非常好的功能,例如标记和 XML 输出,并附带各种工具和库。我强烈推荐它。

http://code.google.com/p/robotframework/

You said you've looked at "Google's Robot Framework" so I'm not sure if you're talking about the same thing or not, but there is a framework called the robot framework that is not owned by google. It allows you to write your scripts using keywords, and custom keywords can be implemented with Python and Java, and also with any .NET language. Note: you can't directly mix .NET and java keywords since .NET keywords need to run with IronPython and java keywords need Jython. However, there is a way to write keywords in any language and access them via a remote API.

It has some very nice features such as tagging and XML output, and comes with a variety of tools and libraries. I highly recommend it.

http://code.google.com/p/robotframework/

只是偏爱你 2024-08-27 11:32:19

追求快速和简单。

例如,我非常喜欢 Go 语言的测试 https://go.googlecode.com/hg/ test/ 及其 https://go.googlecode.com/hg/te​​st /fixedbugs/https://go.googlecode.com/hg/te​​st /bugs/ 目录。

Shell 比 Python 快得多,并且更容易移植。

Go for fast and simple.

For example I really like the tests in the Go language https://go.googlecode.com/hg/test/ and their https://go.googlecode.com/hg/test/fixedbugs/ and https://go.googlecode.com/hg/test/bugs/ directories.

Shell is a lot faster than Python and much easier to port.

枉心 2024-08-27 11:32:19

Selenium 可能就是您要找的东西?

Selenium might be what you're looking for?

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