需要一个 Ruby gem 用于用 VB 6 编写的遗留 Windows 桌面应用程序的 Cucumber 测试自动化

Need a Ruby gem for Cucumber test automation of a legacy Windows desktop application written in VB 6

背景:几个月前,我的团队最初为涉及各种内部 Web 应用程序、API 和数据库的客户端实施了一个强大的 Ruby/Cucumber 测试自动化框架。

客户返回并询问有关扩展 Ruby/Cucumber 框架以包括遗留 Windows 桌面应用程序(用 VB 6 编写),该应用程序需要当前框架中已经存在的验证.

问题:经过广泛的研究,我发现了几个 gem 应该有点帮助但没有提供所有必需的功能。例如,除了单击按钮、遍历 menus/tables 和填写表单等 "standard" 桌面应用程序功能外,动态拖放功能是 Windows 要自动化的桌面应用程序。

我研究了 gems RAutomation、Mohawk、Win32-autogui 和 Sikuli/Rukuli,上面的一些组合应该提供所需的大部分功能。

问题:有谁知道任何 Ruby gem(或 gem 的组合)与 Windows 桌面应用程序?

在理想世界中,我对 Windows 应用程序的 Calabash/Appium 抱有希望。

非常感谢任何帮助。

提前谢谢你。

我正在测试gem'uia',目前可以满足需求。 我用计算器做了个例子,继续

#***************************************************
# Test calc.exe
#***************************************************
require 'uia'

#'window'
calc = Uia.find_element title: 'Calculadora'

#Cap a name

btn1 = calc.find(name: '1')

#cap controls def for control_type

btns = calc.find_all(control_type: :buttons)

#btns is array buttons

#cap all child the calc.exe

ctrls = calc.children


#***************************************************