【发布时间】:2016-01-21 06:48:13
【问题描述】:
我对 Calabash/Cucumber 有疑问,我需要启动一个由 culebra (androidviewclient) 生成的 python 脚本,简而言之,单击我的应用程序的外部视图。 这是我的 ruby 页面类:
require 'calabash-android/abase'
class SignUpPage < Calabash::ABase
def login_google_confirm_step_1
system '/PATH/social_login_step_1.py'
end
这是我的步骤:
Then(/^I am able to submit google login step 1$/) do
@current_page = page(SignUpPage)
@current_page.login_google_confirm_step_1
end
当我午餐黄瓜功能时,我有这个错误:
UiTests/features/android/pages/signup_page.rb
Failed to load 'py' programming language for file UiTests/features/android/pages/social_login_step_1.py: cannot load such file -- rubypython
* UiTests/features/android/pages/social_login_step_1.py [NOT SUPPORTED]
我已经安装了 rubypython gem,我在网上找不到任何可以帮助我的主题。 有人可以帮助我吗?谢谢。
【问题讨论】:
标签: android python cucumber calabash androidviewclient