为大型网络软件编写功能测试
我正在为一个大型网络软件进行功能测试。有没有这样的测试框架(Linux平台)?
基本上测试将具有以下结构:
- 准备系统
- 尝试做某事
- 如果超时则等待x秒以获得结果
- :清理并报告错误
- 尝试以用户X身份做某事
- ...
我正在考虑直接在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:
- prepare the system
- try to do something
- wait x seconds for results
- if timeout: cleanup and report error
- try to do something as user X
- ...
I was thinking of implementing this directly in Perl, but if there is already some support framework, then it would be much better.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的经验是,每个系统都是不同的,或者从顶层来看它们看起来都是一样的,但深入系统你会发现阻塞问题,即“魔鬼在于细节”。因此,我们始终实施自己的测试框架,以便完全控制系统。
我想说的另一点是,代码将被开发人员/维护人员多次阅读。尽管 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...
看看 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.
And there's an article here: http://agiletesting.blogspot.com/2004/12/stafstax-tutorial.html