.NET 中构建的 Windows 应用程序的 Cucumber 测试
我知道使用 Watir 和 Watir-webdriver 进行 Cucumber 和 Web 应用程序测试,但我需要知道如何将 Cucumber 用于 Windows 应用程序,特别是在 .NET 中构建的应用程序。
有关如何开始的任何指导吗?使用哪种宝石?尖端? ETC.. ?
PS 我是一个在 Cucumber 之前曾在 QTP 中工作的人,在 QTP 中我们将插件从 Web 更改为 .NET,它会识别窗口应用程序对象,如编辑框、菜单项...
I know Cucumber and Web application testing with Watir and Watir-webdriver, but I need to know how to use Cucumber for Windows application, specifically application built in .NET.
Any direction on how to get started? Which gem to use? Tips? Etc.. ?
P.S. I am a guy who used to work in QTP before Cucumber and in QTP we would change the plug-in from Web to .NET and it would recognize window application objects like Edit Box, Menu Item...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能想查看 http://specflow.org/
You might want to look at http://specflow.org/
我认为您可以开始使用 White 之类的东西来自动化 Winforms 交互。不过,这需要您编写 .NET 代码来驱动它,因此与 Cucumber 集成可能会很棘手。您可以在 IronRuby 下运行 Cucumber,然后您的步骤定义可以直接访问 White API。或者,您可以查看 Cucumber 的 .NET 变体之一,例如 SpecFlow,它仍然使用 Gherkin 作为编写语言功能,但您用纯 .NET 编写步骤定义,或者 Cuke4Nuke 实际上使用 Cucumber 来执行您的功能,但与包含步骤定义的 .NET 程序集对话。
I think you could start to automate the Winforms interaction with something like White. This requires you to write .NET code to drive it though, so integrating with Cucumber could be tricky. You may be able to run Cucumber under IronRuby, and then your step definitions could directly access the White API. Alternatively you could look at one of the .NET variants of Cucumber such as SpecFlow, which still uses Gherkin as the language for writing features, but you write step definitions in pure .NET, or Cuke4Nuke which actually uses Cucumber to execute your features, but talks to a .NET assembly containing your step definitions.