gpt4 book ai didi

ruby - 葫芦-iOS : stack level too deep (SystemStackError) error is encountered each time an assertion is failing

转载 作者:数据小太阳 更新时间:2023-10-29 08:02:50 29 4
gpt4 key购买 nike

每次断言失败时,我都会遇到“堆栈级别太深(SystemStackError)”错误,无论实际的 :timeout_message 是什么

以下代码示例只是每次断言失败时出现上述错误的众多代码示例中的两个:

 def wait_and_touch(element)
when_element_exists(element, :timeout => 10, :timeout_message => "[#{element}] element was not identified")
end

def check_user_message(usr)
usr_array = usr.gsub(",", " ").split
usr_array.each do |item|
f_name = @test_data.get_first_name(item)
wait_for(:timeout => 5, :timeout_message => "[FAIL] The message from #{f_name} should be displayed as unread!") {
query(panel_1_msg_cell + " descendant view {text CONTAINS '#{f_name}'}", :font).first.include? 'Roboto-Black' }
end
end

我目前正在使用带有 ruby​​-2.3.1 [x86_64]、OS X El Capitan、-v 10.11.6 的 calabash -v 0.20.0 版本

知道为什么会这样吗?

谢谢

最佳答案

我相信您正在某处调用 include Calabash::Cucumber::Operations。您不需要在代码中的任何位置包含操作。

关于ruby - 葫芦-iOS : stack level too deep (SystemStackError) error is encountered each time an assertion is failing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40125822/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com