【问题标题】:Calabash Cucumber String internationalization (R.string.*) and using IDsCalabash Cucumber 字符串国际化 (R.string.*) 和使用 ID
【发布时间】:2014-01-02 14:05:35
【问题描述】:

我想使用 calabash/cucumber 来测试我的 android 应用程序,我想知道为什么我找不到有关如何在场景中使用国际化字符串的信息。

Android 将R.string.* 与一个或多个 xml 文件以及用于识别正确视图的 ID 结合使用。

Calabash 中可以使用这样的东西吗?

Given I see R.string.hello_world

Given i enter R.string.hello_world into inout field with id R.id.input_1

【问题讨论】:

    标签: android testing internationalization cucumber calabash


    【解决方案1】:

    我相信您正在寻找的功能尚未实现。但是,calabash 通过以下宏支持国际化:

    Then /^I press text of translated l10key (\d+)$/ 
    
    Then /^I press button of translated l10key (\d+)$/
    
    Then /^I press menu item of translated l10key (\d+)$/
    
    Then /^I press toggle button of translated l10key (\d+)$/ 
    
    Then /^I wait for the translated "([^\"]*)" l10nkey to appear$/ 
    

    更多详情here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-02-11
      • 1970-01-01
      • 1970-01-01
      • 2012-10-10
      • 2019-02-16
      • 2022-06-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多