【发布时间】:2017-09-06 00:58:30
【问题描述】:
我目前正在为 Android 和 iOS 的流程和设计相同的应用开始一个自动化项目。我在 Cucumber 框架中使用 Ruby。
我已经开始自动化 Android,基本上我需要做的是为每个步骤定义为 android 和 ios 单独的代码,有点像这样的伪代码:
Then (/^I click the Login Button$/) do
if mobile_platform = android
#android locators and code here
else
#iOS locators and code here
end
end
我将如何设置我的项目以允许使用这种特定的步骤定义?
为每个操作系统分别定义功能和步骤而不是试图将它们融合在一起会更好吗?
感谢您给予我的所有帮助。
【问题讨论】:
标签: android ios ruby cucumber appium