根据规范轻松进行验收测试

发布于 2024-07-06 14:14:52 字数 191 浏览 8 评论 0原文

我寻找一个工具/框架来进行自动验收测试。 创建新测试的界面应该非常简单,以便非程序员(客户、老板)能够添加自动测试的规范。

它应该是从命令行执行测试的某种方式,以在自动构建中包含测试的运行。

我更喜欢 Java 和开源,但我的问题不限于此。

您有什么可以推荐的,请解释为什么您的工具/框架是世界上最好的。

I look for a tool/framework to make automatic acceptance-testing. The interface to create new tests should be so easy, that a non-programmer (customer, boss) will be able to add specifications for which will be tested automatically.

It should be some way to execute the tests from command-line, to include a run of the tests in automatic builds.

I prefer Java and Open-Source, but my question isn't restricted in that way.

What do you can recommend and please explain why your tool/framework is the best in the world.

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

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

发布评论

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

评论(6

╰ゝ天使的微笑 2024-07-13 14:14:52

http://fitnesse.org/ 似乎满足您想要的所有资格。 这是我曾经成功使用过的一种方法。

http://fitnesse.org/ appears to meet all of the qualifications you want. It is one I have used with success.

内心旳酸楚 2024-07-13 14:14:52

我认为其中几个选项非常好,您应该测试它们,看看哪个适合您的团队:

I think that several of the options are very good and you should test them to see which fits your team :

白首有我共你 2024-07-13 14:14:52

您可能想要查看的另一个框架是机器人框架。 要了解测试用例的外观,请查看 快速入门指南

Another framework you may want to look at is Robot Framework. To see how test cases look like, take a look at the Quick Start Guide.

情释 2024-07-13 14:14:52

我找到了一个名为 Concordion 的框架,它可以满足我的需求。

I've found a framework named Concordion that may fulfill my needs.

挽容 2024-07-13 14:14:52

您所要求的似乎是一个定义明确的系统,具有非常具体的输入集以及系统内置或为您的系统开发的高度自动化。

HP Quick Test Pro 等商业应用程序的非技术性不够,需要额外的框架例如 Sonnet 中的一个,这是方向是正确的,但是两者都不是开源的或基于java的。

即使有了适当的框架,以自动化方式完成这项工作仍然需要大量工作。 我希望您考虑开发框架所需的时间与手动运行这些测试的时间,并验证您是否充分利用了时间。

What you ask for appears to be for a very well-defined system with a very specific sets of inputs and a high degree of automation built-into the system or developed for your system.

Commercial applications such as HP Quick Test Pro isn't non-technical enough and requires an additional framework such as one from Sonnet, which is a step in the right direction, but neither is open source or java-based.

Even with a framework in place, it's quite a bit of work to make this work in an automated way. I'd like you to consider the time needed to develop the framework vs the time to manually run these tests and verify that you are using your time well.

感受沵的脚步 2024-07-13 14:14:52

Cucumber 怎么样:

Feature: Acceptance testing framework

  Scenario: an example speaks volumes
    Given a text example
    When it is read
    Then the simplicity will be appreciated

您需要开发人员与老板讨论每一行的真正含义以及实现步骤定义来驱动它:

Given /^a text example$/ do
  file.open("example.txt", "w") { |file| file.write "text example" }
end

When /^it is read$/ do
  SystemUnderTest.read("example.txt")
end

Then /^the simplicity will be appreciated$/ do
  SystemUnderTest.simplicity.should be_appreciated
end

How about Cucumber:

Feature: Acceptance testing framework

  Scenario: an example speaks volumes
    Given a text example
    When it is read
    Then the simplicity will be appreciated

You would need a developer to discuss with the boss what each of those lines really means and implement the step definition to drive it:

Given /^a text example$/ do
  file.open("example.txt", "w") { |file| file.write "text example" }
end

When /^it is read$/ do
  SystemUnderTest.read("example.txt")
end

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