为大型网络软件编写功能测试

发布于 2024-11-16 08:45:31 字数 234 浏览 4 评论 0原文

我正在为一个大型网络软件进行功能测试。有没有这样的测试框架(Linux平台)?

基本上测试将具有以下结构:

  1. 准备系统
  2. 尝试做某事
  3. 如果超时则等待x秒以获得结果
  4. :清理并报告错误
  5. 尝试以用户X身份做某事
  6. ...

我正在考虑直接在Perl中实现这一点,但是如果已经有一些支持框架了,那就更好了。

I'm working on feature tests for a big network software. Is there any framework for such tests (Linux platform)?

Basically the tests would have the following structure:

  1. prepare the system
  2. try to do something
  3. wait x seconds for results
  4. if timeout: cleanup and report error
  5. try to do something as user X
  6. ...

I was thinking of implementing this directly in Perl, but if there is already some support framework, then it would be much better.

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

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

发布评论

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

评论(2

烦人精 2024-11-23 08:45:31

我的经验是,每个系统都是不同的,或者从顶层来看它们看起来都是一样的,但深入系统你会发现阻塞问题,即“魔鬼在于细节”。因此,我们始终实施自己的测试框架,以便完全控制系统。

我想说的另一点是,代码将被开发人员/维护人员多次阅读。尽管 Perl 是一种很棒的语言,但它并不是为了阅读或易于理解而设计的。写它的人可能会退出,其他人需要做出调整;因此,我建议您使用 python 来代替,以便于维护。

只是我的10c...

My experience is that every system is different or they look the same from a top-level view, but looking deeper into system you will find blocking issues, i.e. "the devil lies in the details". For this reason we have always implemented our own test-frameworks in order to have full control over the system.

Another point I would like to make is that the code will be read by developers/maintainers many times. Although perl is a great language, it is not intended to be read or easily understood. The guy who wrote it may quit and someone else needs to make adjustments; therefor I would recommend you to use python instead for ease of maintainability.

just my 10c...

Bonjour°[大白 2024-11-23 08:45:31

看看 STAF(软件测试自动化框架)

它看起来可能很适合您的需求。

软件测试自动化框架 (STAF) 是一个开源、多平台、多语言框架,围绕可重用​​组件(称为服务(例如流程调用、资源管理、日志记录和监视))的理念而设计。 STAF 消除了构建自动化基础设施的繁琐过程,从而使您能够专注于构建自动化解决方案。 STAF 框架为构建更高级别的解决方案提供了基础,并提供了跨多种平台和语言支持的可插入方法。

这里有一篇文章: http://agiletesting.blogspot.com/2004/12 /stafstax-tutorial.html

Take a look at STAF (Software Test Automation Framework)

It looks like it might be a good fit for what you need.

The Software Testing Automation Framework (STAF) is an open source, multi-platform, multi-language framework designed around the idea of reusable components, called services (such as process invocation, resource management, logging, and monitoring). STAF removes the tedium of building an automation infrastructure, thus enabling you to focus on building your automation solution. The STAF framework provides the foundation upon which to build higher level solutions, and provides a pluggable approach supported across a large variety of platforms and languages.

And there's an article here: http://agiletesting.blogspot.com/2004/12/stafstax-tutorial.html

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